Enlightenment CVS committal Author : davemds Project : e17 Module : proto/edje_editor
Dir : e17/proto/edje_editor/src/bin Modified Files: callbacks.c main.c Log Message: update also Parts_Hash when part name changes. =================================================================== RCS file: /cvs/e/e17/proto/edje_editor/src/bin/callbacks.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -3 -r1.44 -r1.45 --- callbacks.c 28 Dec 2007 23:01:41 -0000 1.44 +++ callbacks.c 28 Dec 2007 23:22:30 -0000 1.45 @@ -626,6 +626,9 @@ while (child = etk_tree_row_next_get(child)) etk_tree_row_fields_set(child, TRUE, COL_PARENT, text, NULL); + /* Update Parts_Hash */ + Parts_Hash = evas_hash_del(Parts_Hash, Cur.part->string, NULL); + Parts_Hash = evas_hash_add(Parts_Hash, text, row); /* change the name in edje */ edje_edit_part_name_set(edje_o, Cur.part->string, text); =================================================================== RCS file: /cvs/e/e17/proto/edje_editor/src/bin/main.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- main.c 28 Dec 2007 23:01:41 -0000 1.25 +++ main.c 28 Dec 2007 23:22:30 -0000 1.26 @@ -241,6 +241,11 @@ return TRUE; } #if TEST_DIRECT_EDJE +Evas_Bool +_DebugInfo_helper(Evas_Hash *hash, const char *key, void *data, void *fdata) +{ + printf("Key: '%s' [%d]\n", key, data); +} void DebugInfo(int full) { @@ -269,6 +274,8 @@ printf(" ** Cur program: %s\n",Cur.prog->string); else printf(" ** Cur program: (NULL)\n"); + printf(" *********************** Parts_Hash *****************************\n"); + evas_hash_foreach(Parts_Hash, _DebugInfo_helper, NULL); printf(" *********************** E N D *****************************\n\n"); } #else ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs