[Xfce4-commits] <xfce4-panel:master> Warning why # pager rows does not apply (bug #6555).

Nick Schermer noreply at xfce.org
Sat Nov 20 12:36:02 CET 2010


Updating branch refs/heads/master
         to 61f636af4e66d271f5fd10aec6756c067e39333c (commit)
       from ae208594589c0ad80f05f6cf5e5ddbf36f2c903d (commit)

commit 61f636af4e66d271f5fd10aec6756c067e39333c
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Nov 20 12:33:00 2010 +0100

    Warning why # pager rows does not apply (bug #6555).

 plugins/pager/pager.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/plugins/pager/pager.c b/plugins/pager/pager.c
index 491218f..2755b90 100644
--- a/plugins/pager/pager.c
+++ b/plugins/pager/pager.c
@@ -213,7 +213,11 @@ pager_plugin_set_property (GObject      *object,
       if (plugin->pager != NULL)
         {
           if (plugin->miniature_view)
-            wnck_pager_set_n_rows (WNCK_PAGER (plugin->pager), plugin->rows);
+            {
+              if (!wnck_pager_set_n_rows (WNCK_PAGER (plugin->pager), plugin->rows))
+                g_message ("Failed to set the number of pager rows. You probably "
+                           "have more then 1 pager in your panel setup.");
+            }
           else
             pager_buttons_set_n_rows (XFCE_PAGER_BUTTONS (plugin->pager), plugin->rows);
         }
@@ -288,7 +292,9 @@ pager_plugin_screen_layout_changed (PagerPlugin *plugin)
     {
       plugin->pager = wnck_pager_new (plugin->wnck_screen);
       wnck_pager_set_display_mode (WNCK_PAGER (plugin->pager), WNCK_PAGER_DISPLAY_CONTENT);
-      wnck_pager_set_n_rows (WNCK_PAGER (plugin->pager), plugin->rows);
+      if (!wnck_pager_set_n_rows (WNCK_PAGER (plugin->pager), plugin->rows))
+        g_message ("Failed to set the number of pager rows. You probably "
+                   "have more then 1 pager in your panel setup.");
       wnck_pager_set_orientation (WNCK_PAGER (plugin->pager), orientation);
     }
   else



More information about the Xfce4-commits mailing list