From 869dbabfd121e8c8cfcc66a2b1e599e425df30b1 Mon Sep 17 00:00:00 2001 From: Juyeon Lee Date: Mon, 13 Nov 2017 15:40:34 +0900 Subject: [PATCH] efl_ui_win: added signal for effect start and done Change-Id: Ibed3a5e4a8a6b73be6464864abebeee0b5c5d3cd --- src/lib/elementary/efl_ui_win.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index b96da98..0e410d9 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -338,6 +338,9 @@ static const char SIG_EFFECT_DONE[] = "effect,done"; // TIZEN_ONLY(20160120): support visibility_change event static const char SIG_VISIBILITY_CHANGED[] = "visibility,changed"; // +//TIZEN_ONLY(20160704): added signal for launch +static const char SIG_LAUNCH_DONE[] = "launch,done"; +// static const Evas_Smart_Cb_Description _smart_callbacks[] = { {SIG_DELETE_REQUEST, ""}, @@ -362,6 +365,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = { {SIG_WIDGET_UNFOCUSED, ""}, /**< handled by elm_widget */ {SIG_EFFECT_STARTED, ""}, {SIG_EFFECT_DONE, ""}, + {SIG_LAUNCH_DONE, ""}, {SIG_VISIBILITY_CHANGED, ""}, {NULL, NULL} }; @@ -4354,11 +4358,17 @@ _elm_win_wl_effect_end(void *data, int type EINA_UNUSED, void *event) if (ecore_wl2_window_id_get(sd->wl.win) != e->win) return ECORE_CALLBACK_PASS_ON; - evas_object_smart_callback_call(data, SIG_EFFECT_DONE, (void*)e->type); + /* TIZEN_ONLY(20160704): added signal for launch */ + eff_type = e->type; + if (eff_type == 4) + evas_object_smart_callback_call(data, SIG_LAUNCH_DONE, (void*)e->type); + else + /* end of TIZEN_ONLY(20160704): added signal for launch*/ + evas_object_smart_callback_call(data, SIG_EFFECT_DONE, (void*)e->type); return ECORE_CALLBACK_PASS_ON; } -// +// end of TIZEN_ONLY(20171110): added signal for effect start and done #endif static inline void -- 2.7.4