summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-window.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/caja-window.c b/src/caja-window.c
index 96c97e4e..b0ac311d 100644
--- a/src/caja-window.c
+++ b/src/caja-window.c
@@ -139,6 +139,12 @@ caja_window_init (CajaWindow *window)
GtkWidget *statusbar;
#if GTK_CHECK_VERSION (3, 0, 0)
+#if GTK_CHECK_VERSION (3, 20, 0)
+ static const gchar css_custom[] =
+ "#caja-extra-view-widget {"
+ " background-color: " EXTRA_VIEW_WIDGETS_BACKGROUND ";"
+ "}";
+#else
static const gchar css_custom[] =
"#statusbar-no-border {"
" -GtkStatusbar-shadow-type: none;"
@@ -146,7 +152,7 @@ caja_window_init (CajaWindow *window)
"#caja-extra-view-widget {"
" background-color: " EXTRA_VIEW_WIDGETS_BACKGROUND ";"
"}";
-
+#endif
GError *error = NULL;
GtkCssProvider *provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (provider, css_custom, -1, &error);