summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-01-30 15:16:21 -0500
committerlukefromdc <[email protected]>2017-01-30 15:16:21 -0500
commit2fec9eb820fd44d8397df32aa61346077f301caa (patch)
tree2164a4bdd1cc839058cb14b3784f0e4e150d19f4 /applets/wncklet
parent88cd57f64f498be7223847540d3bc84e7ac5cd99 (diff)
downloadmate-panel-2fec9eb820fd44d8397df32aa61346077f301caa.tar.bz2
mate-panel-2fec9eb820fd44d8397df32aa61346077f301caa.tar.xz
window-list: add GTK 3.20 version check to css forcing zero padding
This version check added to version 1.16 backport, let's use it in master too
Diffstat (limited to 'applets/wncklet')
-rw-r--r--applets/wncklet/window-list.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index 980f2ee0..42e76343 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -384,13 +384,14 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)
TasklistData* tasklist;
GtkActionGroup* action_group;
gchar* ui_path;
+#if GTK_CHECK_VERSION (3, 20, 0)
GtkCssProvider *provider;
GdkScreen *screen;
-
+#endif
tasklist = g_new0(TasklistData, 1);
tasklist->applet = GTK_WIDGET(applet);
-
+#if GTK_CHECK_VERSION (3, 20, 0)
provider = gtk_css_provider_new ();
screen = gdk_screen_get_default ();
gtk_css_provider_load_from_data (provider,
@@ -403,7 +404,7 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)
GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
g_object_unref (provider);
-
+#endif
mate_panel_applet_set_flags(MATE_PANEL_APPLET(tasklist->applet), MATE_PANEL_APPLET_EXPAND_MAJOR | MATE_PANEL_APPLET_EXPAND_MINOR | MATE_PANEL_APPLET_HAS_HANDLE);
setup_gsettings(tasklist);