[gnome-settings-daemon] smartcard: Use g_timeout_add_seconds()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] smartcard: Use g_timeout_add_seconds()
- Date: Wed, 13 Oct 2010 18:08:23 +0000 (UTC)
commit 5e85aa9cdf6624effea5a890a2516f11d25a8bf3
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 13 19:07:36 2010 +0100
smartcard: Use g_timeout_add_seconds()
Instead of g_timeout_add() as 2 seconds is coarse enough for us.
https://bugzilla.gnome.org/show_bug.cgi?id=582703
plugins/smartcard/gsd-smartcard-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/smartcard/gsd-smartcard-manager.c b/plugins/smartcard/gsd-smartcard-manager.c
index a231e20..a39d5dc 100644
--- a/plugins/smartcard/gsd-smartcard-manager.c
+++ b/plugins/smartcard/gsd-smartcard-manager.c
@@ -1321,7 +1321,7 @@ on_device_removed (GsdSmartcardManager *manager,
} else {
g_print ("disabling manager for 2 seconds\n");
gsd_smartcard_manager_stop (manager);
- g_timeout_add (2000, (GSourceFunc) on_timeout, manager);
+ g_timeout_add_seconds (2, (GSourceFunc) on_timeout, manager);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]