From 4b0124b67bc8d87c5d5dd63ae092b280b0b5709c Mon Sep 17 00:00:00 2001 From: cedric Date: Fri, 30 Jul 2010 09:08:37 +0000 Subject: [PATCH] * edje: fix rename of a part. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50684 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_edit.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/edje_edit.c b/src/lib/edje_edit.c index 9e692de..8498688 100644 --- a/src/lib/edje_edit.c +++ b/src/lib/edje_edit.c @@ -664,7 +664,8 @@ _edje_fix_parts_id(Edje *ed) //printf(" [%d]Checking part: %s id: %d\n", correct_id, p->name, p->id); if (p->id != correct_id) - _edje_part_id_set(ed, ed->table_parts[p->id], correct_id); + if (ed->table_parts[p->id]) + _edje_part_id_set(ed, ed->table_parts[p->id], correct_id); correct_id++; } @@ -1031,13 +1032,11 @@ edje_edit_group_name_set(Evas_Object *obj, const char *new_name) //if (pc->part && ed->file->free_strings) eina_stringshare_del(pc->part); TODO FIXME pce = eina_hash_find(ed->file->collection, pc->part); - eina_hash_del(ed->file->collection, pce->entry, pce); + eina_hash_move(ed->file->collection, pce->entry, new_name); pce->entry = eina_stringshare_add(new_name); pc->part = pce->entry; - eina_hash_add(ed->file->collection, pce->entry, pce); - return EINA_FALSE; } -- 2.7.4