GNOME Bugzilla – Bug 402542
reduce the number of wakeups
Last modified: 2011-03-20 04:32:19 UTC
The applet wakes up a lot. This is particularly bad when multiple users are logged in. Every instance of the applet wakes up and consumes resources. For example, there are a log of g_timeout functions used. If you login two users and just run top in a terminal you'll see that the menu applet for both users wakes up and hits the cpu.
In the latest code, the only thing that could wake up repeatedly is hard-drive-status-tile.c. It connects to the tile's "hide" signal, and disables the timeout in the callback for "hide". However, the tile is never actually hidden --- it is the *toplevel* slab window that is hidden. This should be easy to fix. The tile can connect to "hide" on its toplevel window, or some out-of-band mechanism can be used to signal it directly from main-menu-ui.c.