elm notify can now have the timeout set before it becomes visible

SVN revision: 71832
This commit is contained in:
Mike Blumenkrantz 2012-06-08 07:20:39 +00:00
parent cf2c7ac35a
commit f18b904b2a
1 changed files with 2 additions and 1 deletions

View File

@ -396,6 +396,7 @@ _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;
@ -414,7 +415,7 @@ _timer_init(Evas_Object *obj,
ecore_timer_del(sd->timer);
sd->timer = NULL;
}
if ((evas_object_visible_get(obj)) && (sd->timeout > 0.0))
if (sd->timeout > 0.0)
sd->timer = ecore_timer_add(sd->timeout, _timer_cb, obj);
}