summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-search-bar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/caja-search-bar.c b/src/caja-search-bar.c
index d09ffc3b..f090e556 100644
--- a/src/caja-search-bar.c
+++ b/src/caja-search-bar.c
@@ -157,6 +157,12 @@ caja_search_bar_init (CajaSearchBar *bar)
GtkWidget *alignment;
GtkWidget *hbox;
GtkWidget *label;
+#if GTK_CHECK_VERSION(3, 0, 0)
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (bar));
+ gtk_style_context_add_class (context, "caja-search-bar");
+#endif
bar->details = g_new0 (CajaSearchBarDetails, 1);