add_temp_procedure


Description:

public void add_temp_procedure (Procedure procedure)

This function adds a temporary procedure to this.

It is usually called from a gimp_pdb_proc_type_persistent procedure's [vfunc@Procedure.run].

A temporary procedure is a procedure which is only available while one of your plug-in's "real" procedures is running.

The procedure's type _must_ be gimp_pdb_proc_type_temporary or the function will fail.

NOTE: Normally, plug-in communication is triggered by the plug-in and the GIMP core only responds to the plug-in's requests. You must explicitly enable receiving of temporary procedure run requests using either [method@PlugIn.persistent_enable] or [ method@PlugIn.persistent_process]. See their respective documentation for details.

Parameters:

this

A PlugIn

procedure

A Procedure of type gimp_pdb_proc_type_temporary.