summaryrefslogtreecommitdiff
path: root/src/caja-location-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-location-bar.c')
-rw-r--r--src/caja-location-bar.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/caja-location-bar.c b/src/caja-location-bar.c
index 89d095a9..9de909b3 100644
--- a/src/caja-location-bar.c
+++ b/src/caja-location-bar.c
@@ -605,9 +605,16 @@ caja_location_bar_set_active(CajaLocationBar *location_bar, gboolean is_active)
{
GtkStyleContext *style;
GdkRGBA color;
+ GdkRGBA *c;
style = gtk_widget_get_style_context (GTK_WIDGET (location_bar->details->entry));
- gtk_style_context_get_background_color (style, GTK_STATE_FLAG_INSENSITIVE, &color);
+
+ gtk_style_context_get (style, GTK_STATE_FLAG_INSENSITIVE,
+ GTK_STYLE_PROPERTY_BACKGROUND_COLOR,
+ &c, NULL);
+ color = *c;
+ gdk_rgba_free (c);
+
gtk_widget_override_background_color (GTK_WIDGET (location_bar->details->entry), GTK_STATE_FLAG_ACTIVE, &color);
}
}