diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-09-27 04:27:53 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-09-27 04:27:53 +0000 |
commit | 783c7932f38e5690b8b5f98313f301b0f18b09c3 (patch) | |
tree | c9e63a3d80aee2a6063d7792c632fa9512107322 /gtk/gtkrc.c | |
parent | 1a962664ee0e339c7218c643845a697a6ecd1ad7 (diff) | |
download | gtk+-783c7932f38e5690b8b5f98313f301b0f18b09c3.tar.gz |
Bug 552959 – GtkTrayIcon: _NET_SYSTEM_TRAY_VISUAL and real
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
Diffstat (limited to 'gtk/gtkrc.c')
-rw-r--r-- | gtk/gtkrc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c index 9a56e708c0..adf3c925ec 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -876,18 +876,12 @@ _gtk_rc_init (void) " text[PRELIGHT] = \"#ffffff\"\n" "}\n" "\n" - /* Make transparent tray icons work */ - "style \"gtk-default-tray-icon-style\" {\n" - " bg_pixmap[NORMAL] = \"<parent>\"\n" - "}\n" - "\n" /* Work around clipping of accelerator underlines */ "style \"gtk-default-label-style\" {\n" " GtkWidget::draw-border = {0,0,0,1}\n" "}\n" "\n" "class \"GtkProgressBar\" style : gtk \"gtk-default-progress-bar-style\"\n" - "class \"GtkTrayIcon\" style : gtk \"gtk-default-tray-icon-style\"\n" "widget \"gtk-tooltip*\" style : gtk \"gtk-default-tooltips-style\"\n" "widget_class \"*<GtkMenuItem>*\" style : gtk \"gtk-default-menu-item-style\"\n" "widget_class \"*<GtkMenuBar>*<GtkMenuItem>\" style : gtk \"gtk-default-menu-bar-item-style\"\n" |