File gnome-applets-309796-mixer-applet-reduce-wakeups.patch of Package gnome-applets

2007-08-27  Federico Mena Quintero  <federico@novell.com>

	Quick fix for https://bugzilla.novell.com/show_bug.cgi?id=309796

	* applet.c (gnome_volume_applet_setup): Use
	g_timeout_add_seconds(); update the volume applet once a second
	instead of 10 times per second.  This is not a real fix for
	http://bugzilla.gnome.org/show_bug.cgi?id=370937 --- which is
	about using GStreamer notifications instead of polling, but it
	will have to do in the meantime.

	Feel free to remove this patch once upstream integrates the 
	full patch to support GStreamer notifications instead of polling.

diff --git a/mixer/applet.c b/mixer/applet.c
index 0c78b34..801fa83 100644
--- a/mixer/applet.c
+++ b/mixer/applet.c
@@ -437,7 +437,7 @@ gnome_volume_applet_setup (GnomeVolumeApplet *applet,
 
   gnome_volume_applet_refresh (applet, TRUE);
   if (res) {
-    applet->timeout = g_timeout_add (100, cb_check, applet);
+    applet->timeout = g_timeout_add_seconds (1, cb_check, applet);
   }
 
   if (res) {
openSUSE Build Service is sponsored by