From 0862c5f6e5efd82c0be6bb7800a1ee7f9effbac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 26 Jun 2017 12:02:17 +0200 Subject: [PATCH] paned: Remove assertion in get_child_property Passing the third child (the pane separator) is possible and shouldn't cause the process to abort. --- gtk/gtkpaned.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 463a8c8d3b..887999fd63 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -965,8 +965,10 @@ gtk_paned_get_child_property (GtkContainer *container, GtkPaned *paned = GTK_PANED (container); GtkPanedPrivate *priv = paned->priv; - g_assert (child == priv->child1 || child == priv->child2); - + if (child != priv->child1 && + child != priv->child2) + return; + switch (property_id) { case CHILD_PROP_RESIZE: