edje: do it in the right order.

SVN revision: 67526
This commit is contained in:
Cedric BAIL 2012-01-25 09:36:08 +00:00
parent 7191b9a3f6
commit f968d16b55
1 changed files with 9 additions and 9 deletions

View File

@ -2165,15 +2165,6 @@ st_collections_group_name(void)
edje_collections = eina_list_remove(edje_collections, pc);
codes = eina_list_remove(codes, cd);
EINA_LIST_FOREACH(edje_collections, l, pc)
{
older = eina_hash_find(edje_file->collection, pc->part);
pc->id = i++;
if (older) older->id = pc->id;
else if (pc->part == current_pc->part) current_de->id = pc->id;
}
for (i = 0; i < pc->parts_count; ++i)
{
Edje_Part_Description_Image *ed;
@ -2190,6 +2181,15 @@ st_collections_group_name(void)
data_queue_image_remove(&(ed->image.tweens[ed->image.tweens_count - 1]->id),
&(ed->image.tweens[ed->image.tweens_count - 1]->set));
}
EINA_LIST_FOREACH(edje_collections, l, pc)
{
older = eina_hash_find(edje_file->collection, pc->part);
pc->id = i++;
if (older) older->id = pc->id;
else if (pc->part == current_pc->part) current_de->id = pc->id;
}
}
eina_hash_direct_add(edje_file->collection, current_de->entry, current_de);