[metacity/wip/gtk-theme: 51/52] prefs: force theme reload



commit 32fcfcf60c927425b8a3b9ebf24066f2ea407262
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jan 1 22:31:08 2015 +0200

    prefs: force theme reload
    
    ... when switching from metacity theme to GTK+ and vice-versa.

 src/core/main.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/core/main.c b/src/core/main.c
index 866ccda..43f7318 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -649,10 +649,13 @@ prefs_changed_callback (MetaPreference pref,
   switch (pref)
     {
     case META_PREF_THEME:
-    case META_PREF_USE_METACITY_THEME:
       meta_ui_set_current_theme (meta_prefs_get_theme (), FALSE);
       meta_display_retheme_all ();
       break;
+    case META_PREF_USE_METACITY_THEME:
+      meta_ui_set_current_theme (meta_prefs_get_theme (), TRUE);
+      meta_display_retheme_all ();
+      break;
 
     case META_PREF_CURSOR_THEME:
     case META_PREF_CURSOR_SIZE:


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