[Xfce4-commits] <xfce4-panel:andrzejr/deskbar> panel-itembar: fixed minimum size of expandable items.
Andrzej
noreply at xfce.org
Mon Dec 26 23:50:04 CET 2011
Updating branch refs/heads/andrzejr/deskbar
to 4c86ea04a09c2c6770059f3a3f4ac720673ca7d8 (commit)
from 64c6f7ca377a2f830d6ac069bcd67fc3a649723b (commit)
commit 4c86ea04a09c2c6770059f3a3f4ac720673ca7d8
Author: Andrzej <ndrwrdck at gmail.com>
Date: Tue Dec 27 07:22:32 2011 +0900
panel-itembar: fixed minimum size of expandable items.
panel/panel-itembar.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/panel/panel-itembar.c b/panel/panel-itembar.c
index fbd42bc..a9fedb2 100644
--- a/panel/panel-itembar.c
+++ b/panel/panel-itembar.c
@@ -502,13 +502,13 @@ panel_itembar_size_allocate (GtkWidget *widget,
* not the length set by the user) */
expand_children_fit = expand_len_req == expand_len_avail;
- if (expand_len_avail < 0)
+ if (expand_len_avail < expand_len_req)
{
/* check if there are plugins on the panel we can shrink */
if (shrink_len_avail > 0)
- shrink_len_req = ABS (expand_len_avail);
+ shrink_len_req = expand_len_req - expand_len_avail;
- expand_len_avail = 0;
+ expand_len_avail = expand_len_req;
}
/* init coordinates for first child */
More information about the Xfce4-commits
mailing list