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

This commit is contained in:
Javier Jardón 2010-08-11 23:14:16 +02:00
parent 83372be93e
commit 3a89cc150c

View File

@ -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;