This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 5a5059b058ec0a64ea8c691c5364c3d3388bcd8c
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Fri Feb 9 18:09:59 2024 +0000
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
---
src/modules/notification/e_mod_popup.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c
index 967c6b167..17e6f6b09 100644
--- a/src/modules/notification/e_mod_popup.c
+++ b/src/modules/notification/e_mod_popup.c
@@ -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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.