Created attachment 2269 Use g_timeout_add_seconds on glib version >=2.14 The wawelan panel plugin is often used on laptops. Wavlan wakes up every 250 ms with no syncronations towards other processes causing the kernel to wake up uneeded an increasing powercomsomption. Now this plugin is used on laptops and as a user I do want to see the current lan performance, but not with the cost of worse battery life. So I added a patch that uses g_timeout_add_seconds(). From glib documentation on g_timeout_add (); If you want to have a timer in the "seconds" range and do not care about the exact time of the first call of the timer, use the g_timeout_add_seconds() function; this function allows for more optimizations and more efficient system power usage. Pros: better battery life Drawback: lower update interval Patch based on http://trac.transmissionbt.com/changeset/7463 More on powersaving and timers: http://mjg59.livejournal.com/74651.html?thread=452251
Additionally, on my machine, tooltip updates faster than 1 second either hide or "blink" the tip. This patch is a shorter form of "g_timeout_add_seconds on glib version >=2.14" and uses the new tooltip api existing since gtk+ 2.12. There is no check for gtk >= 2.12 though, I don't believe someone will compile the newer wavelan with a gtk version released almost 2 years ago.
Created attachment 2367 g_timeout_add_seconds on glib >=2.14 + tooltip api >= 2.12
Fixed by applying the patch from Morten. As for tooltips, I just fixed them in bug #5866. I still used the g_strdup_printf -> g_strdup change proposed in the patch by Dimitar Zhekov.