mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
removed ClutterReal; added clutter-units
This commit is contained in:
@ -97,11 +97,11 @@ clutter_group_paint (ClutterActor *actor)
|
||||
|
||||
static void
|
||||
clutter_group_request_coords (ClutterActor *self,
|
||||
ClutterActorBoxReal *box)
|
||||
ClutterActorBox *box)
|
||||
{
|
||||
ClutterActorBoxReal cbox;
|
||||
ClutterActorBox cbox;
|
||||
|
||||
_clutter_actor_allocate_coords_real (self, &cbox);
|
||||
clutter_actor_allocate_coords (self, &cbox);
|
||||
|
||||
/* Only positioning works.
|
||||
* Sizing requests fail, use scale() instead
|
||||
@ -112,7 +112,7 @@ clutter_group_request_coords (ClutterActor *self,
|
||||
|
||||
static void
|
||||
clutter_group_allocate_coords (ClutterActor *self,
|
||||
ClutterActorBoxReal *box)
|
||||
ClutterActorBox *box)
|
||||
{
|
||||
ClutterGroupPrivate *priv;
|
||||
GList *child_item;
|
||||
@ -132,21 +132,19 @@ clutter_group_allocate_coords (ClutterActor *self,
|
||||
/* Once added we include in sizing - doesn't matter if visible */
|
||||
/* if (CLUTTER_ACTOR_IS_VISIBLE (child)) */
|
||||
{
|
||||
ClutterActorBoxReal cbox;
|
||||
ClutterActorBox cbox;
|
||||
|
||||
_clutter_actor_allocate_coords_real (child, &cbox);
|
||||
clutter_actor_allocate_coords (child, &cbox);
|
||||
|
||||
/* Ignore any children with offscreen ( negaive )
|
||||
* positions.
|
||||
*
|
||||
* Also x1 and x2 will be set by parent caller.
|
||||
*/
|
||||
if (CLUTTER_REAL_EZ (box->x2) ||
|
||||
CLUTTER_REAL_GT (cbox.x2, box->x2))
|
||||
if (box->x2 == 0 || cbox.x2 > box->x2)
|
||||
box->x2 = cbox.x2;
|
||||
|
||||
if (CLUTTER_REAL_EZ (box->y2) ||
|
||||
CLUTTER_REAL_GT (cbox.y2, box->y2))
|
||||
if (box->y2 == 0 || cbox.y2 > box->y2)
|
||||
box->y2 = cbox.y2;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user