diff --git a/ChangeLog b/ChangeLog index e7605a22b..8996470d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-08-31 Don Allingham + * src/ExportAssistant.py (ExportAssistant.pulse_progressbar): fix + display value, crashed if text wasn't specified + 2007-08-31 Benny Malengier * src/Editors/_EditPerson.py: bug, save(self, obj) to save(self, *obj) diff --git a/src/ExportAssistant.py b/src/ExportAssistant.py index f2b2d82f2..02040e1a1 100644 --- a/src/ExportAssistant.py +++ b/src/ExportAssistant.py @@ -578,9 +578,12 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) : while gtk.events_pending(): gtk.main_iteration() - def pulse_progressbar(self, value, text): + def pulse_progressbar(self, value, text=None): self.progressbar.set_fraction(min(value/100.0, 1.0)) - self.progressbar.set_text("%s: %d%%" % (text, value)) + if text: + self.progressbar.set_text("%s: %d%%" % (text, value)) + else: + self.progressbar.set_text("%d%%" % value) while gtk.events_pending(): gtk.main_iteration()