Add after_del() function

SVN revision: 48177
This commit is contained in:
Iván Briano 2010-04-20 19:57:17 +00:00
parent ad8314a7ce
commit 1c63337989
2 changed files with 24 additions and 0 deletions

View File

@ -2578,6 +2578,8 @@ edje_edit_program_after_add(
const char *after ///< The name of another program to add to the afters list
);
EAPI Eina_Bool edje_edit_program_after_del(Evas_Object *obj, const char *prog, const char *after);
/**Clear the 'afters' list of the given program */
EAPI Eina_Bool ///@return 1 on success or 0 on errors
edje_edit_program_afters_clear(

View File

@ -5672,6 +5672,28 @@ edje_edit_program_after_add(Evas_Object *obj, const char *prog, const char *afte
return 1;
}
EAPI Eina_Bool
edje_edit_program_after_del(Evas_Object *obj, const char *prog, const char *after)
{
Edje_Program *af;
Edje_Program_After *a;
const Eina_List *l;
GET_EPR_OR_RETURN(EINA_FALSE);
af = _edje_program_get_byname(obj, after);
if (!af) return EINA_FALSE;
EINA_LIST_FOREACH(epr->after, l, a)
if (a->id == af->id)
{
epr->after = eina_list_remove_list(epr->after, l);
break;
}
return EINA_TRUE;
}
/*************************/
/* EMBRYO SCRIPTS API */
/*************************/