Rev 483: Fix ghost window caused by progress bars. in file:///data/jelmer/bzr-gtk/fix-ghost-window/

Jelmer Vernooij jelmer at samba.org
Thu May 1 23:25:20 BST 2008


At file:///data/jelmer/bzr-gtk/fix-ghost-window/

------------------------------------------------------------
revno: 483
revision-id: jelmer at samba.org-20080501222450-mtk6pxiiepjt5b1s
parent: jelmer at samba.org-20080501220713-e23350wearov8smj
author: Jean-François Fortin Tam <jeff at ecchi.ca>
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: fix-ghost-window
timestamp: Fri 2008-05-02 00:24:50 +0200
message:
  Fix ghost window caused by progress bars.
modified:
  ui.py                          ui.py-20060716163355-owuqwa9uhnlfsojs-1
=== modified file 'ui.py'
--- a/ui.py	2008-03-20 16:06:23 +0000
+++ b/ui.py	2008-05-01 22:24:50 +0000
@@ -86,6 +86,8 @@
 
     def remove(self, pb):
         self.vbox.remove(pb)
+        if len(self.vbox.get_children()) == 0: # If there is nothing to show, don't leave a ghost window here
+             self.destroy()
 
 
 class PasswordDialog(gtk.Dialog):




More information about the bazaar-commits mailing list