mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
gtk/gtkcontainer.c: use accessor functions to access GtkWidget
This commit is contained in:
parent
83372be93e
commit
3a89cc150c
@ -1352,11 +1352,11 @@ gtk_container_get_resize_container (GtkContainer *container)
|
||||
GtkWidget *parent;
|
||||
GtkWidget *widget = GTK_WIDGET (container);
|
||||
|
||||
while (parent = gtk_widget_get_parent (widget))
|
||||
while (parent = gtk_widget_get_parent (widget))
|
||||
{
|
||||
widget = parent;
|
||||
if (GTK_IS_RESIZE_CONTAINER (widget))
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
return GTK_IS_RESIZE_CONTAINER (widget) ? (GtkContainer*) widget : NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user