[Gnucash-changes] r13770 - gnucash/trunk/src/gnome-utils - Test for support of the tree-model-sort interface instead of one particular

Chris Shoemaker chris at cvs.gnucash.org
Tue Apr 11 22:31:23 EDT 2006


Author: chris
Date: 2006-04-11 22:31:23 -0400 (Tue, 11 Apr 2006)
New Revision: 13770
Trac: http://svn.gnucash.org/trac/changeset/13770

Modified:
   gnucash/trunk/src/gnome-utils/gnc-tree-view.c
Log:
   Test for support of the tree-model-sort interface instead of one particular
   implementation.


Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-04-11 20:49:35 UTC (rev 13769)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-04-12 02:31:23 UTC (rev 13770)
@@ -1794,7 +1794,7 @@
 	       NULL);
 
   s_model = gtk_tree_view_get_model(GTK_TREE_VIEW(view));
-  if (GTK_IS_TREE_MODEL_SORT(s_model)) {
+  if (GTK_IS_TREE_SORTABLE(s_model)) {
     gtk_tree_view_column_set_sort_column_id (column, data_column);
     if (column_sort_fn) {
       gtk_tree_sortable_set_sort_func (GTK_TREE_SORTABLE(s_model),



More information about the gnucash-changes mailing list