comparison console/libgnt/gnttree.c @ 15758:ba30f28193ff

gnttree can have a size of 1. This fixes <sadrul> meh. gntcombobox crashes if it has only one item in it
author Richard Nelson <wabz@pidgin.im>
date Fri, 02 Mar 2007 03:50:03 +0000
parents 6d4c5218b90b
children 1c8f1dc50685
comparison
equal deleted inserted replaced
15757:0e9bcdeaf2fa 15758:ba30f28193ff
833 GntWidget *widget = GNT_WIDGET(instance); 833 GntWidget *widget = GNT_WIDGET(instance);
834 GntTree *tree = GNT_TREE(widget); 834 GntTree *tree = GNT_TREE(widget);
835 tree->show_separator = TRUE; 835 tree->show_separator = TRUE;
836 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_GROW_X | GNT_WIDGET_GROW_Y); 836 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_GROW_X | GNT_WIDGET_GROW_Y);
837 widget->priv.minw = 4; 837 widget->priv.minw = 4;
838 widget->priv.minh = 4; 838 widget->priv.minh = 1;
839 GNTDEBUG; 839 GNTDEBUG;
840 } 840 }
841 841
842 /****************************************************************************** 842 /******************************************************************************
843 * GntTree API 843 * GntTree API