[gnome-flashback] fix 'notify::gtk-theme-name' signal



commit b54a935ddafc1f1ad810a0ba5977a66e27388d64
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Apr 13 20:01:37 2015 +0300

    fix 'notify::gtk-theme-name' signal

 gnome-flashback/flashback-application.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/flashback-application.c b/gnome-flashback/flashback-application.c
index c61806e..522b5eb 100644
--- a/gnome-flashback/flashback-application.c
+++ b/gnome-flashback/flashback-application.c
@@ -58,7 +58,7 @@ remove_style_provider (FlashbackApplication *application,
 {
   GtkStyleProvider *provider;
 
-  if (application->provider == FALSE)
+  if (application->provider == NULL)
     return;
 
   provider = GTK_STYLE_PROVIDER (application->provider);
@@ -80,6 +80,8 @@ theme_changed (GtkSettings *settings,
 
   g_object_get (settings, "gtk-theme-name", &theme, NULL);
 
+  remove_style_provider (application, screen);
+
   if (g_strcmp0 (theme, "Adwaita") == 0 || g_strcmp0 (theme, "HighContrast") == 0)
     {
       gchar *resource;
@@ -97,8 +99,6 @@ theme_changed (GtkSettings *settings,
 
       gtk_style_context_add_provider_for_screen (screen, provider, priority);
     }
-  else
-    remove_style_provider (application, screen);
 
   g_free (theme);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]