From 428e32cd0f3f2df0cbd4e859304f0935a11612bc Mon Sep 17 00:00:00 2001 From: Alex Brinister Date: Mon, 11 Nov 2013 16:06:19 -0500 Subject: Fixed the WNCK_CHECK_VERSION calls to only be used when GTK is version 3.0 --- applets/wncklet/workspace-switcher.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'applets/wncklet/workspace-switcher.c') diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c index 29a386e4..64f0b330 100644 --- a/applets/wncklet/workspace-switcher.c +++ b/applets/wncklet/workspace-switcher.c @@ -529,8 +529,10 @@ gboolean workspace_switcher_applet_fill(MatePanelApplet* applet) break; } +#if GTK_CHECK_VERSION (3, 0, 0) #if WNCK_CHECK_VERSION (2, 91, 6) pager->pager = wnck_pager_new(); +#endif #else pager->pager = wnck_pager_new(NULL); #endif -- cgit v1.2.1 From a2b1af54a24b93766f5e2ed4a216637dc510ec47 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 12 Nov 2013 15:07:45 +0100 Subject: Correct wnck/gtk3 check. --- applets/wncklet/workspace-switcher.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'applets/wncklet/workspace-switcher.c') diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c index 64f0b330..3ae4f9d2 100644 --- a/applets/wncklet/workspace-switcher.c +++ b/applets/wncklet/workspace-switcher.c @@ -529,10 +529,8 @@ gboolean workspace_switcher_applet_fill(MatePanelApplet* applet) break; } -#if GTK_CHECK_VERSION (3, 0, 0) -#if WNCK_CHECK_VERSION (2, 91, 6) +#if GTK_CHECK_VERSION (3, 0, 0) && WNCK_CHECK_VERSION (2, 91, 6) pager->pager = wnck_pager_new(); -#endif #else pager->pager = wnck_pager_new(NULL); #endif -- cgit v1.2.1