[Xfce4-commits] <xfce4-panel:master> pager: fallback for case when pager is not yet set

Andrzej noreply at xfce.org
Fri Dec 20 10:38:01 CET 2013


Updating branch refs/heads/master
         to 08643272caef08634773b3074de7b2cadffb0926 (commit)
       from c42ab58051aaf30ade4496de05fc27e4540eb961 (commit)

commit 08643272caef08634773b3074de7b2cadffb0926
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Fri Dec 20 09:35:58 2013 +0000

    pager: fallback for case when pager is not yet set
    
    Just in case. Not needed on my system.

 plugins/pager/pager.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/plugins/pager/pager.c b/plugins/pager/pager.c
index 7b716a2..149e19e 100644
--- a/plugins/pager/pager.c
+++ b/plugins/pager/pager.c
@@ -580,9 +580,14 @@ pager_plugin_size_request (GtkWidget      *widget,
           requisition->height = (gint) (requisition->width / n_cols / plugin->ratio * plugin->rows);
         }
     }
-  else
+  else if (plugin->pager)
     {
       gtk_widget_size_request (plugin->pager, requisition);
     }
+  else // initial fallback
+    {
+      requisition->width = 1;
+      requisition->height = 1;
+    }
 }
 


More information about the Xfce4-commits mailing list