summaryrefslogtreecommitdiff
path: root/eel/eel-editable-label.c
diff options
context:
space:
mode:
Diffstat (limited to 'eel/eel-editable-label.c')
-rw-r--r--eel/eel-editable-label.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 834f2d1a..4e1cbdf5 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -1733,9 +1733,8 @@ eel_editable_label_draw (GtkWidget *widget,
gdk_cairo_region (cr, clip);
cairo_clip (cr);
- state = GTK_STATE_FLAG_SELECTED;
- if (!gtk_widget_has_focus (widget))
- state = GTK_STATE_FLAG_ACTIVE;
+ state = gtk_widget_get_state_flags (widget);
+ state |= GTK_STATE_FLAG_SELECTED;
gtk_style_context_get_background_color (style, state, &background_color);
gdk_cairo_set_source_rgba (cr, &background_color);