/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: Sabin Iacob (m0n5t3r)
  • Date: 2008-05-29 09:48:48 UTC
  • mto: This revision was merged to the branch mainline in revision 499.
  • Revision ID: iacobs@m0n5t3r.info-20080529094848-wvr1opflqclhjuur
gracefully handle old versions of dbus-python (it appears that DBusException.get_bus_name was introduced in 0.81.1)

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:
 
61
        if None not in (current, total):
62
62
            self.set_fraction(1.0 * current / total)
63
63
        while gtk.events_pending():
64
64
            gtk.main_iteration()