[metacity] theme-viewer: enable reload button also for GTK+ theme



commit 25549f9d35cf8629b14493ab220ec1813d921466
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jun 2 23:16:15 2016 +0300

    theme-viewer: enable reload button also for GTK+ theme

 theme-viewer/theme-viewer-window.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/theme-viewer/theme-viewer-window.c b/theme-viewer/theme-viewer-window.c
index 15a1f48..6d72f91 100644
--- a/theme-viewer/theme-viewer-window.c
+++ b/theme-viewer/theme-viewer-window.c
@@ -574,9 +574,7 @@ theme_combo_box_changed_cb (GtkComboBox       *combo_box,
     gtk_widget_show (window->theme_box);
 
   gtk_widget_set_sensitive (window->sidebar, TRUE);
-
-  if (type == META_THEME_TYPE_METACITY)
-     gtk_widget_set_sensitive (window->reload_button, TRUE);
+  gtk_widget_set_sensitive (window->reload_button, TRUE);
 }
 
 static void
@@ -590,6 +588,7 @@ reload_button_clicked_cb (GtkButton         *button,
   theme = gtk_combo_box_get_active_id (combo_box);
 
   meta_theme_load (window->theme, theme, NULL);
+  meta_theme_invalidate (window->theme);
 
   update_frame_borders (window);
 


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