forked from AuroraMiddleware/gtk
inspector: Don't try to access child props of non-containers
This commit is contained in:
parent
5ab2377afa
commit
9aedbc376b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user