2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>

Bug 1124 - Clutter causes an additional size request in each
	allocation

	* clutter/clutter-actor.c:
	(clutter_actor_store_old_geometry): Store the allocation instead
	of causing a new size-request cycle. (Johan Bilien)
This commit is contained in:
Emmanuele Bassi 2008-09-23 11:15:38 +00:00
parent 9f0842bacb
commit a4b0ffe1de
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,12 @@
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1124 - Clutter causes an additional size request in each
allocation
* clutter/clutter-actor.c:
(clutter_actor_store_old_geometry): Store the allocation instead
of causing a new size-request cycle. (Johan Bilien)
2008-09-23 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1125 - Save an extra pango_layout_get_size in many cases

View File

@ -710,10 +710,7 @@ static void
clutter_actor_store_old_geometry (ClutterActor *self,
ClutterActorBox *box)
{
box->x1 = clutter_actor_get_xu (self);
box->y1 = clutter_actor_get_yu (self);
box->x2 = box->x1 + clutter_actor_get_widthu (self);
box->y2 = box->y1 + clutter_actor_get_heightu (self);
*box = self->priv->allocation;
}
static inline void