woohyun pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=bb782234cd121c2aae1cdeb374335f26e76e9ef4
commit bb782234cd121c2aae1cdeb374335f26e76e9ef4 Author: WooHyun Jung <wh0705.j...@samsung.com> Date: Thu Dec 5 10:01:43 2013 +0900 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. --- src/lib/elm_button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c index e1f3da8..42f337f 100644 --- a/src/lib/elm_button.c +++ b/src/lib/elm_button.c @@ -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; --