summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--applets/notification_area/main.c5
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);