summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-02 00:40:41 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-02 00:40:41 +0100
commit147d7c7707f9fa2a22e66695d0b12b361f575642 (patch)
tree167392297d1abeca2efae1d3c10849211efec44b
parent6ea2659b4574f8598e4c364f56bb2194bafc35c2 (diff)
downloadcaja-147d7c7707f9fa2a22e66695d0b12b361f575642.tar.bz2
caja-147d7c7707f9fa2a22e66695d0b12b361f575642.tar.xz
GTK3: add caja-location-entry style class
Neeed for gtk+-3.20
-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 ();