[mutter] ui: Adapt to GtkStyleContext changes



commit af00ca534a570e41135280d69f109a60fa8a5782
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Oct 25 17:57:35 2014 +0200

    ui: Adapt to GtkStyleContext changes
    
    Since GTK+ commit 3a337156d11a86c7, save()/restore() may only be
    used for subelements; in this particular case, the change broke
    the backdrop state in decorations. Luckily we don't actually need
    the save()/restore() pair anyway, as we only touch the context's
    state and always set it explicitly.

 src/ui/theme.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index c8529a9..8ae9605 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -3231,7 +3231,6 @@ meta_draw_op_draw_with_env (const MetaDrawOp    *op,
   GdkRGBA color;
 
   cairo_save (cr);
-  gtk_style_context_save (style_gtk);
 
   cairo_set_line_width (cr, 1.0);
 
@@ -3655,7 +3654,6 @@ meta_draw_op_draw_with_env (const MetaDrawOp    *op,
     }
 
   cairo_restore (cr);
-  gtk_style_context_restore (style_gtk);
 }
 
 void


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