Gimp.Procedure.prototype.add_argument

function add_argument(pspec: GObject.ParamSpec): GObject.ParamSpec {
    // Gjs wrapper for gimp_procedure_add_argument()
}
  

Add a new argument to procedure according to pspec specifications. The arguments will be ordered according to the call order to [method@Procedure.add_argument] and [method@Procedure.add_argument_from_property].

If pspec is floating, ownership will be taken over by procedure, allowing to pass directly `g*_param_spec_*()` calls as arguments.

Since 3.0

pspec

the argument specification.

Returns

the same pspec or null in case of error.