mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
Add NULL-check on the padding in clutter_box_pack()
This commit is contained in:
parent
e759e9eee6
commit
cc80f3bb68
@ -324,7 +324,9 @@ clutter_box_init (ClutterBox *box)
|
|||||||
/**
|
/**
|
||||||
* clutter_box_pack:
|
* clutter_box_pack:
|
||||||
* @box: a #ClutterBox
|
* @box: a #ClutterBox
|
||||||
* @actor: a #ClutterActor
|
* @actor: a #ClutterActor to pack into the box
|
||||||
|
* @pack_type: Type of packing to use
|
||||||
|
* @padding: padding to use on the actor
|
||||||
*
|
*
|
||||||
* Packs @actor into @box.
|
* Packs @actor into @box.
|
||||||
*
|
*
|
||||||
@ -340,6 +342,7 @@ clutter_box_pack (ClutterBox *box,
|
|||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_BOX (box));
|
g_return_if_fail (CLUTTER_IS_BOX (box));
|
||||||
g_return_if_fail (CLUTTER_IS_ACTOR (actor));
|
g_return_if_fail (CLUTTER_IS_ACTOR (actor));
|
||||||
|
g_return_if_fail (padding != NULL);
|
||||||
|
|
||||||
child = g_slice_new (ClutterBoxChild);
|
child = g_slice_new (ClutterBoxChild);
|
||||||
child->actor = actor;
|
child->actor = actor;
|
||||||
|
Loading…
Reference in New Issue
Block a user