[metacity] ui: use correct style context state



commit b968b370aee74fe6b467552b946d00d51f27fbe4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Dec 19 07:31:12 2015 +0200

    ui: use correct style context state

 src/ui/ui.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/ui.c b/src/ui/ui.c
index c647c90..7ab786d 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -688,11 +688,13 @@ meta_ui_theme_get_frame_borders (MetaUI           *ui,
         {
           if (current->is_gtk_theme == FALSE)
             {
-              GtkStyleContext *style = NULL;
+              GtkStyleContext *style;
               GtkWidgetPath *widget_path;
 
               style = gtk_style_context_new ();
               gtk_style_context_set_screen (style, screen);
+              gtk_style_context_set_state (style, GTK_STATE_FLAG_NORMAL);
+
               widget_path = gtk_widget_path_new ();
               gtk_widget_path_append_type (widget_path, GTK_TYPE_WINDOW);
               gtk_style_context_set_path (style, widget_path);


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