Commit 63889482 authored by Garrett Regier's avatar Garrett Regier

Fix some documentation

parent 88379517
...@@ -529,8 +529,7 @@ peas_engine_class_init (PeasEngineClass *klass) ...@@ -529,8 +529,7 @@ peas_engine_class_init (PeasEngineClass *klass)
* *
* This will be modified when peas_engine_rescan_plugins() is called. * This will be modified when peas_engine_rescan_plugins() is called.
* *
* Note that the list belongs to the engine and should not be modified * Note: the list belongs to the engine and should not be modified or freed.
* or freed.
*/ */
properties[PROP_PLUGIN_LIST] = properties[PROP_PLUGIN_LIST] =
g_param_spec_pointer ("plugin-list", g_param_spec_pointer ("plugin-list",
...@@ -808,9 +807,9 @@ get_plugin_loader (PeasEngine *engine, ...@@ -808,9 +807,9 @@ get_plugin_loader (PeasEngine *engine,
* *
* Enable a loader, enables a loader for plugins. * Enable a loader, enables a loader for plugins.
* The C plugin loader is always enabled. The other plugin * The C plugin loader is always enabled. The other plugin
* loaders are: lua5.1 and python and python3. * loaders are: lua5.1, python and python3.
* *
* For instance, the following code will enable python plugins * For instance, the following code will enable Python 2 plugins
* to be loaded: * to be loaded:
* |[ * |[
* peas_engine_enable_loader (engine, "python"); * peas_engine_enable_loader (engine, "python");
......
...@@ -344,7 +344,7 @@ peas_object_module_new (const gchar *module_name, ...@@ -344,7 +344,7 @@ peas_object_module_new (const gchar *module_name,
* @resident: If the module should be resident. * @resident: If the module should be resident.
* @local_linkage: Whether to load the module with local linkage. * @local_linkage: Whether to load the module with local linkage.
* *
* Creates a new #PeasObjectModule with local linkage. * Creates a new #PeasObjectModule.
* *
* Return value: a new #PeasObjectModule. * Return value: a new #PeasObjectModule.
* *
......
...@@ -190,7 +190,7 @@ peas_plugin_loader_c_class_init (PeasPluginLoaderCClass *klass) ...@@ -190,7 +190,7 @@ peas_plugin_loader_c_class_init (PeasPluginLoaderCClass *klass)
loader_class->create_extension = peas_plugin_loader_c_create_extension; loader_class->create_extension = peas_plugin_loader_c_create_extension;
} }
/** /*
* peas_plugin_loader_c_new: * peas_plugin_loader_c_new:
* *
* Return a new instance of #PeasPluginLoaderC. * Return a new instance of #PeasPluginLoaderC.
......
...@@ -102,6 +102,7 @@ thread_leave (PeasPluginLoaderLua *lua_loader, ...@@ -102,6 +102,7 @@ thread_leave (PeasPluginLoaderLua *lua_loader,
PeasPluginLoaderLuaPrivate *priv = GET_PRIV (lua_loader); PeasPluginLoaderLuaPrivate *priv = GET_PRIV (lua_loader);
lua_State *L = info->loader_data; lua_State *L = info->loader_data;
/* Prevent keeping the L as a usable variable */
g_assert (*L_ptr == L); g_assert (*L_ptr == L);
*L_ptr = NULL; *L_ptr = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment