summaryrefslogtreecommitdiff
path: root/gtk/gtktrayicon-x11.c
Commit message (Collapse)AuthorAgeFilesLines
* trayicon-x11: Stop setting state flags on the style context for drawingRui Matos2012-01-091-7/+0
|
* gtk/gtktrayicon-x11.c: Use new GdkRGBA api instead GDKColor oneJavier Jardón2011-12-201-2/+2
|
* GtkTrayIconX11: Some more refactoringMatthias Clasen2011-08-281-14/+12
| | | | I like my refactoring better...
* trayicon-x11: Refactor code a bitBenjamin Otte2011-08-281-5/+6
| | | | Should make it more obvious what the code actually does.
* trayicon-x11: Fix warnings when visual is not available.Vincent Bernat2011-08-281-3/+6
| | | | | | | | This fixes a regression introduced in commit b1a1685a33eca16979e63d79915395af0b36. gdk_visual_get_*_pixel_details() should not be called with a NULL visual. https://bugzilla.gnome.org/show_bug.cgi?id=649588
* Make focus rectangles optionalMatthias Clasen2011-08-101-1/+1
| | | | | | | | | | | | | | | | | | This commit introduces a new setting, gtk-visible-focus, backed by the Gtk/VisibleFocus X setting. Its three values control how focus rectangles are displayed. 'always' is equivalent to the traditional GTK+ behaviour of always rendering focus rectangles. 'never' does what it says, and is intended for keyboardless situations, e.g. tablets. 'automatic' hides focus rectangles initially, until the user interacts with the keyboard, at which point focus rectangles become visible. https://bugzilla.gnome.org/show_bug.cgi?id=649567
* gtk/gtktrayicon-x11.c: Use GdkRGBA instead GdkColorJavier Jardón2011-05-051-37/+41
|
* GtkStatusIcon: support fixed-sized iconsRyan Lortie2011-03-301-1/+85
| | | | | | | | Use the _NET_SYSTEM_TRAY_ICON_SIZE property set by the tray mananger as a hint that we should use a specific icon size. This allows the tray to instruct us that it expects 16x16 icons, for example. Bug #645232
* GtkTrayIcon: chain up in disposeMatthias Clasen2011-02-251-0/+2
| | | | Pointed out in bug 643131
* Fix several bugs handling GtkTrayIcon symbolic colorsDan Winship2011-01-311-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641059
* Remove gtktypeutils altogetherMatthias Clasen2011-01-041-4/+6
| | | | | | Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* Update GtkTrayIcon to GtkStyleContextCarlos Garnacho2011-01-041-12/+16
|
* Make gdk_window_{lookup,foreign_new}_for_display backend specificMatthias Clasen2010-12-211-7/+7
| | | | | At the same time, make GDK_IS_DISPLAY_X11 available in gdkx.h, and add some exemplaric ifdefs to GTK+ code.
* Don't access GdkVisual fields directlyMatthias Clasen2010-12-101-2/+9
| | | | Use accessors instead.
* API: Remove GDK_WINDOW_XWINDOW() macroBenjamin Otte2010-12-021-2/+2
| | | | | | | Use GDK_WINDOW_XID() instead. THis was done using sed, so there might be issues resulting to that. Feel free to fix.
* trayicon: Use gdk_cairo_get_clip_rectangle() to simplify codeBenjamin Otte2010-09-301-17/+18
|
* trayicon: Use gtk_widget_set_visual()Benjamin Otte2010-09-281-1/+1
|
* Remove GtkObject completelyMatthias Clasen2010-09-261-0/+2
|
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-261-1/+1
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* trayicon: Port to draw vfuncBenjamin Otte2010-09-261-27/+33
|
* trayicon: Use XClearAreaBenjamin Otte2010-09-261-3/+8
| | | | | gdk_window_clear_area() isn't smart enough to clear to a parent pixmap that is part of a window that GDK doesn't manage.
* trayicon: Change to use gtk_window_set_visual()Benjamin Otte2010-09-261-18/+6
| | | | One less user of colormaps, and the code is cleaner, too!
* trayicon: Use new gdk_window_set_background_pattern() APIBenjamin Otte2010-09-261-1/+1
|
* More error trap cleanupsMatthias Clasen2010-09-201-2/+0
| | | | | Remove syncs in front of gdk_error_trap_pop() calls, and convert gdk_error_trap_pop() calls to gdk_error_trap_pop_ignored() in gdk.
* Use gdk_error_trap_pop_ignore() where appropriateMatthias Clasen2010-09-181-2/+2
|
* Fixed debug build for GTK_PLUG (plug)->socket_window direct accesses.Tristan Van Berkom2010-08-281-2/+2
|
* gtk/gtktrayicon-x11.c: Use accessor functions to access GtkWidgetJavier Jardón2010-08-221-15/+26
|
* API: remove gdk_screen_get_rgb_colormap/visual()Benjamin Otte2010-08-101-2/+0
| | | | | People want to use gdk_screen_get_default_colormap/visual(). Also, GdkRGB is about to die.
* Use accessor functions to acces GtkContainerJavier Jardón2010-07-131-2/+2
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-6/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Add padding around the status iconsMatthias Clasen2010-05-101-1/+84
| | | | | | | | The amount of padding is determined by reading a _NET_SYSTEM_TRAY_PADDING property off the manager window, in the same way that orientation and visual are obtained. Signed-off-by: Richard Hughes <richard@hughsie.com>
* Fix some compilation warningsJavier Jardón2010-05-011-1/+0
|
* Get symbolic colors for statusicons from systrayMatthias Clasen2010-04-291-5/+178
| | | | Uses the X property _NET_SYSTEM_TRAY_COLORS.
* Fix compilation warning: Use G_ENABLE_DEBUG to enable the varJavier Jardón2010-04-121-0/+2
|
* Don't use GTK_WIDGET_STATE in internal code anymoreJavier Jardón2010-03-091-1/+1
| | | | | | Use gtk_widget_get/set_state() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_REALIZEDJavier Jardón2010-03-031-1/+1
| | | | | | Use gtk_widget_get_realized() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_HAS_FOCUSJavier Jardón2010-03-011-1/+1
| | | | | | Use gtk_widget_has_focus() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Use gdk_display_sync instead of XSyncMatthias Clasen2009-07-061-9/+7
|
* Fix make checkMatthias Clasen2009-01-011-1/+1
| | | | svn path=/trunk/; revision=22033
* Bug 552959 – GtkTrayIcon: _NET_SYSTEM_TRAY_VISUAL and realMatthias Clasen2008-09-271-90/+257
| | | | | | | | | | | | | | | | | | | | transparency * gtk/gtktrayicon-x11.c: Add support for the _BET_SYSTEM_TRAY_VISUAL property described in http://lists.freedesktop.org/archives/xdg/2008-September/009919.html If _NET_SYSTEM_TRAY_VISUAL is a visual with an alpha channel, the parent-relative-background hack is skipped and we draw with a real transparent background. * gtk/gtkrc.c: Remove the default GtkTrayIcon style, since the parent-relative background is now set when realizing the tray icon. Patch by Owen Taylor svn path=/trunk/; revision=21531
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Remove executable propertyJohan Dahlin2008-06-191-0/+0
| | | | svn path=/trunk/; revision=20474
* gtk/gtkmain.c don't #include <libintl.h>, it's pulled in via "gtkintl.h"Michael Natterer2008-06-121-1/+0
| | | | | | | | | | | 2008-06-12 Michael Natterer <mitch@imendio.com> * gtk/gtkmain.c * gtk/gtktrayicon-x11.c: don't #include <libintl.h>, it's pulled in via "gtkintl.h" from <glib/gi18n-lib.h>. svn path=/trunk/; revision=20362
* Support keynav in status icons. (#473786, Li Yuan)Matthias Clasen2008-02-121-3/+24
| | | | | | | | | | | | | | 2008-02-11 Matthias Clasen <mclasen@redhat.com> Support keynav in status icons. (#473786, Li Yuan) * gtk/gtkstatusicon.c: Handle keynav, make the tray icon focusable. * gtk/gtktrayicon-x11.c: Draw a focus rectangle when focused. svn path=/trunk/; revision=19515
* missing #include <ctype.h>.Yevgen Muntyan2007-05-231-11/+11
| | | | | | | | | | | | | | | | | | | 2007-05-23 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtkprintunixdialog.c: missing #include <ctype.h>. * gtk/gtkhandlebox.c (gtk_handle_box_paint): * gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers): * gtk/gtkstatusbar.c (gtk_statusbar_get_context_id): * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): * gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request): * gtk/gtkpreview.c (gtk_preview_finalize): * gtk/gtknotebook.c (gtk_notebook_set_group_id): * tests/testnotebookdnd.c (window_creation_function): * tests/testiconview.c (do_popup_menu): Fixed some compiler warnings (#440689). svn path=/trunk/; revision=17898
* Fix some compiler warnings. (#433642, Kjartan Maraas)Matthias Clasen2007-04-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-04-30 Matthias Clasen <mclasen@redhat.com> Fix some compiler warnings. (#433642, Kjartan Maraas) * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info): (gtk_file_system_win32_create_folder): * gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion. * gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass the right type to uri_func. * gtk/gtktext.c (gtk_text_key_press): * gtk/gtkstatusicon.c (gtk_status_icon_get_property): * gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts. * gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed): (gtk_tray_icon_delete): * gtk/gtkprintunixdialog.c (create_main_page): * gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables. * gtk/gtkliststore.c: Adapt callbacks to GSequence types. svn path=/trunk/; revision=17739
* Fix GtkStatusIcon to not take up space on the panel if it is invisible.Matthias Clasen2007-01-271-32/+68
| | | | | | | | | | | | | | | | 2007-01-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstatusicon.c: * gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not take up space on the panel if it is invisible. (340110, Christian Persch) * tests/teststatusicon.c: * tests/Makefile.am: Updates svn path=/trunk/; revision=17224
* Apply a patch by Chris Wilson to avoid spurious valgrind warnings fromMatthias Clasen2007-01-041-0/+2
| | | | | | | | | | | 2007-01-03 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/x11/*.c: Apply a patch by Chris Wilson to avoid spurious valgrind warnings from XSendEvent() calls. (#392532) svn path=/trunk/; revision=17044
* Fix the ClientMessages we are sending to the notification area to be moreMatthias Clasen2006-08-171-3/+3
| | | | | | | | 2006-08-17 Matthias Clasen <mclasen@redhat.com> * gtk/gtktrayicon-x11.c: Fix the ClientMessages we are sending to the notification area to be more in sync with the systray spec. (#350860, Wincent Untz)
* Make transparent tray icons work. (#320034, based on a patch by DanMatthias Clasen2006-06-191-1/+19
| | | | | | | | | | | | | 2006-06-19 Matthias Clasen <mclasen@redhat.com> Make transparent tray icons work. (#320034, based on a patch by Dan Winship) * gtk/gtktrayicon-x11.c (gtk_tray_icon_init): Make trayicons app-paintable and non-double buffered. * gtk/gtkrc.c (_gtk_rc_init): Give tray icons a parent-relative background in the default style.