From bc3dd23c352e6fdd760c22535fdced00cc4614f4 Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Wed, 18 Jul 2012 21:03:58 +0000 Subject: [PATCH] [elm] Fix bad timer usage on notify. SVN revision: 74151 --- legacy/elementary/src/lib/elm_notify.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_notify.c b/legacy/elementary/src/lib/elm_notify.c index d8446fa44b..27f0f9273a 100644 --- a/legacy/elementary/src/lib/elm_notify.c +++ b/legacy/elementary/src/lib/elm_notify.c @@ -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; }