diff options
author | Rui Matos <tiagomatos@gmail.com> | 2011-12-21 15:30:28 +0000 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2012-01-09 16:31:11 +0000 |
commit | 9118ccb02d20a26b6ecf0fd223bf2e71b1154e79 (patch) | |
tree | 0fcb98b920cd03492aea82ea72b417956df1a3b5 /gtk/gtkseparator.c | |
parent | 95caabac0330d0f6c42114117d08665b0ab4c870 (diff) | |
download | gtk+-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.c | 5 |
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; } |