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

This commit is contained in:
Rui Matos 2011-12-21 15:30:28 +00:00
parent 95caabac03
commit 9118ccb02d

View 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;
}