Rev 489: merge fix for ghost progress window. in file:///data/jelmer/bzr-gtk/trunk/

Jelmer Vernooij jelmer at samba.org
Sat May 10 00:51:46 BST 2008


At file:///data/jelmer/bzr-gtk/trunk/

------------------------------------------------------------
revno: 489
revision-id: jelmer at samba.org-20080509235146-ahwky8unhs3llqf2
parent: jelmer at samba.org-20080509235114-q12iww44yxe1y137
parent: jelmer at samba.org-20080501222450-mtk6pxiiepjt5b1s
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-05-10 01:51:46 +0200
message:
  merge fix for ghost progress window.
modified:
  ui.py                          ui.py-20060716163355-owuqwa9uhnlfsojs-1
    ------------------------------------------------------------
    revno: 482.1.1
    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