From: ChunEon Park Date: Mon, 5 Dec 2011 04:03:12 +0000 (+0000) Subject: elementary/button - prevent the clicked event, when button is disabled or freezed... X-Git-Tag: v1.0.0~1448 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3094e801ba418700f6edd7ac3fe98ea440d7773;p=platform%2Fupstream%2Felementary.git elementary/button - prevent the clicked event, when button is disabled or freezed events. SVN revision: 65883 --- diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c index 81357f9..1b1750a 100644 --- a/src/lib/elm_button.c +++ b/src/lib/elm_button.c @@ -285,7 +285,9 @@ _activate(Evas_Object *obj) { if (_elm_config->access_mode != ELM_ACCESS_MODE_OFF) _elm_access_say(E_("Clicked")); - evas_object_smart_callback_call(obj, SIG_CLICKED, NULL); + if (!elm_widget_disabled_get(obj) && + !evas_object_freeze_events_get(obj)) + evas_object_smart_callback_call(obj, SIG_CLICKED, NULL); } }