forked from enlightenment/efl
edje: Edje_Edit - add edje_edit_program_stop_all
Summary: Stops all running programs. If any program has "after" field its value will be ignored. Reviewers: cedric, seoz, Hermet Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1433 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
cbc6385026
commit
38561202bf
|
@ -5436,6 +5436,14 @@ EAPI Eina_Bool edje_edit_program_exist(Evas_Object *obj, const char *prog);
|
|||
*/
|
||||
EAPI Eina_Bool edje_edit_program_run(Evas_Object *obj, const char *prog);
|
||||
|
||||
/** Stop all running programs.
|
||||
*
|
||||
* @param obj Object being edited.
|
||||
*
|
||||
* @return @c EINA_TRUE in case of success, @c EINA_FALSE otherwise.
|
||||
*/
|
||||
EAPI Eina_Bool edje_edit_program_stop_all(Evas_Object *obj);
|
||||
|
||||
/** Set a new name for the given program
|
||||
*
|
||||
* @param obj Object being edited.
|
||||
|
|
|
@ -8102,6 +8102,20 @@ edje_edit_program_run(Evas_Object *obj, const char *prog)
|
|||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_edit_program_stop_all(Evas_Object *obj)
|
||||
{
|
||||
GET_ED_OR_RETURN(EINA_FALSE);
|
||||
|
||||
Eina_List *l, *ln;
|
||||
Edje_Running_Program *runp;
|
||||
|
||||
EINA_LIST_FOREACH_SAFE(ed->actions, l, ln, runp)
|
||||
_edje_program_end(ed, runp);
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_edit_program_name_set(Evas_Object *obj, const char *prog, const char* new_name)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue