mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-29 18:47:38 +00:00
separator: Stop setting state flags on the style context for drawing
This commit is contained in:
parent
95caabac03
commit
9118ccb02d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user