[Xfce4-commits] <xfce4-panel:nick/desktop-mode> Panel: Allocate panel size for all plugins.

Nick Schermer noreply at xfce.org
Mon Dec 12 20:02:01 CET 2011


Updating branch refs/heads/nick/desktop-mode
         to 036d282c9d217793fac992c9589c26f562cceebd (commit)
       from f9af320ee3f50582039e8f596c87948a37029770 (commit)

commit 036d282c9d217793fac992c9589c26f562cceebd
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Dec 12 19:50:53 2011 +0100

    Panel: Allocate panel size for all plugins.

 panel/panel-itembar.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/panel/panel-itembar.c b/panel/panel-itembar.c
index 351ab01..fbd42bc 100644
--- a/panel/panel-itembar.c
+++ b/panel/panel-itembar.c
@@ -601,7 +601,7 @@ panel_itembar_size_allocate (GtkWidget     *widget,
 
           if (IS_HORIZONTAL (itembar))
             {
-              child_alloc.height = MIN (itembar->size, child_req.height);
+              child_alloc.height = itembar->size;
               child_alloc.width = child_len;
 
               /* pack next small item below this one */
@@ -609,7 +609,7 @@ panel_itembar_size_allocate (GtkWidget     *widget,
             }
           else
             {
-              child_alloc.width = MIN (itembar->size, child_req.width);
+              child_alloc.width = itembar->size;
               child_alloc.height = child_len;
 
               /* pack next time right of this one */
@@ -651,14 +651,14 @@ panel_itembar_size_allocate (GtkWidget     *widget,
 
           if (IS_HORIZONTAL (itembar))
             {
-              child_alloc.height = MIN (rows_size, child_req.height);
+              child_alloc.height = rows_size;
               child_alloc.width = child_len;
 
               x += child_len;
             }
           else
             {
-              child_alloc.width = MIN (rows_size, child_req.width);
+              child_alloc.width = rows_size;
               child_alloc.height = child_len;
 
               y += child_len;


More information about the Xfce4-commits mailing list