forked from enlightenment/efl
elm notify can now have the timeout set before it becomes visible
SVN revision: 71832
This commit is contained in:
parent
cf2c7ac35a
commit
f18b904b2a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue