box-layout: Remove the allocations hash table
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 23 Dec 2009 08:34:08 +0000 (08:34 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 23 Dec 2009 10:36:46 +0000 (10:36 +0000)
commitb9c1de0ec7001ce6a6b62dbd8d1fd9ee15539093
treef390d43e71081efc62566b523849f4d1935aa92d
parentc8c5e0ee39626d434c2d3e5486c6520eff17f519
box-layout: Remove the allocations hash table

The BoxLayout uses a HashTable to map the latest stable allocation of
each child, in order to use that as the initial value during an
animation; this in spite of already having a perfectly valid per-child
storage as part of the layout manager: ClutterBoxChild.

The last stable allocation should be stored inside the ClutterBoxChild
instead of having it in the private data for ClutterBoxLayout. The
access remains O(1), since there is a 1:1 mapping between child and
BoxChild instances, but we save a little bit of memory and we avoid
keeping aroud allocations for old children.
clutter/clutter-box-layout.c