# HG changeset patch # User Sadrul Habib Chowdhury # Date 1270174585 0 # Node ID 5d3f64f8e7b57efb405bd3e23119eae432387bad # Parent fc4bacb35cbc92bbd27d73116976932fc568b501 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. diff -r fc4bacb35cbc -r 5d3f64f8e7b5 finch/libgnt/gntbox.c --- a/finch/libgnt/gntbox.c Thu Apr 01 06:51:04 2010 +0000 +++ b/finch/libgnt/gntbox.c Fri Apr 02 02:16:25 2010 +0000 @@ -422,7 +422,7 @@ 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 @@ 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