Note: this message is crossposted to gimp-developer because several
developers interested in libpdb are not subscribed to libpdb-developer.
Please do not send followups to gimp-developer.

I've been thinking about a better way to implement the
RUN_WITH_LAST_VALUES functionality in libpdb.  The current method is
annoying and kludgy.  Depending on the first value passed to a procedure,
the number and meaning of the parameters change, and the scheme is not
readily generalizable.  It is also not possible for other procedures to
manipulate the values used, which would be desirable for macro recorders
and plug-in adaptors that run on multiple images.

I suggest the following:
* we add a "subfunction" field to PdbProc, which is NULL for the main
function.  The interactive version would use "interactive" for the

* to call a plugin interactively, first call its "interactive"
subfunction.  The "interactive" subfunction will return a list of
arguments to be used in the call to the main function.

What do you think?


Gimp-developer mailing list

Reply via email to