edje_edit: fixing return value of edje_edit_program_name_set

Summary: If name of program is setted to its current value EINA_TRUE should be returned

Reviewers: cedric, seoz, raster, Hermet

Reviewed By: Hermet

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1290
This commit is contained in:
Andrii Kroitor 2014-08-07 23:48:22 +09:00 committed by ChunEon Park
parent a306c19871
commit fd3f5f4615
1 changed files with 2 additions and 0 deletions

View File

@ -8109,6 +8109,8 @@ edje_edit_program_name_set(Evas_Object *obj, const char *prog, const char* new_n
if (!new_name) return EINA_FALSE;
if (!strcmp(prog, new_name)) return EINA_TRUE;
if (_edje_program_get_byname(obj, new_name)) return EINA_FALSE;
//printf("SET NAME for program: %s [new name: %s]\n", prog, new_name);