[libpeas] Annotate PeasPluginInfo return values as transfer none
- From: Steve FrÃcinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Annotate PeasPluginInfo return values as transfer none
- Date: Wed, 5 Oct 2011 20:13:14 +0000 (UTC)
commit b1fb2d5067f5cfec9c8c57ea537f8ec218998812
Author: Garrett Regier <garrettregier gmail com>
Date: Thu Sep 29 15:46:49 2011 -0700
Annotate PeasPluginInfo return values as transfer none
Otherwise GObject-Introspection says that it is transfer full.
https://bugzilla.gnome.org/show_bug.cgi?id=660524
libpeas-gtk/peas-gtk-plugin-manager-view.c | 2 +-
libpeas/peas-engine.c | 2 +-
libpeas/peas-extension-base.c | 3 ++-
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-plugin-manager-view.c b/libpeas-gtk/peas-gtk-plugin-manager-view.c
index 7eb7361..5f8f55f 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager-view.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager-view.c
@@ -952,7 +952,7 @@ peas_gtk_plugin_manager_view_set_selected_plugin (PeasGtkPluginManagerView *view
*
* Returns the currently selected plugin, or %NULL if a plugin is not selected.
*
- * Returns: the selected plugin.
+ * Returns: (transfer none): the selected plugin.
*/
PeasPluginInfo *
peas_gtk_plugin_manager_view_get_selected_plugin (PeasGtkPluginManagerView *view)
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 1adf4ff..7b57d56 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -733,7 +733,7 @@ compare_plugin_info_and_name (PeasPluginInfo *info,
* Gets the #PeasPluginInfo corresponding with @plugin_name,
* or %NULL if @plugin_name was not found.
*
- * Returns: the #PeasPluginInfo corresponding with
+ * Returns: (transfer none): the #PeasPluginInfo corresponding with
* a given plugin module name.
*/
PeasPluginInfo *
diff --git a/libpeas/peas-extension-base.c b/libpeas/peas-extension-base.c
index 329a25f..7c4cba0 100644
--- a/libpeas/peas-extension-base.c
+++ b/libpeas/peas-extension-base.c
@@ -141,7 +141,8 @@ peas_extension_base_class_init (PeasExtensionBaseClass *klass)
*
* Get information relative to @extbase.
*
- * Return value: the #PeasPluginInfo relative to the #PeasExtensionBase.
+ * Return value: (transfer none): the #PeasPluginInfo relative
+ * to the #PeasExtensionBase.
*/
PeasPluginInfo *
peas_extension_base_get_plugin_info (PeasExtensionBase *extbase)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]