From 4c7a34f1824ce5717ab7364857be2a90d33f45cf Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 6 Jan 1999 19:47:24 +0000 Subject: [PATCH] 1999-01-06 Miguel de Icaza * widget.c (listbox_new): Assing l->height. --- src/ChangeLog | 4 ++++ src/widget.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 89af9e11a..bfe7f8b67 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +1999-01-06 Miguel de Icaza + + * widget.c (listbox_new): Assing l->height. + 1999-01-03 Miguel de Icaza * main.c (update_one_panel_widget): GNOME version does the panel diff --git a/src/widget.c b/src/widget.c index 761daa2d1..8b1395f64 100644 --- a/src/widget.c +++ b/src/widget.c @@ -2209,7 +2209,9 @@ listbox_new (int y, int x, int width, int height, l->pos = 0; l->width = width; if (height <= 0) - l->height = 0; + l->height = 1; + else + l->height = height; l->count = 0; l->top = 0; l->current= 0;