inspector: Don't try to access child props of non-containers

This commit is contained in:
Timm Bäder 2016-11-29 18:32:43 +01:00
parent 5ab2377afa
commit 9aedbc376b

View File

@ -528,7 +528,7 @@ gtk_inspector_prop_list_set_object (GtkInspectorPropList *pl,
}
parent = gtk_widget_get_parent (GTK_WIDGET (object));
if (!parent)
if (!parent || !GTK_IS_CONTAINER (parent))
{
gtk_widget_hide (GTK_WIDGET (pl));
return TRUE;