[gtk+/wip/unfocused-fixes: 5/17] separator: Stop setting state flags on the style context for drawing



commit 65002e209bba284810cec3ad8bde0f1755c5c011
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Dec 21 15:30:28 2011 +0000

    separator: Stop setting state flags on the style context for drawing

 gtk/gtkseparator.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c
index f8c0202..0ae2224 100644
--- a/gtk/gtkseparator.c
+++ b/gtk/gtkseparator.c
@@ -243,9 +243,6 @@ gtk_separator_draw (GtkWidget *widget,
 
   gtk_style_context_get_padding (context, state, &padding);
 
-  gtk_style_context_save (context);
-  gtk_style_context_set_state (context, state);
-
   if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
     {
       if (wide_separators)
@@ -269,8 +266,6 @@ gtk_separator_draw (GtkWidget *widget,
                          (width - padding.left) / 2, height - 1);
     }
 
-  gtk_style_context_restore (context);
-
   return FALSE;
 }
 



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