summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-04-24 12:22:05 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-04-24 12:22:05 -0400
commit845d3fc93ced4872d11daeb9e0d7952a42c64291 (patch)
treee9f4cbde7fd0f490455d4c4b509175e19ab22e6d /eel
parent1dd26d2019af0806399f9d9ab007122e67023a13 (diff)
downloadnautilus-845d3fc93ced4872d11daeb9e0d7952a42c64291.tar.gz
editable-label: fix selection color in backdrop state
Don't set the ACTIVE flag if we don't have focus, it just doesn't make sense.
Diffstat (limited to 'eel')
-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 223268506..496c19a78 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -1598,9 +1598,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);