summaryrefslogtreecommitdiff
path: root/gtk/gtkseparator.c
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-12-21 15:30:28 +0000
committerRui Matos <tiagomatos@gmail.com>2012-01-09 16:31:11 +0000
commit9118ccb02d20a26b6ecf0fd223bf2e71b1154e79 (patch)
tree0fcb98b920cd03492aea82ea72b417956df1a3b5 /gtk/gtkseparator.c
parent95caabac0330d0f6c42114117d08665b0ab4c870 (diff)
downloadgtk+-9118ccb02d20a26b6ecf0fd223bf2e71b1154e79.tar.gz
separator: Stop setting state flags on the style context for drawing
Diffstat (limited to 'gtk/gtkseparator.c')
-rw-r--r--gtk/gtkseparator.c5
1 files changed, 0 insertions, 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;
}