[gtk+/gtk-style-context: 318/347] GtkStatusIcon: update to use gtk_widget_override_symbolic_color().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 318/347] GtkStatusIcon: update to use gtk_widget_override_symbolic_color().
- Date: Thu, 11 Nov 2010 01:31:14 +0000 (UTC)
commit da85cd17e70c8b8ab88a092137431be251b09cec
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 3 19:27:18 2010 +0100
GtkStatusIcon: update to use gtk_widget_override_symbolic_color().
gtk/gtkstatusicon.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c
index 678cb8c..f3bf638 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]