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.
This commit is contained in:
Anders Carlsson 2002-11-07 19:53:49 +00:00 committed by Anders Carlsson
parent 50884b70f4
commit 9232e400a1
8 changed files with 46 additions and 6 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -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;

View File

@ -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;