set_sensitivity_mask


Description:

[ Version ( since = "3.0" ) ]
public void set_sensitivity_mask (int sensitivity_mask)

Sets the cases when this is supposed to be sensitive or not.

Note that it will be used by the core to determine whether to show a procedure as sensitive (hence forbid running it otherwise), yet it will not forbid thid-party plug-ins for instance to run manually your registered procedure. Therefore you should still handle non-supported cases appropriately by returning with gimp_pdb_execution_error and a suitable error message.

Similarly third-party plug-ins should verify they are allowed to call a procedure with [method@Procedure.get_sensitivity_mask] when running with dynamic contents.

Note that by default, a procedure works on an image with one or more drawables selected. Hence not setting the mask, setting it with 0 or setting it with `GIMP_PROCEDURE_SENSITIVE_DRAWABLE | GIMP_PROCEDURE_SENSITIVE_DRAWABLES` are equivalent.

Parameters:

this

A Procedure.

sensitivity_mask

A binary mask of [flags@Gimp.ProcedureSensitivityMask].