Gimp.PlugIn.prototype.extension_enable

function extension_enable(): void {
    // Gjs wrapper for gimp_plug_in_extension_enable()
}
  

Enables asynchronous processing of messages from the main GIMP application.

Normally, a plug-in is not called by GIMP except for the call to the procedure it implements. All subsequent communication is triggered by the plug-in and all messages sent from GIMP to the plug-in are just answers to requests the plug-in made.

If the plug-in however registered temporary procedures using [method@PlugIn.add_temp_procedure], it needs to be able to receive requests to execute them. Usually this will be done by running [method@PlugIn.extension_process] in an endless loop.

If the plug-in cannot use [method@PlugIn.extension_process], i.e. if it has a GUI and is hanging around in a [struct@GLib.MainLoop], it must call [method@PlugIn.extension_enable].

Note that the plug-in does not need to be a [const@PDBProcType.EXTENSION] to register temporary procedures.

See also: [method@PlugIn.add_temp_procedure].

Since 3.0