]> Pileus Git - ~andy/gtk/commitdiff
separator: Stop setting state flags on the style context for drawing
authorRui Matos <tiagomatos@gmail.com>
Wed, 21 Dec 2011 15:30:28 +0000 (15:30 +0000)
committerRui Matos <tiagomatos@gmail.com>
Mon, 9 Jan 2012 16:31:11 +0000 (16:31 +0000)
gtk/gtkseparator.c

index f8c020216ebcc345d1de10a195efec272211f268..0ae222446c6b15b080d0c117b200d39e3a30b491 100644 (file)
@@ -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;
 }