From d19d603adb3cc5be595896ff452a8beeb5e13796 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 3 May 2005 21:29:28 +0000 Subject: [PATCH] special case percentage < 0 and pulse progress. 2005-05-03 Sven Neumann * plug-ins/pygimp/gimpfu.py (progress_update): special case percentage < 0 and pulse progress. --- ChangeLog | 5 +++++ plug-ins/pygimp/gimpfu.py | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fbf7509a56..ade9b5d1c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-03 Sven Neumann + + * plug-ins/pygimp/gimpfu.py (progress_update): special case + percentage < 0 and pulse progress. + 2005-04-30 Sven Neumann * plug-ins/bmp/bmpread.c: applied a patch from David Costanzo that diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py index ebb52a049f..0427888d6c 100644 --- a/plug-ins/pygimp/gimpfu.py +++ b/plug-ins/pygimp/gimpfu.py @@ -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()