comparison finch/libgnt/gntbox.c @ 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 5d3f64f8e7b5
children a8cc50c2279f
comparison
equal deleted inserted replaced
30192:bb835d43f29f 30193:b3c4f33643a6
420 GntWidget *wid = iter->data; 420 GntWidget *wid = iter->data;
421 int w, h; 421 int w, h;
422 422
423 gnt_widget_get_size(wid, &w, &h); 423 gnt_widget_get_size(wid, &w, &h);
424 424
425 if (wid != last && !child && w > 0 && h > 0 && gnt_widget_confirm_size(wid, w - wchange, h - hchange)) { 425 if (wid != last && !child && w > 0 && h > 0 &&
426 !GNT_WIDGET_IS_FLAG_SET(wid, GNT_WIDGET_INVISIBLE) &&
427 gnt_widget_confirm_size(wid, w - wchange, h - hchange)) {
426 child = wid; 428 child = wid;
427 break; 429 break;
428 } 430 }
429 } 431 }
430 432