[Gnucash-changes] r13858 - gnucash/trunk/src/gnome-utils - Publicize the ALWAYS_VISIBLE column attribute for GncTreeView.

Chris Shoemaker chris at cvs.gnucash.org
Tue Apr 25 23:30:42 EDT 2006


Author: chris
Date: 2006-04-25 23:30:42 -0400 (Tue, 25 Apr 2006)
New Revision: 13858
Trac: http://svn.gnucash.org/trac/changeset/13858

Modified:
   gnucash/trunk/src/gnome-utils/gnc-tree-view.c
   gnucash/trunk/src/gnome-utils/gnc-tree-view.h
Log:
   Publicize the ALWAYS_VISIBLE column attribute for GncTreeView.


Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-04-26 02:21:50 UTC (rev 13857)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-04-26 03:30:42 UTC (rev 13858)
@@ -51,9 +51,6 @@
  * visible column has no association with the underlying model.*/
 #define MODEL_COLUMN "model_column"
 
-/* A column with this attribute cannot be hidden from view. */
-#define ALWAYS_VISIBLE  "always-visible"
-
 /* For checkbox columns, this contains the real title for the column. */
 #define REAL_TITLE  "real_title"
 
@@ -775,13 +772,13 @@
 
 /** Determine the visibility of a column.  This function first looks
  *  for columns specially marked to be always visible, or columns
- *  without a preference name.  These are always show.  Next this
+ *  without a preference name.  These are always shown.  Next, this
  *  function checks to see if gconf is responsible for this view *and*
  *  that gconf visibility keys have been seen.  (This handles the
  *  'first run' case where gconf should manage a view but no keys yet
  *  exist in gconf.)  If so, the gconf visibility key is returned.
  *  Otherwise the "'default visible column' list is checked and a
- *  value of TRUE returned if the pref name is found.
+ *  value of TRUE returned if the pref name is found, otherwise FALSE.
  *
  *  @param view A GncTreeView.
  *
@@ -845,7 +842,7 @@
 
 /** This function updates the visibility of a single column.  It
  *  checks if the column should be visible, and if so tells the view
- *  to show the column and (f needed) updates the gconf database.
+ *  to show the column and (if needed) updates the gconf database.
  *
  *  @param column The column whose visibility should be updated.
  *

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view.h	2006-04-26 02:21:50 UTC (rev 13857)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view.h	2006-04-26 03:30:42 UTC (rev 13858)
@@ -60,8 +60,15 @@
 GType gnc_tree_view_get_type (void);
 
 
+/* The columns managed by gnc-tree-view can use the following column
+   attributes.  Set them with:
 
+   g_object_set_data(col, ATTRIBUTE_NAME, value);
+*/
 
+/* A column with this attribute set cannot be hidden from view. Valid
+   values: GINT_TO_POINTER(0) and GINT_TO_POINTER(1) */
+#define ALWAYS_VISIBLE  "always-visible"
 
 #define GNC_TREE_VIEW_COLUMN_DATA_NONE -1
 #define GNC_TREE_VIEW_COLUMN_COLOR_NONE -1



More information about the gnucash-changes mailing list