From 5348c3a37feae1cc2adf8300e91c332eae9208d6 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 15 Apr 2008 09:35:36 +0000 Subject: [PATCH] add ACE option to configure interval between 2 idlness checks. default to 2 seconds. fixes #3004 --- src/common/config.py | 1 + src/gajim.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/config.py b/src/common/config.py index a3c90176b..434754546 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -256,6 +256,7 @@ class Config: 'subscribe_activity': [opt_bool, True], 'subscribe_tune': [opt_bool, True], 'attach_notifications_to_systray': [opt_bool, False, _('If True, notification windows from notification-daemon will be attached to systray icon.')], + 'check_idle_every_foo_seconds': [opt_int, 2, _('Choose interval between 2 checks of idleness.')], } __options_per_key = { diff --git a/src/gajim.py b/src/gajim.py index 27718dddf..8683dc183 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -3047,7 +3047,8 @@ class Interface: gobject.timeout_add(200, self.process_connections) else: gobject.timeout_add_seconds(2, self.process_connections) - gobject.timeout_add_seconds(10, self.read_sleepy) + gobject.timeout_add_seconds(gajim.config.get( + 'check_idle_every_foo_seconds'), self.read_sleepy) if __name__ == '__main__': def sigint_cb(num, stack):