9 Dec 2007 16:45
Sorted TreeView
David Leuschner <david <at> loisch.de>
2007-12-09 15:45:34 GMT
2007-12-09 15:45:34 GMT
Hi all, I've been trying to display a list in a TreeView with clickable column headers, that change the order of the list items. I wrote a simple program using TreeStore as a model (see attachment). Running this program produces the following output if the column header is clicked: (TreeViewColumnReorder:14348): Gtk-CRITICAL **: gtk_tree_sortable_get_sort_column_id: assertion `GTK_IS_TREE_SORTABLE (sortable)' failed (TreeViewColumnReorder:14348): Gtk-CRITICAL **: gtk_tree_sortable_has_default_sort_func: assertion `GTK_IS_TREE_SORTABLE (sortable)' failed (TreeViewColumnReorder:14348): Gtk-CRITICAL **: gtk_tree_sortable_set_sort_column_id: assertion `GTK_IS_TREE_SORTABLE (sortable)' failed I tried using treeModelSortWithNewModel but calling this function always kills the program with the following message: TreeModelSort: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? I am using the the 0.9.12.1 release of Gtk2Hs and am compiling with GHC 6.8.1. Any help would be greatly appreciated! Cheers, David --(Continue reading)
RSS Feed