forked from enlightenment/enlightenment
notification - timeout - handling was jut broken - fix
this totally didnt' get timeout was in ms - it mis-handled setting the value thinking it was double or float - it wasn't.. this fixes it. Fixes #63 @fix
This commit is contained in:
parent
7eea5fb897
commit
5a5059b058
|
@ -160,12 +160,13 @@ notification_popup_notify(E_Notification_Notify *n,
|
||||||
E_FREE_FUNC(popup->timer, ecore_timer_del);
|
E_FREE_FUNC(popup->timer, ecore_timer_del);
|
||||||
|
|
||||||
if (n->timeout < 0 || notification_cfg->force_timeout)
|
if (n->timeout < 0 || notification_cfg->force_timeout)
|
||||||
n->timeout = notification_cfg->timeout;
|
n->timeout = notification_cfg->timeout * 1000.0;
|
||||||
else n->timeout = n->timeout / 1000.0;
|
|
||||||
|
|
||||||
|
|
||||||
if (n->timeout > 0)
|
if (n->timeout > 0)
|
||||||
popup->timer = ecore_timer_loop_add(n->timeout, (Ecore_Task_Cb)_notification_timer_cb, popup);
|
popup->timer = ecore_timer_loop_add((double)n->timeout / 1000.0,
|
||||||
|
(Ecore_Task_Cb)_notification_timer_cb,
|
||||||
|
popup);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue