diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-02-11 07:51:12 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-02-12 07:04:31 +0100 |
commit | 561aa7d2aedc8fb653d2d892430fe5bb72aad99e (patch) | |
tree | 90950a8ec4b2430e3976f2601bfec4137fcd158a /applets | |
parent | 764b55c2f19cf4d4d27c7c0ade6c3cfb67292188 (diff) | |
download | mate-panel-561aa7d2aedc8fb653d2d892430fe5bb72aad99e.tar.bz2 mate-panel-561aa7d2aedc8fb653d2d892430fe5bb72aad99e.tar.xz |
GTK+3 notification-area: use correct style context state
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=bcff4d1
Diffstat (limited to 'applets')
-rw-r--r-- | applets/notification_area/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c index 557488d3..743ab7b4 100644 --- a/applets/notification_area/main.c +++ b/applets/notification_area/main.c @@ -223,6 +223,9 @@ na_tray_applet_style_updated (GtkWidget *widget) context = gtk_widget_get_style_context (widget); + gtk_style_context_save (context); + gtk_style_context_set_state (context, GTK_STATE_FLAG_NORMAL); + gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &fg); if (!gtk_style_context_lookup_color (context, "error_color", &error)) @@ -232,6 +235,8 @@ na_tray_applet_style_updated (GtkWidget *widget) if (!gtk_style_context_lookup_color (context, "success_color", &success)) success = fg; + gtk_style_context_restore (context); + na_tray_set_colors (applet->priv->tray, &fg, &error, &warning, &success); gtk_widget_style_get (widget, "icon-padding", &padding, NULL); |