forked from AuroraMiddleware/gtk
label: Stop setting state flags on the style context for drawing
This commit is contained in:
parent
e3d38708ab
commit
02dd7df653
@ -4028,13 +4028,12 @@ gtk_label_draw (GtkWidget *widget,
|
||||
|
||||
cairo_translate (cr, -allocation.x, -allocation.y);
|
||||
|
||||
state = gtk_widget_get_state_flags (widget);
|
||||
gtk_style_context_set_state (context, state);
|
||||
|
||||
gtk_render_layout (context, cr,
|
||||
x, y,
|
||||
priv->layout);
|
||||
|
||||
state = gtk_widget_get_state_flags (widget);
|
||||
|
||||
if (info &&
|
||||
(info->selection_anchor != info->selection_end))
|
||||
{
|
||||
@ -4162,9 +4161,6 @@ gtk_label_draw (GtkWidget *widget,
|
||||
1);
|
||||
cairo_region_get_extents (clip, &rect);
|
||||
|
||||
state = gtk_widget_get_state_flags (widget);
|
||||
gtk_style_context_set_state (context, state);
|
||||
|
||||
gtk_render_focus (context, cr,
|
||||
rect.x, rect.y,
|
||||
rect.width, rect.height);
|
||||
|
Loading…
Reference in New Issue
Block a user