What seems to be happening is that the function create_users_model() in users-table.c is creating a GTKTreeModel of type GTK_TREE_MODEL_FILTER instead of eg. plain type GTK_TREE_MODEL. When the code in create_users_table() calls gtk_tree_sortable_set_sort_column_id() this fails because the GTK_TREE_MODEL_FILTER is not sortable.
There is some discussion on this issue and a proposed solution here:
I've been looking through the code for this and am adding some notes here in case they help anyone else (or me to recall later).
As Jordan observes, these errors are telling us about the problem:
(users-admin:724): Gtk-CRITICAL **: gtk_tree_ sortable_ get_sort_ column_ id: assertion `GTK_IS_ TREE_SORTABLE (sortable)' failed WARNING **: invalid cast from `GtkTreeModelFi lter' to `GtkTreeSortable' sortable_ has_default_ sort_func: assertion `GTK_IS_ TREE_SORTABLE (sortable)' failed WARNING **: invalid cast from `GtkTreeModelFi lter' to `GtkTreeSortable' sortable_ set_sort_ column_ id: assertion `GTK_IS_ TREE_SORTABLE (sortable)' failed
(users-admin:724): GLib-GObject-
(users-admin:724): Gtk-CRITICAL **: gtk_tree_
(users-admin:724): GLib-GObject-
(users-admin:724): Gtk-CRITICAL **: gtk_tree_
What seems to be happening is that the function create_ users_model( ) in users-table.c is creating a GTKTreeModel of type GTK_TREE_ MODEL_FILTER instead of eg. plain type GTK_TREE_MODEL. When the code in create_ users_table( ) calls gtk_tree_ sortable_ set_sort_ column_ id() this fails because the GTK_TREE_ MODEL_FILTER is not sortable.
There is some discussion on this issue and a proposed solution here:
http:// mail.gnome. org/archives/ gtk-list/ 2005-February/ msg00177. html
This is all I have gleaned so far and may be well wide of the mark, but I shall persevere.