special case percentage < 0 and pulse progress.

2005-05-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py (progress_update): special case
	percentage < 0 and pulse progress.
This commit is contained in:
Sven Neumann 2005-05-03 21:29:28 +00:00 committed by Sven Neumann
parent 02b4ab2d3e
commit d19d603adb
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-05-03 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py (progress_update): special case
percentage < 0 and pulse progress.
2005-04-30 Sven Neumann <sven@gimp.org>
* plug-ins/bmp/bmpread.c: applied a patch from David Costanzo that

View file

@ -568,7 +568,10 @@ def _interact(func_name, start_params):
progress.set_text(" ")
if fraction is not None:
progress.set_fraction(fraction)
if fraction < 0:
progress.pulse()
else:
progress.set_fraction(fraction)
while gtk.events_pending():
gtk.main_iteration()