[gtk+/wip/baedert/children: 30/46] inspector: Don't try to access child props of non-containers
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/children: 30/46] inspector: Don't try to access child props of non-containers
- Date: Sat, 3 Dec 2016 12:21:12 +0000 (UTC)
commit 7c7d6558a52bcffa9d87da78abeb4ed479e2f919
Author: Timm Bäder <mail baedert org>
Date: Tue Nov 29 18:32:43 2016 +0100
inspector: Don't try to access child props of non-containers
gtk/inspector/prop-list.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/prop-list.c b/gtk/inspector/prop-list.c
index cf75d93..ff108d7 100644
--- a/gtk/inspector/prop-list.c
+++ b/gtk/inspector/prop-list.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]