wolfgang hofer
Tue, 21 Nov 2000 22:09:28 -0800
Hi,
Is there a possibility for a PlugIn
to run other PlugIns asyncron?
2 of my Plugins (the GAP Video/Navigator and
the Animated Preview in GAP Video/Move Path)
are currently calling the PlugIn animationplay
return_vals =
gimp_run_procedure ("plug_in_animationplay",
&nreturn_vals,
GIMP_PDB_INT32, GIMP_RUN_NONINTERACTIVE,
GIMP_PDB_IMAGE, l_new_image_id,
GIMP_PDB_DRAWABLE, -1, /* dummy */
GIMP_PDB_END);
This blocks the GUI Dialog Windows,
until the animation play is closed
(by the user).
In that case It would make sense
to run the plug_in_animationplay
without waiting until finished.
If there is no way to do asyncron calls now
we should think about to add them,
for example with the names:
gimp_run_async_procedure
gimp_run_async_procedure2
with the same parameters like the already
existing syncron versions.
But SUCCESS is returned immediate
after the requested plugin could be started.
gimp_run_async_procedure* does not
wait until the requested plugin has finished.
Note:
I once tried to do a workaround
by forking a playback process
to call the plug_in_animationplay
but this does not work !
(when the animationplay terminates,
the calling Plugin dies,
maybe when trying to call
any gimp core function, while
gimp thinks the plugin has already
terminated)
Yours Wolfgang Hofer, <[EMAIL PROTECTED]>
(Author of GAP)
PS: I have already sent this message
on: 2000.Nov.17
to: [EMAIL PROTECTED]
but it did not appear in the gimp-developer
mailing list archive until now.
Maybe a 2nd try will make it to the list ?
Get FREE Email/Voicemail with 15MB at Lycos Communications at http://comm.lycos.com