diff options
author | Steve Frécinaux <code@istique.net> | 2010-06-16 19:43:01 +0200 |
---|---|---|
committer | Steve Frécinaux <code@istique.net> | 2010-06-16 19:46:05 +0200 |
commit | 52f279cd1fe492c159b244f2b84f5f85254536a5 (patch) | |
tree | b6d9645808f6f9f596e68250ce99ecf66a997e9d /libpeas/peas-engine.h | |
parent | 292c139b80b393c553ebab28387f6f63bd628d13 (diff) | |
download | libpeas-52f279cd1fe492c159b244f2b84f5f85254536a5.tar.gz |
Rename 'activate_plugin'-type API to 'load_plugin'.
The reason is that the verb 'activate' let people think there will be
some kind of PeasActivatable-like activation, but the engine only
handles the actual loading. The application is responsible for the
handling of the extensions, eventually through PeasExtensionSet
instances.
https://bugzilla.gnome.org/show_bug.cgi?id=621646
Diffstat (limited to 'libpeas/peas-engine.h')
-rw-r--r-- | libpeas/peas-engine.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libpeas/peas-engine.h b/libpeas/peas-engine.h index 9bb8dfe..440fb09 100644 --- a/libpeas/peas-engine.h +++ b/libpeas/peas-engine.h @@ -55,10 +55,10 @@ struct _PeasEngine { struct _PeasEngineClass { GObjectClass parent_class; - void (*activate_plugin) (PeasEngine *engine, + void (*load_plugin) (PeasEngine *engine, PeasPluginInfo *info); - void (*deactivate_plugin) (PeasEngine *engine, + void (*unload_plugin) (PeasEngine *engine, PeasPluginInfo *info); }; @@ -72,16 +72,16 @@ void peas_engine_disable_loader (PeasEngine *engine, const gchar *loader_id); void peas_engine_rescan_plugins (PeasEngine *engine); const GList *peas_engine_get_plugin_list (PeasEngine *engine); -gchar **peas_engine_get_active_plugins (PeasEngine *engine); -void peas_engine_set_active_plugins (PeasEngine *engine, +gchar **peas_engine_get_loaded_plugins (PeasEngine *engine); +void peas_engine_set_loaded_plugins (PeasEngine *engine, const gchar **plugin_names); PeasPluginInfo *peas_engine_get_plugin_info (PeasEngine *engine, const gchar *plugin_name); -/* plugin load and unloading (overall, for all windows) */ -gboolean peas_engine_activate_plugin (PeasEngine *engine, +/* plugin loading and unloading */ +gboolean peas_engine_load_plugin (PeasEngine *engine, PeasPluginInfo *info); -gboolean peas_engine_deactivate_plugin (PeasEngine *engine, +gboolean peas_engine_unload_plugin (PeasEngine *engine, PeasPluginInfo *info); void peas_engine_garbage_collect (PeasEngine *engine); |