From 9118ccb02d20a26b6ecf0fd223bf2e71b1154e79 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Wed, 21 Dec 2011 15:30:28 +0000 Subject: [PATCH] separator: Stop setting state flags on the style context for drawing --- gtk/gtkseparator.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c index f8c020216e..0ae222446c 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; }