forked from AuroraMiddleware/gtk
boxgadget: Don't use g_assert
Use g_return_if_fail instead so nothing abort()s.
This commit is contained in:
parent
a5fabee202
commit
4703d2bbf0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user