From bcbe42dd7a4b7bca0e699c3e52f2c9bf7b37deba Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 8 May 2016 21:51:38 +0200 Subject: Introduce and use fe_timeout_add_seconds This should allow the operating system to be a bit more lax about timeouts, allowing more efficient power management. --- src/fe-text/fe-text.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fe-text') diff --git a/src/fe-text/fe-text.c b/src/fe-text/fe-text.c index 209a3d03..7345ac6f 100644 --- a/src/fe-text/fe-text.c +++ b/src/fe-text/fe-text.c @@ -415,6 +415,12 @@ fe_timeout_add (int interval, void *callback, void *userdata) return g_timeout_add (interval, (GSourceFunc) callback, userdata); } +int +fe_timeout_add_seconds (int interval, void *callback, void *userdata) +{ + return g_timeout_add_seconds (interval, (GSourceFunc) callback, userdata); +} + void fe_input_remove (int tag) { -- cgit 1.4.1