From 3a8b1f66d2393a35f40dbcc211d3bf045d563a92 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Mon, 16 Apr 2018 15:58:26 -0400 Subject: 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 --- mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1