Commit 9232e400 authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson

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.
parent 50884b70
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.
Thu Nov 7 14:24:45 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkhandlebox.c: Add a snap_edge_set property to
......
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.
Thu Nov 7 14:24:45 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkhandlebox.c: Add a snap_edge_set property to
......
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.
Thu Nov 7 14:24:45 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkhandlebox.c: Add a snap_edge_set property to
......
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.
Thu Nov 7 14:24:45 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkhandlebox.c: Add a snap_edge_set property to
......
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.
Thu Nov 7 14:24:45 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkhandlebox.c: Add a snap_edge_set property to
......
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.
Thu Nov 7 14:24:45 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkhandlebox.c: Add a snap_edge_set property to
......
......@@ -212,9 +212,11 @@ gtk_hpaned_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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment