diff options
author | lukefromdc <[email protected]> | 2016-09-06 15:37:11 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-09-06 15:37:11 -0400 |
commit | 3394cacdc1a97909c64c603314a728c51047ee47 (patch) | |
tree | 93b27e5622a907ebef065070663e0b464b0b9e15 /src | |
parent | f9527fae54c6e8e9c0835c44aeb8062e7113137a (diff) | |
download | caja-3394cacdc1a97909c64c603314a728c51047ee47.tar.bz2 caja-3394cacdc1a97909c64c603314a728c51047ee47.tar.xz |
GTK3.20:fix statusbar deprecation warning
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-window.c | 8 |
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); |