[libpeas] Add a note in the plugin manager store about the plugin info and unreffing



commit 9e02ddbe844a0450a6faeb833709bc747075c79d
Author: Garrett Regier <alias301 gmail com>
Date:   Wed Dec 15 08:24:32 2010 -0800

    Add a note in the plugin manager store about the plugin info and unreffing

 libpeas-gtk/peas-gtk-plugin-manager-store.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-plugin-manager-store.c b/libpeas-gtk/peas-gtk-plugin-manager-store.c
index eea6ce7..07a312f 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager-store.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager-store.c
@@ -37,6 +37,7 @@ static const GType ColumnTypes[] = {
   G_TYPE_BOOLEAN, /* Icon Visible */
   G_TYPE_STRING,  /* Info */
   G_TYPE_BOOLEAN, /* Info Visible */
+  /* To avoid having to unref it all the time */
   G_TYPE_POINTER  /* PeasPluginInfo */
 };
 
@@ -403,6 +404,9 @@ peas_gtk_plugin_manager_store_get_plugin (PeasGtkPluginManagerStore *store,
                       PEAS_GTK_PLUGIN_MANAGER_STORE_PLUGIN_COLUMN, &info,
                       -1);
 
+  /* We register it as a pointer instead
+   * of a boxed so no need to unref it
+   */
   return info;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]