From a63a2e86d67bb4c32a4e720674d448dca87dc94b Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Thu, 20 May 2004 02:33:59 +0000 Subject: [PATCH] Actually return values from the run function. Fixes #141338. 2004-05-19 Manish Singh * plug-ins/pygimp/gimpfu.py: Actually return values from the run function. Fixes #141338. --- ChangeLog | 5 +++++ plug-ins/pygimp/gimpfu.py | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7424afe931..2a518ce06d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-19 Manish Singh + + * plug-ins/pygimp/gimpfu.py: Actually return values from the run + function. Fixes #141338. + 2004-05-20 Sven Neumann * plug-ins/maze/maze_face.c diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py index 970e1aed15..e7e1710353 100644 --- a/plug-ins/pygimp/gimpfu.py +++ b/plug-ins/pygimp/gimpfu.py @@ -468,7 +468,11 @@ def _run(func_name, params): params = start_params + tuple(extra_params) res = apply(func, params) - if run_mode != RUN_NONINTERACTIVE: gimp.displays_flush() + + if run_mode != RUN_NONINTERACTIVE: + gimp.displays_flush() + + return res def main(): '''This should be called after registering the plugin.'''