diff options
| author | infirit <[email protected]> | 2013-11-28 15:27:13 +0100 | 
|---|---|---|
| committer | infirit <[email protected]> | 2013-11-28 15:46:10 +0100 | 
| commit | 27daac2e3469ec6620309b8bbcf947934874dd9d (patch) | |
| tree | f74e748de8b535f281b86ddd2ecf62d69a365e9e /applets | |
| parent | 39ad4f5cc370685777e53f3be10781179ea1bd9e (diff) | |
| download | mate-panel-27daac2e3469ec6620309b8bbcf947934874dd9d.tar.bz2 mate-panel-27daac2e3469ec6620309b8bbcf947934874dd9d.tar.xz  | |
Check if WNCK_CHECK_VERSION is defined
Diffstat (limited to 'applets')
| -rw-r--r-- | applets/wncklet/window-list.c | 8 | ||||
| -rw-r--r-- | applets/wncklet/workspace-switcher.c | 4 | 
2 files changed, 12 insertions, 0 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c index e24d6eb6..561658df 100644 --- a/applets/wncklet/window-list.c +++ b/applets/wncklet/window-list.c @@ -121,9 +121,11 @@ static void applet_change_orient(MatePanelApplet* applet, MatePanelAppletOrient  	tasklist->orientation = new_orient; +#ifdef WNCK_CHECK_VERSION  #if WNCK_CHECK_VERSION (3, 4, 6)  	wnck_tasklist_set_orientation (tasklist->tasklist, new_orient);  #endif +#endif  	tasklist_update(tasklist);  } @@ -425,15 +427,21 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)  			break;  	} +#ifdef WNCK_CHECK_VERSION  #if WNCK_CHECK_VERSION (2, 91, 6)  	tasklist->tasklist = wnck_tasklist_new();  #else  	tasklist->tasklist = wnck_tasklist_new(NULL);  #endif +#else +	tasklist->tasklist = wnck_tasklist_new(NULL); +#endif +#ifdef WNCK_CHECK_VERSION  #if WNCK_CHECK_VERSION (3, 4, 6)  	wnck_tasklist_set_orientation (tasklist->tasklist, tasklist->orientation);  #endif +#endif  	wnck_tasklist_set_icon_loader(WNCK_TASKLIST(tasklist->tasklist), icon_loader_func, tasklist, NULL); 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);  | 
