[Xfce4-commits] <xfce4-panel:andrzejr/deskbar> panel-itembar: fixed a bug in handling shrinkable plugins.
Andrzej
noreply at xfce.org
Mon Dec 26 23:50:06 CET 2011
Updating branch refs/heads/andrzejr/deskbar
to 4f0b035f64a06dbb1f410ca38390c7146df39c99 (commit)
from 4c86ea04a09c2c6770059f3a3f4ac720673ca7d8 (commit)
commit 4f0b035f64a06dbb1f410ca38390c7146df39c99
Author: Andrzej <ndrwrdck at gmail.com>
Date: Tue Dec 27 07:47:35 2011 +0900
panel-itembar: fixed a bug in handling shrinkable plugins.
When a shrinkable plugin was shrunk too much it was given an allocation area equal to the requested area. In such case we'd rather want it to stay at a minimum size (child_len=1px, which is set immediately below).
panel/panel-itembar.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/panel/panel-itembar.c b/panel/panel-itembar.c
index a9fedb2..947d1fe 100644
--- a/panel/panel-itembar.c
+++ b/panel/panel-itembar.c
@@ -579,11 +579,7 @@ panel_itembar_size_allocate (GtkWidget *widget,
shrink_len_req -= new_len;
shrink_len_avail -= child_len;
- /* the size we decrease can never be more then the actual length,
- * if this is the case the size allocation is lacking behind,
- * which happens on panel startup with a expanding panel */
- if (new_len < child_len)
- child_len -= new_len;
+ child_len -= new_len;
}
if (G_UNLIKELY (child_len < 1))
More information about the Xfce4-commits
mailing list