forked from enlightenment/efl
parent
ad8314a7ce
commit
1c63337989
|
@ -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(
|
||||
|
|
|
@ -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 */
|
||||
/*************************/
|
||||
|
|
Loading…
Reference in New Issue