summaryrefslogtreecommitdiff
path: root/applets/wncklet/window-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/wncklet/window-list.c')
-rw-r--r--applets/wncklet/window-list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index e24d6eb6..fc913617 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -121,7 +121,7 @@ static void applet_change_orient(MatePanelApplet* applet, MatePanelAppletOrient
tasklist->orientation = new_orient;
-#if WNCK_CHECK_VERSION (3, 4, 6)
+#if GTK_CHECK_VERSION (3, 0, 0) && WNCK_CHECK_VERSION (3, 4, 6)
wnck_tasklist_set_orientation (tasklist->tasklist, new_orient);
#endif
tasklist_update(tasklist);
@@ -425,13 +425,13 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)
break;
}
-#if WNCK_CHECK_VERSION (2, 91, 6)
+#if GTK_CHECK_VERSION (3, 0, 0) && WNCK_CHECK_VERSION (2, 91, 6)
tasklist->tasklist = wnck_tasklist_new();
#else
tasklist->tasklist = wnck_tasklist_new(NULL);
#endif
-#if WNCK_CHECK_VERSION (3, 4, 6)
+#if GTK_CHECK_VERSION (3, 0, 0) && WNCK_CHECK_VERSION (3, 4, 6)
wnck_tasklist_set_orientation (tasklist->tasklist, tasklist->orientation);
#endif