diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-05-08 21:51:38 +0200 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-06-29 15:42:11 -0400 |
commit | bcbe42dd7a4b7bca0e699c3e52f2c9bf7b37deba (patch) | |
tree | 0e93a7ba613dcdbfd0c27961578afa624a4ae13a /src/fe-gtk | |
parent | 25e197a6c84463e967065c64b5760b79884787cc (diff) |
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.
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index b2418b42..3e7b8499 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -345,6 +345,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_timeout_remove (int tag) { |