Gimp.PlugIn.persistent_enable (original) (raw)
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 usinggimp_plug_in_add_temp_procedure(), it needs to be able to receive requests to execute them. Usually this will be done by runninggimp_plug_in_persistent_process() in an endless loop.
If the plug-in cannot use gimp_plug_in_persistent_process(), i.e. if it has a GUI and is hanging around in a GMainLoop, it must call gimp_plug_in_persistent_enable().
Note that the plug-in does not need to be aGimpPDBProcType to register temporary procedures.
See also: gimp_plug_in_add_temp_procedure().