paned: Remove assertion in get_child_property

Passing the third child (the pane separator) is possible and shouldn't
cause the process to abort.
This commit is contained in:
Timm Bäder 2017-06-26 12:02:17 +02:00 committed by Matthias Clasen
parent 51e25aaff4
commit a9f10a2d56

View File

@ -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: