Top | ![]() |
![]() |
![]() |
![]() |
IdeBufferAddinIdeBufferAddin — addins for IdeBuffer |
void | ide_buffer_addin_load () |
void | ide_buffer_addin_unload () |
IdeBufferAddin * | ide_buffer_addin_find_by_module_name () |
The IdeBufferAddin allows a plugin to register an object that will be created with every IdeBuffer. It can register extra features with the buffer or extend it as necessary.
Once use of IdeBufferAddin is to add a spellchecker to the buffer that may be used by views to show the misspelled words. This is preferrable to adding a spellchecker in each view because it allows for multiple views to share one spellcheker on the underlying buffer.
void ide_buffer_addin_load (IdeBufferAddin *self
,IdeBuffer *buffer
);
This calls the load virtual function of IdeBufferAddin to request that the addin load itself.
Since: 3.26
void ide_buffer_addin_unload (IdeBufferAddin *self
,IdeBuffer *buffer
);
This calls the unload virtual function of IdeBufferAddin to request that the addin unload itself.
The addin should cancel any in-flight operations and attempt to drop references to the buffer or any other machinery as soon as possible.
Since: 3.26
IdeBufferAddin * ide_buffer_addin_find_by_module_name (IdeBuffer *buffer
,const gchar *module_name
);
Locates an addin attached to the IdeBuffer by the name of the module that provides the addin.
Since: 3.26