widget: Not all toplevels are also containers

This commit is contained in:
Timm Bäder 2016-10-17 09:13:51 +02:00 committed by Benjamin Otte
parent 8245374f9c
commit a864f4d474

View File

@ -5219,7 +5219,7 @@ gtk_widget_queue_resize_internal (GtkWidget *widget)
}
}
if (_gtk_widget_is_toplevel (widget))
if (_gtk_widget_is_toplevel (widget) && GTK_IS_CONTAINER (widget))
{
gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
}