[network-manager-applet] applet: use g_timeout_add_seconds where appropriate (bgo #580693)
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: use g_timeout_add_seconds where appropriate (bgo #580693)
- Date: Fri, 16 Oct 2009 04:16:50 +0000 (UTC)
commit a0210fe4e0ff34d18e275b31dc2084c904e6d162
Author: Javier Jardón <jjardon gnome org>
Date: Thu Oct 15 21:14:51 2009 -0700
applet: use g_timeout_add_seconds where appropriate (bgo #580693)
src/applet-dbus-manager.c | 2 +-
src/applet-device-wifi.c | 2 +-
src/applet.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/applet-dbus-manager.c b/src/applet-dbus-manager.c
index b780b4d..e8ff2ff 100644
--- a/src/applet-dbus-manager.c
+++ b/src/applet-dbus-manager.c
@@ -309,7 +309,7 @@ start_reconnection_timeout (AppletDBusManager *self)
/* Schedule timeout for reconnection attempts */
if (!priv->recon_id)
- priv->recon_id = g_timeout_add (3000, reconnect_cb, self);
+ priv->recon_id = g_timeout_add_seconds (3, reconnect_cb, self);
}
char *
diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c
index 2b96018..0326ee7 100644
--- a/src/applet-device-wifi.c
+++ b/src/applet-device-wifi.c
@@ -1080,7 +1080,7 @@ queue_avail_access_point_notification (NMDevice *device)
NULL))
return;
- data->id = g_timeout_add (3000, idle_check_avail_access_point_notification, data);
+ data->id = g_timeout_add_seconds (3, idle_check_avail_access_point_notification, data);
}
static void
diff --git a/src/applet.c b/src/applet.c
index 60ca0a2..1681ee9 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2909,7 +2909,7 @@ constructor (GType type,
foo_client_setup (applet);
/* timeout to update connection timestamps every 5 minutes */
- applet->update_timestamps_id = g_timeout_add (300000,
+ applet->update_timestamps_id = g_timeout_add_seconds (300,
(GSourceFunc) periodic_update_active_connection_timestamps, applet);
nm_gconf_set_pre_keyring_callback (applet_pre_keyring_callback, applet);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]