summaryrefslogtreecommitdiff
path: root/applets/wncklet/workspace-switcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/wncklet/workspace-switcher.c')
-rw-r--r--applets/wncklet/workspace-switcher.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index 29a386e4..e4202076 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -529,11 +529,15 @@ gboolean workspace_switcher_applet_fill(MatePanelApplet* applet)
break;
}
+#ifdef WNCK_CHECK_VERSION
#if WNCK_CHECK_VERSION (2, 91, 6)
pager->pager = wnck_pager_new();
#else
pager->pager = wnck_pager_new(NULL);
#endif
+#else
+ pager->pager = wnck_pager_new(NULL);
+#endif
pager->screen = NULL;
pager->wm = PAGER_WM_UNKNOWN;
wnck_pager_set_shadow_type(WNCK_PAGER(pager->pager), GTK_SHADOW_IN);