From 5818c1b0ff3c6760462c0d11288932717c8aae1c Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 6 Sep 1999 22:32:45 +0000 Subject: [PATCH] 1999-09-06 Federico Mena Quintero * gtkdtree.c (gtk_dtree_size_allocate): Do the "visibility" test the right way. --- gnome/ChangeLog | 5 +++++ gnome/gtkdtree.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 0223dcdcf..65722710e 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,8 @@ +1999-09-06 Federico Mena Quintero + + * gtkdtree.c (gtk_dtree_size_allocate): Do the "visibility" test + the right way. + 1999-09-06 Miguel de Icaza * gtkdtree.c (gtk_dtree_size_allocate): Small change to improve diff --git a/gnome/gtkdtree.c b/gnome/gtkdtree.c index a1d17c6bc..d6b2f27ab 100644 --- a/gnome/gtkdtree.c +++ b/gnome/gtkdtree.c @@ -390,7 +390,8 @@ gtk_dtree_size_allocate (GtkWidget *widget, GtkAllocation *allocation) char *request; GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation); - if (allocation->width > 8 && allocation->height != 0) + + if (allocation->width > 1 && allocation->height > 1) dtree->visible = TRUE; else dtree->visible = FALSE;