forked from AuroraMiddleware/gtk
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:
parent
51e25aaff4
commit
a9f10a2d56
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user