[vino/gnome-2-26] Use g_timeout_add_seconds to reduce wakeups (closes:GnomeBug #581204)



commit 470331f404688ec8fc40a45b54ed47cff0eac347
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Sun May 3 20:29:52 2009 +0200

    Use g_timeout_add_seconds to reduce wakeups (closes:GnomeBug #581204)
    
    * server/vino-server.c
    	(vino_server_defer_client_auth)
---
 server/vino-server.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/vino-server.c b/server/vino-server.c
index 13d6dc0..562597d 100644
--- a/server/vino-server.c
+++ b/server/vino-server.c
@@ -637,9 +637,9 @@ vino_server_defer_client_auth (VinoServer *server,
 
   vino_server_set_client_on_hold (server, client, TRUE);
 
-  client->auth_timeout = g_timeout_add (VINO_SERVER_AUTH_DEFER_LEN * 1000,
-					(GSourceFunc) vino_server_auth_client_deferred,
-					client);
+  client->auth_timeout = g_timeout_add_seconds (VINO_SERVER_AUTH_DEFER_LEN,
+                                                (GSourceFunc) vino_server_auth_client_deferred,
+                                                client);
 }
 
 static char *



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