forked from AuroraMiddleware/gtk
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)
This commit is contained in:
parent
288909d466
commit
3eacf2c33c
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
||||
Wed Mar 20 11:32:07 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Improve test to prevent infinite
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
||||
Wed Mar 20 11:32:07 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Improve test to prevent infinite
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
||||
Wed Mar 20 11:32:07 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Improve test to prevent infinite
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
||||
Wed Mar 20 11:32:07 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Improve test to prevent infinite
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
||||
Wed Mar 20 11:32:07 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Improve test to prevent infinite
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
||||
Wed Mar 20 11:32:07 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Improve test to prevent infinite
|
||||
|
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user