Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-02-14 22:18:07 +0300
committerYann Leboulanger <asterix@lagaule.org>2008-02-14 22:18:07 +0300
commit7c496001356b7f650be327e5ea6a456ef11aba5a (patch)
treee584093fa7c9a70d180d340e6a1698c5803117ad /src/profile_window.py
parent894e752292c17df6dfc2641a7f03afd885fd1b28 (diff)
use timeout_add_seconds instead of timeout_add (when it's available), more efficient. fixes #3734, #3736
Diffstat (limited to 'src/profile_window.py')
-rw-r--r--src/profile_window.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profile_window.py b/src/profile_window.py
index 8fa581d49..61ffcc19d 100644
--- a/src/profile_window.py
+++ b/src/profile_window.py
@@ -248,7 +248,7 @@ class ProfileWindow:
self.statusbar.remove(self.context_id, self.message_id)
self.message_id = self.statusbar.push(self.context_id,
_('Information received'))
- self.remove_statusbar_timeout_id = gobject.timeout_add(3000,
+ self.remove_statusbar_timeout_id = gobject.timeout_add_seconds(3,
self.remove_statusbar, self.message_id)
gobject.source_remove(self.update_progressbar_timeout_id)
self.progressbar.hide()
@@ -344,7 +344,7 @@ class ProfileWindow:
self.statusbar.remove(self.context_id, self.message_id)
self.message_id = self.statusbar.push(self.context_id,
_('Information NOT published'))
- self.remove_statusbar_timeout_id = gobject.timeout_add(3000,
+ self.remove_statusbar_timeout_id = gobject.timeout_add_seconds(3,
self.remove_statusbar, self.message_id)
if self.update_progressbar_timeout_id is not None:
gobject.source_remove(self.update_progressbar_timeout_id)