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:
Carsten Haitzler 2024-02-09 18:09:59 +00:00
parent 7eea5fb897
commit 5a5059b058
1 changed files with 4 additions and 3 deletions

View File

@ -160,12 +160,13 @@ notification_popup_notify(E_Notification_Notify *n,
E_FREE_FUNC(popup->timer, ecore_timer_del);
if (n->timeout < 0 || notification_cfg->force_timeout)
n->timeout = notification_cfg->timeout;
else n->timeout = n->timeout / 1000.0;
n->timeout = notification_cfg->timeout * 1000.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