diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-03-20 17:09:57 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-03-20 17:09:57 +0000 |
commit | 3eacf2c33c7699100c83ec2174cf7b9f0d2d1bba (patch) | |
tree | c2df59bd513144fce4d6cc9a7dad1734d43aeb4e /gtk/gtkwidget.c | |
parent | 288909d466b72f39906599e39fe92c1f8721cec7 (diff) | |
download | gtk+-3eacf2c33c7699100c83ec2174cf7b9f0d2d1bba.tar.gz |
Fix segfault when widget->parent is NULL. (#75615, Alexey A. Malyshev)
Wed Mar 20 12:06:30 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_set_child_visible):
Fix segfault when widget->parent is NULL.
(#75615, Alexey A. Malyshev)
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 550f5ebda3..9f73dd0c00 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4526,7 +4526,7 @@ gtk_widget_set_child_visible (GtkWidget *widget, GTK_PRIVATE_SET_FLAG (widget, GTK_CHILD_VISIBLE); else GTK_PRIVATE_UNSET_FLAG (widget, GTK_CHILD_VISIBLE); - if (GTK_WIDGET_REALIZED (widget->parent)) + if (widget->parent && GTK_WIDGET_REALIZED (widget->parent)) { if (GTK_WIDGET_MAPPED (widget->parent) && GTK_WIDGET_CHILD_VISIBLE (widget) && |