From 561aa7d2aedc8fb653d2d892430fe5bb72aad99e Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Thu, 11 Feb 2016 07:51:12 +0100 Subject: GTK+3 notification-area: use correct style context state taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=bcff4d1 --- applets/notification_area/main.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.1