boxgadget: Don't use g_assert

Use g_return_if_fail instead so nothing abort()s.
This commit is contained in:
Timm Bäder 2016-01-13 19:24:46 +01:00
parent a5fabee202
commit 4703d2bbf0

View File

@ -111,7 +111,7 @@ gtk_box_gadget_distribute (GtkBoxGadget *gadget,
size -= sizes[i].minimum_size;
}
g_assert (size >= 0);
g_return_if_fail (size >= 0);
size = gtk_distribute_natural_allocation (size, priv->children->len, sizes);