GNOME Bugzilla – Bug 101810
wrong assertion in gtk_tree_view_column_set_sort_column_id()
Last modified: 2004-12-22 21:47:04 UTC
gtk_tree_view_column_set_sort_column_id() contains this: g_return_if_fail (sort_column_id >= 0); if (tree_column->sort_column_id == sort_column_id) return; tree_column->sort_column_id = sort_column_id; /* Handle unsetting the id */ if (sort_column_id == -1) { ie. first it asserts that "sort_column_id >= 0" then it goes on to handle the case where sort_column_id == -1. I believe the assertion should be removed; otherwise there is no way to unset the sort id for a column.
I know, I have been wanting to fix sorting for 2.2.0, but didn't have the time. There are more problems than this though. I have to go through the sortable interface and its implementations and figure out one big correct fix. The problem is really bigger than just this problem IIRC (as far as I understand the sortable interface). *** This bug has been marked as a duplicate of 87556 ***