diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2010-11-03 19:27:18 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:38:37 +0100 |
commit | f2c6c82ff0155729e4b6ed94e33d8dc1e3e93dcb (patch) | |
tree | c01e86704daf23a0ad6824a84e91b61b5c9c842d /gtk/gtkstatusicon.c | |
parent | f383e6b0a2ba681d81296c2f5196e6884f0f211d (diff) | |
download | gtk+-f2c6c82ff0155729e4b6ed94e33d8dc1e3e93dcb.tar.gz |
GtkStatusIcon: update to use gtk_widget_override_symbolic_color().
Diffstat (limited to 'gtk/gtkstatusicon.c')
-rw-r--r-- | gtk/gtkstatusicon.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c index 678cb8caab..f3bf6383b4 100644 --- a/gtk/gtkstatusicon.c +++ b/gtk/gtkstatusicon.c @@ -1701,8 +1701,16 @@ gtk_status_icon_color_changed (GtkTrayIcon *tray, if (name) { + GdkRGBA rgba; + g_object_get (priv->tray_icon, pspec->name, &color, NULL); - gtk_widget_modify_symbolic_color (priv->image, name, &color); + + rgba.red = color.red / 65535.; + rgba.green = color.green / 65535.; + rgba.blue = color.blue / 65535.; + rgba.alpha = 1; + + gtk_widget_override_symbolic_color (priv->image, name, &rgba); } } |