changeset 30193:b3c4f33643a6

Ignore invisible widgets when resizing. References #12169.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 15 Jun 2010 17:11:15 +0000
parents bb835d43f29f
children 6943aec8cf61
files finch/libgnt/gntbox.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntbox.c	Tue Jun 15 01:33:28 2010 +0000
+++ b/finch/libgnt/gntbox.c	Tue Jun 15 17:11:15 2010 +0000
@@ -422,7 +422,9 @@
 
 		gnt_widget_get_size(wid, &w, &h);
 
-		if (wid != last && !child && w > 0 && h > 0 && gnt_widget_confirm_size(wid, w - wchange, h - hchange)) {
+		if (wid != last && !child && w > 0 && h > 0 &&
+				!GNT_WIDGET_IS_FLAG_SET(wid, GNT_WIDGET_INVISIBLE) &&
+				gnt_widget_confirm_size(wid, w - wchange, h - hchange)) {
 			child = wid;
 			break;
 		}