summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-11 08:02:04 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-12 07:04:31 +0100
commitaecc9d08b373a102defc235dba5dccd55c4ae4b3 (patch)
treee6263dec48a726d88f15e7e01fa42e1fc25a4a20 /applets/wncklet
parent089e08b37e96805ce79c8a32f24bb9a071952852 (diff)
downloadmate-panel-aecc9d08b373a102defc235dba5dccd55c4ae4b3.tar.bz2
mate-panel-aecc9d08b373a102defc235dba5dccd55c4ae4b3.tar.xz
GTK+-3.20 showdesktop: remove deprecated style properties
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=080b953
Diffstat (limited to 'applets/wncklet')
-rw-r--r--applets/wncklet/showdesktop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index 8ef011c0..a3a9d5c7 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -412,8 +412,10 @@ gboolean show_desktop_applet_fill(MatePanelApplet* applet)
gchar* ui_path;
AtkObject* atk_obj;
#if GTK_CHECK_VERSION (3, 0, 0)
+#if !GTK_CHECK_VERSION (3, 19, 0)
GtkCssProvider *provider;
#endif
+#endif
mate_panel_applet_set_flags(applet, MATE_PANEL_APPLET_EXPAND_MINOR);
@@ -444,6 +446,7 @@ gboolean show_desktop_applet_fill(MatePanelApplet* applet)
gtk_widget_set_name (sdd->button, "showdesktop-button");
#if GTK_CHECK_VERSION (3, 0, 0)
+#if !GTK_CHECK_VERSION (3, 19, 0)
provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (provider,
"#showdesktop-button {\n"
@@ -455,6 +458,7 @@ gboolean show_desktop_applet_fill(MatePanelApplet* applet)
GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
g_object_unref (provider);
+#endif
#else
gtk_rc_parse_string ("\n"
" style \"showdesktop-button-style\"\n"