GNOME Bugzilla – Bug 621646
peas_engine_set_active_plugins a misnomer
Last modified: 2010-06-16 18:14:10 UTC
As it doesn't actually activate any plugins. I'm guessing this apply to all the PeasEngine methods, which just *load* the plugin, and not activate it. The documentation needs to also be amended to mention PeasExtensionSet, and how to actually activate those plugins.
I think we will need to change the name for this method and the related ones like (de)activate plugin. Instead of the "(de)activate" verbs, which one would you think is better? "enable/disable" or "(un)load"?
load/unload seems better to me, as it's more closely related to what it's doing (loading the file into memory, loading the symbols).
Created attachment 163858 [details] [review] 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.
Looks a bit ugly in the API though.
Attachment 163858 [details] pushed as 52f279c - Rename 'activate_plugin'-type API to 'load_plugin'.