/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to ui.py

  • Committer: Jelmer Vernooij
  • Author(s): Jean-François Fortin Tam
  • Date: 2008-05-01 22:24:50 UTC
  • mto: This revision was merged to the branch mainline in revision 489.
  • Revision ID: jelmer@samba.org-20080501222450-mtk6pxiiepjt5b1s
Fix ghost window caused by progress bars.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 
87
87
    def remove(self, pb):
88
88
        self.vbox.remove(pb)
 
89
        if len(self.vbox.get_children()) == 0: # If there is nothing to show, don't leave a ghost window here
 
90
             self.destroy()
89
91
 
90
92
 
91
93
class PasswordDialog(gtk.Dialog):