summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-04-16 15:58:26 -0400
committerlukefromdc <[email protected]>2018-04-16 16:03:57 -0400
commit3a8b1f66d2393a35f40dbcc211d3bf045d563a92 (patch)
tree15babe7f7c9ad5693167fe716e52cde0f0106de5
parentab46918da1b7df56560cbdd7823e80497c6dee78 (diff)
downloadmate-panel-3a8b1f66d2393a35f40dbcc211d3bf045d563a92.tar.bz2
mate-panel-3a8b1f66d2393a35f40dbcc211d3bf045d563a92.tar.xz
Theme: limit fallback applet drag handle theme to GTK 3.20/3.22
The syntax for GTK 3.18 and earlier is entirely different, and the applet drag handles used to show up, not sure when that stopped working
-rw-r--r--mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c b/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c
index 85bcbb75..868dcb33 100644
--- a/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c
+++ b/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c
@@ -245,9 +245,10 @@ mate_panel_applet_frame_dbus_change_background (MatePanelAppletFrame *frame,
MatePanelAppletFrameDBus *dbus_frame = MATE_PANEL_APPLET_FRAME_DBUS (frame);
MatePanelAppletFrameDBusPrivate *priv = dbus_frame->priv;
char *bg_str;
+#if GTK_CHECK_VERSION (3, 20, 0)
gchar *theme_name;
GtkSettings *settings;
-
+#endif
bg_str = _mate_panel_applet_frame_get_background_string (
frame, PANEL_WIDGET (gtk_widget_get_parent (GTK_WIDGET (frame))), type);
@@ -264,6 +265,7 @@ mate_panel_applet_frame_dbus_change_background (MatePanelAppletFrame *frame,
g_free (bg_str);
}
+#if GTK_CHECK_VERSION (3, 20, 0)
GtkCssProvider *provider;
provider = gtk_css_provider_new ();
@@ -325,6 +327,7 @@ mate_panel_applet_frame_dbus_change_background (MatePanelAppletFrame *frame,
GTK_STYLE_PROVIDER_PRIORITY_FALLBACK);
g_object_unref (provider);
g_free (theme_name);
+#endif
}
static void