[anjuta] Use g_timeout_add_seconds to reduce wakeups (closes:GnomeBug #582710)



commit 4da8ef90073abb9cc8a897995987f1d99437759f
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Fri May 15 06:37:00 2009 +0200

    Use g_timeout_add_seconds to reduce wakeups (closes:GnomeBug #582710)
    
    * plugins/gtodo/interface.c
    	(gtodo_update_settings)
    
    	* plugins/gbf-am/test.c
    	(main)
---
 plugins/gbf-am/test.c     |    2 +-
 plugins/gtodo/interface.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/gbf-am/test.c b/plugins/gbf-am/test.c
index 78dcf4c..75b1661 100644
--- a/plugins/gbf-am/test.c
+++ b/plugins/gbf-am/test.c
@@ -209,7 +209,7 @@ main (int argc, char *argv[])
 		g_free (file);
 	}
 
-	g_timeout_add (3000, (GSourceFunc) gtk_main_quit, NULL);
+	g_timeout_add_seconds (3, (GSourceFunc) gtk_main_quit, NULL);
 	gtk_main ();
 	
   out:
diff --git a/plugins/gtodo/interface.c b/plugins/gtodo/interface.c
index a03fb1f..12f1258 100644
--- a/plugins/gtodo/interface.c
+++ b/plugins/gtodo/interface.c
@@ -104,7 +104,7 @@ void gtodo_update_settings()
 	}
 	
 	gtodo_client_set_changed_callback(cl,(void *)backend_changed ,NULL);
-	g_timeout_add(300000, (GSourceFunc)check_for_notification_event, NULL);
+	g_timeout_add_seconds (300, (GSourceFunc)check_for_notification_event, NULL);
 
 	check_for_notification_event();
 }



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