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