[elm] Fix bad timer usage on notify.

SVN revision: 74151
This commit is contained in:
Gustavo Lima Chaves 2012-07-18 21:03:58 +00:00
parent dae34c056e
commit bc3dd23c35
1 changed files with 4 additions and 2 deletions

View File

@ -396,13 +396,15 @@ _timer_cb(void *data)
{
Evas_Object *obj = data;
if (!evas_object_visible_get(obj)) return ECORE_CALLBACK_CANCEL;
ELM_NOTIFY_DATA_GET(obj, sd);
sd->timer = NULL;
if (!evas_object_visible_get(obj)) goto end;
evas_object_hide(obj);
evas_object_smart_callback_call(obj, SIG_TIMEOUT, NULL);
end:
sd->timer = NULL;
return ECORE_CALLBACK_CANCEL;
}