Use g_timeout_add_seconds instead g_timeout_add



Hello,

I'm new to the list so hello everyone ;)
I've propossed a new GnomeGoal that maybe is of interest for you:
http://live.gnome.org/GnomeGoals/UseTimeoutAddSeconds.
Here a little abstract:

"One of the features of GTK+ is that it provides two timeout
functions: g_timeout_add and g_timeout_add_seconds. The difference is
much more important than not having to add a "* 1000" in one and not
the other. The important thing that the second function does is that
it tried to group wake-ups to ensure that the program wakes up as
little as possible. This is never perfect, but it's a small thing that
can help to save some power and reduce the number of wake-ups."

Any comment/suggestion is welcome.

Regards
-- 
Javier Jardón Cabezas


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]