r14212 - gnucash/trunk/src/gnome-utils - Use GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of '0' as the

Chris Shoemaker chris at cvs.gnucash.org
Sat May 27 15:05:43 EDT 2006


Author: chris
Date: 2006-05-27 15:05:41 -0400 (Sat, 27 May 2006)
New Revision: 14212
Trac: http://svn.gnucash.org/trac/changeset/14212

Modified:
   gnucash/trunk/src/gnome-utils/gnc-tree-view.c
Log:
   Use GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of '0' as the 
   fallback sort column, since column 0 may not be sortable with the 
   default sort function.

   Set the MODEL_COLUMN column property, even when it is -1, since 
   gnc_tree_view_set_sort_column() looks for this condition.

   Make the gnc_tree_view_count_visible_columns() function only count regular
   columns, so that the special columns don't count, but count any 
   DEFAULT_VISIBLE columns, even if they've been hidden by gconf.  That way, 
   the special columns will still show and allow the user to unhide columns.




More information about the gnucash-patches mailing list