[gtk+/wip/baedert/children: 22/37] 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: 22/37] inspector: Don't try to access	child props of non-containers
- Date: Sun,  4 Dec 2016 12:55:38 +0000 (UTC)
commit 37b0516211daf9c5b48737910ef27d1d410f7913
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]