Browse Source

Pager: Fixed preprocessor macro.

(cherry picked from commit 02520a3af9)
tags/xfce4-panel-4.10.0
Andrzej Nick Schermer 9 years ago
parent
commit
dd65736ef3
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      plugins/pager/pager.c

+ 7
- 3
plugins/pager/pager.c View File

@@ -42,7 +42,6 @@


#define WORKSPACE_SETTINGS_COMMAND "xfwm4-workspace-settings"
#define WNCK_PAGER_HAS_LAYOUT_POLICY (defined (WNCK_CHECK_VERSION) && WNCK_CHECK_VERSION (2,31,0))



@@ -303,11 +302,14 @@ pager_plugin_screen_layout_changed (PagerPlugin *plugin)
wnck_pager_set_display_mode (WNCK_PAGER (plugin->pager), WNCK_PAGER_DISPLAY_CONTENT);
if (!wnck_pager_set_n_rows (WNCK_PAGER (plugin->pager), plugin->rows))
g_message ("Setting the pager rows returned false. Maybe the setting is not applied.");
#if WNCK_PAGER_HAS_LAYOUT_POLICY

#ifdef WNCK_CHECK_VERSION
#if WNCK_CHECK_VERSION (2,31,0)
wnck_pager_set_layout_policy (WNCK_PAGER (plugin->pager),
(mode == XFCE_PANEL_PLUGIN_MODE_HORIZONTAL) ?
WNCK_PAGER_LAYOUT_POLICY_WIDTH_FOR_HEIGHT :
WNCK_PAGER_LAYOUT_POLICY_HEIGHT_FOR_WIDTH);
#endif
#endif
wnck_pager_set_orientation (WNCK_PAGER (plugin->pager), orientation);
}
@@ -420,11 +422,13 @@ pager_plugin_mode_changed (XfcePanelPlugin *panel_plugin,

if (plugin->miniature_view)
{
#if WNCK_PAGER_HAS_LAYOUT_POLICY
#ifdef WNCK_CHECK_VERSION
#if WNCK_CHECK_VERSION (2,31,0)
wnck_pager_set_layout_policy (WNCK_PAGER (plugin->pager),
(mode == XFCE_PANEL_PLUGIN_MODE_HORIZONTAL) ?
WNCK_PAGER_LAYOUT_POLICY_WIDTH_FOR_HEIGHT :
WNCK_PAGER_LAYOUT_POLICY_HEIGHT_FOR_WIDTH);
#endif
#endif
wnck_pager_set_orientation (WNCK_PAGER (plugin->pager), orientation);
}


Loading…
Cancel
Save