pidgin: 782e804f: Tweak the box-resizing a bit.
sadrul at pidgin.im
sadrul at pidgin.im
Thu Apr 1 22:15:51 EDT 2010
-----------------------------------------------------------------
Revision: 782e804fc8a8d63fd48996df3e691de231e1facc
Ancestor: 476c108653655f35df274993bb4fa00f5d82d523
Author: sadrul at pidgin.im
Date: 2010-04-02T02:16:25
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/782e804fc8a8d63fd48996df3e691de231e1facc
Modified files:
finch/libgnt/gntbox.c
ChangeLog:
Tweak the box-resizing a bit.
This change should make the widgets inside a window resize a bit more
predictably. Still not perfect, but better than before.
-------------- next part --------------
============================================================
--- finch/libgnt/gntbox.c f6b2e808bd9428c45c03eaaf631d6a1938988820
+++ finch/libgnt/gntbox.c 6b1701f62bcb14270cfbfec19f719ed27eb5c83f
@@ -422,7 +422,7 @@ gnt_box_confirm_size(GntWidget *widget,
gnt_widget_get_size(wid, &w, &h);
- if (wid != last && !child && gnt_widget_confirm_size(wid, w - wchange, h - hchange)) {
+ if (wid != last && !child && w > 0 && h > 0 && gnt_widget_confirm_size(wid, w - wchange, h - hchange)) {
child = wid;
break;
}
@@ -442,6 +442,9 @@ gnt_box_confirm_size(GntWidget *widget,
GntWidget *wid = iter->data;
int w, h;
+ if (wid == child)
+ continue;
+
gnt_widget_get_size(wid, &w, &h);
if (box->vertical) {
/* For a vertical box, if we are changing the width, make sure the widgets
More information about the Commits
mailing list