From 4a58db0fcafec89eed4ad3aefbe5cb576266c0ec Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 2 Jan 2007 17:01:33 +0000 Subject: hide progressbar in profile window when not used. fixes #2852 --- src/profile_window.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/profile_window.py') 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() -- cgit v1.2.3