[libpeas] [PluginManager] Small cleanup in callback prototypes



commit 3264e72ced3c423b9d274597248c4d96a5b51445
Author: Garrett Regier <alias301 gmail com>
Date:   Thu Jun 3 09:40:43 2010 -0700

    [PluginManager] Small cleanup in callback prototypes

 libpeasui/peas-ui-plugin-manager.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/libpeasui/peas-ui-plugin-manager.c b/libpeasui/peas-ui-plugin-manager.c
index d2a6361..2b36b9b 100644
--- a/libpeasui/peas-ui-plugin-manager.c
+++ b/libpeasui/peas-ui-plugin-manager.c
@@ -308,10 +308,9 @@ active_toggled_cb (GtkCellRendererToggle *cell,
 }
 
 static void
-cursor_changed_cb (GtkTreeView *view,
-                   gpointer     data)
+cursor_changed_cb (GtkTreeView         *view,
+                   PeasUIPluginManager *pm)
 {
-  PeasUIPluginManager *pm = data;
   PeasPluginInfo *info;
 
   info = plugin_manager_get_selected_plugin (pm);
@@ -323,12 +322,11 @@ cursor_changed_cb (GtkTreeView *view,
 }
 
 static void
-row_activated_cb (GtkTreeView       *tree_view,
-                  GtkTreePath       *path,
-                  GtkTreeViewColumn *column,
-                  gpointer           data)
+row_activated_cb (GtkTreeView         *tree_view,
+                  GtkTreePath         *path,
+                  GtkTreeViewColumn   *column,
+                  PeasUIPluginManager *pm)
 {
-  PeasUIPluginManager *pm = data;
   GtkTreeIter iter;
   GtkTreeModel *model;
 
@@ -459,7 +457,7 @@ plugin_manager_get_selected_plugin (PeasUIPluginManager *pm)
 
 static void
 plugin_manager_set_active_all (PeasUIPluginManager *pm,
-                               gboolean           active)
+                               gboolean             active)
 {
   GtkTreeModel *model;
   GtkTreeIter iter;



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