elementary/button - prevent the clicked event, when button is disabled or freezed events.

SVN revision: 65883
This commit is contained in:
ChunEon Park 2011-12-05 04:03:12 +00:00
parent ed23ba2a83
commit 7c915bb141
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}