elementary/elm_button.c : Change the timing of signal_emitting.

Application can delete button itsefl(or its parent) inside the smart callback function.
So the signal_emitting with button object should be done in advance.
This commit is contained in:
WooHyun Jung 2013-12-05 10:01:43 +09:00
parent 9816a8cae1
commit 0a60e7b575
1 changed files with 1 additions and 1 deletions

View File

@ -184,8 +184,8 @@ _elm_button_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
(strcmp(ev->key, "space")))
return;
_activate(obj);
elm_layout_signal_emit(obj, "elm,anim,activate", "elm");
_activate(obj);
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
if (ret) *ret = EINA_TRUE;