Skip to content
  • Jehan's avatar
    libgimp, plug-ins: move gimp_pdb_run_procedure*() to gimp_procedure_run*(). · 57ca3f48
    Jehan authored
    The gimp_procedure_run() already existed, though it was with an ordered
    GimpValueArray array of arguments. Its usage feels redundant to the series of
    gimp_pdb_run_procedure*() functions (which is confusing), but
    gimp_procedure_run() was actually a bit more generic, because it does not
    necessarily calls GimpProcedure-s through the PDB! For instance, it can runs a
    local GimpProcedure, such as the case of one procedure which would want to call
    another procedure in the same plug-in, but without having to go through PDB. Of
    course, for local code, you may as well run relevant functions directly, yet it
    makes sense that if one of the redundant-looking function is removed, it should
    be the more specific one. Also gimp_procedure_run() feels a lot simpler and
    logical, API wise.
    A main difference in usage is that now, plug-in developers have to first
    explicitly look up the GimpPdbProcedure with gimp_pdb_lookup_procedure() when
    they wish to...