[Gnucash-changes] r12237 - gnucash/trunk/src/gnome-utils - Correct function name. Add a comment.

David Hampton hampton at cvs.gnucash.org
Mon Jan 2 20:05:46 EST 2006


Author: hampton
Date: 2006-01-02 20:05:46 -0500 (Mon, 02 Jan 2006)
New Revision: 12237
Trac: http://svn.gnucash.org/trac/changeset/12237

Modified:
   gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.c
   gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.h
Log:
Correct function name.  Add a comment.


Modified: gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.c	2006-01-02 22:32:18 UTC (rev 12236)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.c	2006-01-03 01:05:46 UTC (rev 12237)
@@ -248,7 +248,7 @@
 }
 
 gint
-gnc_tree_model_selection_get_selection_row (GncTreeModelSelection *model)
+gnc_tree_model_selection_get_selection_column (GncTreeModelSelection *model)
 {
 	GncTreeModelSelectionPrivate *priv;
 

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.h	2006-01-02 22:32:18 UTC (rev 12236)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-model-selection.h	2006-01-03 01:05:46 UTC (rev 12237)
@@ -23,6 +23,17 @@
  * Boston, MA  02110-1301,  USA       gnu at gnu.org
  */
 
+/*
+ * This file creates a GtkTreeModel that extends an existing
+ * GtkTreeModel by a single column.  This new column holds a single
+ * boolean value per row.
+ *
+ * GtkTreeViews allow the creation of columns in any order, not just
+ * the order they appear in the underlying model.  The most likely use
+ * of this code will have the first view column mapped to this extra
+ * boolean model column, and the column value diaplayed by a checkbox.
+ */
+
 #ifndef __GNC_TREE_MODEL_SELECTION_H
 #define __GNC_TREE_MODEL_SELECTION_H
 
@@ -62,7 +73,7 @@
                                                                         GtkTreeIter *child_iter,
  									GtkTreeIter *selection_iter);
 
-gint               gnc_tree_model_selection_get_selection_row          (GncTreeModelSelection *model);
+gint               gnc_tree_model_selection_get_selection_column       (GncTreeModelSelection *model);
 GtkTreeViewColumn *gnc_tree_model_selection_create_tree_view_column    (GncTreeModelSelection *model,
 									const gchar *title);
 



More information about the gnucash-changes mailing list