[gtk+/wip/baedert/children: 358/365] 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: 358/365] inspector: Don't try to access child props of non-containers
- Date: Fri, 6 Jan 2017 08:43:28 +0000 (UTC)
commit 6da9981f340d23f374c38bbd8b7ae62d785f4c93
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]