diff options
author | Javier Jardón <javierjc1982@gmail.com> | 2009-05-20 05:31:37 +0200 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2009-07-15 15:35:22 -0400 |
commit | 8e2122deec56472132422250653b40981f64ff75 (patch) | |
tree | 155eb7572736a06c849487ed1df7d4e328bae992 /daemon | |
parent | 57659df20dc97e055b41c4d8e30836515aa9bde9 (diff) | |
download | gdm-8e2122deec56472132422250653b40981f64ff75.tar.gz |
Use g_timeout_add_seconds to reduce wakeups (closes:GnomeBug #583295)
* daemon/main.c
(bus_proxy_destroyed_cb),
(main)
* gui/simple-chooser/gdm-host-chooser-widget.c,
(xdmcp_discover)
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/main.c b/daemon/main.c index 9d7ab5ef..0fb39150 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -215,7 +215,7 @@ bus_proxy_destroyed_cb (DBusGProxy *bus_proxy, g_object_unref (*managerp); *managerp = NULL; - g_timeout_add (3000, (GSourceFunc)bus_reconnect, managerp); + g_timeout_add_seconds (3, (GSourceFunc)bus_reconnect, managerp); } static void @@ -631,7 +631,7 @@ main (int argc, gdm_signal_handler_add (signal_handler, SIGUSR1, signal_cb, NULL); if (do_timed_exit) { - g_timeout_add (1000 * 30, (GSourceFunc) timed_exit_cb, main_loop); + g_timeout_add_seconds (30, (GSourceFunc) timed_exit_cb, main_loop); } gdm_manager_start (manager); |