gtk/gtkmain.c: use accessor functions to access GtkWidget

This commit is contained in:
Javier Jardón 2010-08-11 23:08:57 +02:00
parent 7587ee2dde
commit 1783b227e8

View File

@ -1543,7 +1543,7 @@ gtk_main_do_event (GdkEvent *event)
/* Unexpected GDK_DESTROY from the outside, ignore for
* child windows, handle like a GDK_DELETE for toplevels
*/
if (!event_widget->parent)
if (!gtk_widget_get_parent (event_widget))
{
g_object_ref (event_widget);
if (!gtk_widget_event (event_widget, event) &&
@ -2412,7 +2412,7 @@ gtk_propagate_event (GtkWidget *widget,
else
handled_event = gtk_widget_event (widget, event);
tmp = widget->parent;
tmp = gtk_widget_get_parent (widget);
g_object_unref (widget);
widget = tmp;