[metacity] theme-viewer: queue draw after changing theme



commit f1a613a8a76d4e5c8469f5278b7dc586bbdac905
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jun 2 15:36:22 2016 +0300

    theme-viewer: queue draw after changing theme

 theme-viewer/theme-viewer-window.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/theme-viewer/theme-viewer-window.c b/theme-viewer/theme-viewer-window.c
index c37ed77..15a1f48 100644
--- a/theme-viewer/theme-viewer-window.c
+++ b/theme-viewer/theme-viewer-window.c
@@ -567,7 +567,11 @@ theme_combo_box_changed_cb (GtkComboBox       *combo_box,
   update_button_layout (window);
 
   gtk_widget_hide (window->choose_theme);
-  gtk_widget_show (window->theme_box);
+
+  if (gtk_widget_is_visible (window->theme_box))
+    gtk_widget_queue_draw (window->theme_box);
+  else
+    gtk_widget_show (window->theme_box);
 
   gtk_widget_set_sensitive (window->sidebar, TRUE);
 


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