summaryrefslogtreecommitdiff
path: root/src/caja-location-entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-location-entry.c')
-rw-r--r--src/caja-location-entry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/caja-location-entry.c b/src/caja-location-entry.c
index 3b08a1c8..ad333272 100644
--- a/src/caja-location-entry.c
+++ b/src/caja-location-entry.c
@@ -443,6 +443,14 @@ caja_location_entry_set_secondary_action (CajaLocationEntry *entry,
static void
caja_location_entry_init (CajaLocationEntry *entry)
{
+
+#if GTK_CHECK_VERSION(3, 0, 0)
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (entry));
+ gtk_style_context_add_class (context, "caja-location-entry");
+#endif
+
entry->details = g_new0 (CajaLocationEntryDetails, 1);
entry->details->completer = g_filename_completer_new ();