mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
gtk/gtkmain.c: use accessor functions to access GtkWidget
This commit is contained in:
parent
7587ee2dde
commit
1783b227e8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user