diff options
author | Anders Carlsson <andersca@gnu.org> | 2002-11-07 19:53:49 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2002-11-07 19:53:49 +0000 |
commit | 9232e400a18d06362b0a7f2991addc071e186925 (patch) | |
tree | 343dc7fe5b7b87dd5631366fe6ccb7b4f40f9741 /gtk/gtkvpaned.c | |
parent | 50884b70f43350f1904807834cc8a210fee54efb (diff) | |
download | gdk-pixbuf-9232e400a18d06362b0a7f2991addc071e186925.tar.gz |
Check for NULL children, #97913.
2002-11-07 Anders Carlsson <andersca@gnu.org>
* gtk/gtkhpaned.c: (gtk_hpaned_size_allocate):
* gtk/gtkvpaned.c: (gtk_vpaned_size_allocate):
Check for NULL children, #97913.
Diffstat (limited to 'gtk/gtkvpaned.c')
-rw-r--r-- | gtk/gtkvpaned.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c index b7067e7c2..221cd2dc0 100644 --- a/gtk/gtkvpaned.c +++ b/gtk/gtkvpaned.c @@ -212,9 +212,11 @@ gtk_vpaned_size_allocate (GtkWidget *widget, if (GTK_WIDGET_REALIZED (widget)) gdk_window_hide (paned->handle); - - gtk_widget_set_child_visible (paned->child1, TRUE); - gtk_widget_set_child_visible (paned->child2, TRUE); + + if (paned->child1) + gtk_widget_set_child_visible (paned->child1, TRUE); + if (paned->child2) + gtk_widget_set_child_visible (paned->child2, TRUE); child_allocation.x = widget->allocation.x + border_width; child_allocation.y = widget->allocation.y + border_width; |