Top | ![]() |
![]() |
![]() |
![]() |
IdeContextAddin * ide_context_addin_find_by_module_name (IdeContext *context
,const gchar *module_name
);
Finds the addin (if any) matching the plugin's module_name
.
Since: 3.40
void ide_context_addin_load_project_async (IdeContextAddin *self
,IdeContext *context
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Requests to load a project with the IdeContextAddin.
This function is called when the IdeContext requests loading a project.
self |
||
context |
an IdeContext |
|
cancellable |
a GCancellable or |
[nullable] |
callback |
a callback to execute upon completion |
|
user_data |
closure data for |
Since: 3.32
gboolean ide_context_addin_load_project_finish (IdeContextAddin *self
,GAsyncResult *result
,GError **error
);
Completes a request to load a project with the IdeContextAddin.
This function will be called from the callback provided to
ide_context_addin_load_project_async()
.
Since: 3.32
void ide_context_addin_load (IdeContextAddin *self
,IdeContext *context
);
Requests that the IdeContextAddin loads any necessary runtime features.
This is called when the IdeContext is created. If you would rather wait until a project is loaded, then use “project-loaded” to load runtime features.
Since: 3.32
void ide_context_addin_unload (IdeContextAddin *self
,IdeContext *context
);
Requests that the IdeContextAddin unloads any previously loaded resources.
Since: 3.32
void ide_context_addin_project_loaded (IdeContextAddin *self
,IdeContext *context
);
Emits the “project-loaded” signal.
This is called when the context has completed loading a project.
Since: 3.32
struct IdeContextAddinInterface { GTypeInterface parent_iface; void (*load) (IdeContextAddin *self, IdeContext *context); void (*unload) (IdeContextAddin *self, IdeContext *context); void (*load_project_async) (IdeContextAddin *self, IdeContext *context, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gboolean (*load_project_finish) (IdeContextAddin *self, GAsyncResult *result, GError **error); void (*project_loaded) (IdeContextAddin *self, IdeContext *context); };
“project-loaded”
signalvoid user_function (IdeContextAddin *self, IdeContext *context, gpointer user_data)
The "project-loaded" signal is emitted after a project has been loaded in the IdeContext.
You might use this to setup any runtime features that rely on the project
being successfully loaded first. Every addin's
ide_context_addin_load_project_async()
will have been called and completed
before this signal is emitted.
self |
||
context |
an IdeContext |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.32