Enlightenment CVS committal Author : lok Project : e_modules Module : notification
Dir : e_modules/notification/src Modified Files: e_mod_main.c Log Message: Handle the NOTIFY_EXPIRES_NEVER case. =================================================================== RCS file: /cvs/e/e_modules/notification/src/e_mod_main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- e_mod_main.c 16 Jan 2008 19:55:10 -0000 1.2 +++ e_mod_main.c 16 Jan 2008 20:21:12 -0000 1.3 @@ -124,9 +124,12 @@ if (popup->timer) ecore_timer_del(popup->timer); timeout = e_notification_timeout_get(popup->notif); - popup->timer = ecore_timer_add(timeout == -1 ? dd->default_timeout : (float)timeout / 1000, - _notification_timer_cb, - popup); + if (timeout == 0) + popup->timer = NULL; + else + popup->timer = ecore_timer_add(timeout == -1 ? dd->default_timeout : (float)timeout / 1000, + _notification_timer_cb, + popup); return new_id; } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs