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>2007-01-02 20:01:33 +0300
committerYann Leboulanger <asterix@lagaule.org>2007-01-02 20:01:33 +0300
commit4a58db0fcafec89eed4ad3aefbe5cb576266c0ec (patch)
tree7d709a90e9ba972943eb43f7a066cf19521825a1 /src/profile_window.py
parent77f8e66ff4eb83a65eba3f09d66441a7c1bd0cba (diff)
hide progressbar in profile window when not used. fixes #2852
Diffstat (limited to 'src/profile_window.py')
-rw-r--r--src/profile_window.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/profile_window.py b/src/profile_window.py
index 6ee396b19..12c1a18e0 100644
--- a/src/profile_window.py
+++ b/src/profile_window.py
@@ -239,9 +239,8 @@ class ProfileWindow:
self.remove_statusbar_timeout_id = gobject.timeout_add(3000,
self.remove_statusbar, self.message_id)
gobject.source_remove(self.update_progressbar_timeout_id)
- # redraw progressbar after avatar is set so that windows is already
- # resized. Else progressbar is not correctly redrawn
- gobject.idle_add(self.progressbar.set_fraction, 0)
+ self.progressbar.hide()
+ self.progressbar.set_fraction(0)
self.update_progressbar_timeout_id = None
def add_to_vcard(self, vcard, entry, txt):
@@ -318,13 +317,13 @@ class ProfileWindow:
gajim.connections[self.account].send_vcard(vcard)
self.message_id = self.statusbar.push(self.context_id,
_('Sending profile...'))
+ self.progressbar.show()
self.update_progressbar_timeout_id = gobject.timeout_add(100,
self.update_progressbar)
def vcard_published(self):
if self.update_progressbar_timeout_id is not None:
gobject.source_remove(self.update_progressbar_timeout_id)
- self.progressbar.set_fraction(0)
self.update_progressbar_timeout_id = None
self.window.destroy()