From d1c10a0a832731f81db1c627c07fe5d750543294 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 9 Jan 2016 20:40:21 +0100 Subject: GTK3 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. taken from: https://git.gnome.org/browse/nautilus/commit/?id=845d3fc --- eel/eel-editable-label.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'eel') 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); -- cgit v1.2.1