[gnome-desktop] idle-monitor: Set a decent test timeout
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] idle-monitor: Set a decent test timeout
- Date: Tue, 13 Nov 2012 10:04:48 +0000 (UTC)
commit 316173fb41581b58886c189329aa2fafcab96ce2
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 13 09:23:32 2012 +0100
idle-monitor: Set a decent test timeout
libgnome-desktop/test-idle-monitor.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/test-idle-monitor.c b/libgnome-desktop/test-idle-monitor.c
index aa68e56..d758d7e 100644
--- a/libgnome-desktop/test-idle-monitor.c
+++ b/libgnome-desktop/test-idle-monitor.c
@@ -3,6 +3,8 @@
#define GNOME_DESKTOP_USE_UNSTABLE_API
#include "libgnome-desktop/gnome-idle-monitor.h"
+#define IDLE_TIME 60 * 1000 /* 1 minute */
+
GHashTable *monitors = NULL; /* key = device id, value = GnomeIdleMonitor */
static void
@@ -34,7 +36,7 @@ device_added_cb (GdkDeviceManager *manager,
device_id = gdk_x11_device_get_id (device);
monitor = gnome_idle_monitor_new_for_device (device);
watch_id = gnome_idle_monitor_add_watch (monitor,
- 10,
+ IDLE_TIME,
watch_func,
NULL,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]