diff options
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r-- | gtk/gtklabel.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 638f999be1..e1ae3d061e 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -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); |