/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
  • Date: 2007-07-17 02:55:14 UTC
  • Revision ID: jelmer@samba.org-20070717025514-w0phtodu6o8x5ifh
Start working on 0.19.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    def update(self, msg=None, current=None, total=None):
59
59
        if msg is not None:
60
60
            self.set_text(msg)
61
 
        if None not in (current, total) and total > 0:
62
 
            self.set_fraction(1.0 * current / total)
 
61
        self.set_fraction(1.0 * current / total)
63
62
        while gtk.events_pending():
64
63
            gtk.main_iteration()
65
64
 
86
85
 
87
86
    def remove(self, pb):
88
87
        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()
91
88
 
92
89
 
93
90
class PasswordDialog(gtk.Dialog):