add ACE option to configure interval between 2 idlness checks. default to 2 seconds. fixes #3004

This commit is contained in:
Yann Leboulanger 2008-04-15 09:35:36 +00:00
parent e7f88e6dd6
commit 5348c3a37f
2 changed files with 3 additions and 1 deletions

View File

@ -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 = {

View File

@ -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):