From 74600f47a261319dbb69796f3e827f3136f6ff80 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 7 Jul 2011 13:08:03 -0400 Subject: [PATCH] make update rate configurable --- Window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Window.py b/Window.py index 0542d98..66a1fbb 100755 --- a/Window.py +++ b/Window.py @@ -14,6 +14,8 @@ class Window(object): self.conf['height'] = 32 if not 'mailbox' in self.conf: self.conf['mailbox'] = 'Inbox' + if not 'updaterate' in self.conf: + self.conf['updaterate'] = 5000 sticky = True if 'sticky' in self.conf: sticky = self.conf['sticky'] @@ -48,7 +50,7 @@ class Window(object): self.conf['server'], self.conf['port']) self.connection.login(self.conf['user'], self.conf['password']) self.update() - gobject.timeout_add(5000, self.update) + gobject.timeout_add(self.conf['updaterate'], self.update) except: self.connection = None