After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 101810 - wrong assertion in gtk_tree_view_column_set_sort_column_id()
wrong assertion in gtk_tree_view_column_set_sort_column_id()
Status: RESOLVED DUPLICATE of bug 87556
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.1.x
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2002-12-22 15:30 UTC by Soren Sandmann Pedersen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Soren Sandmann Pedersen 2002-12-22 15:30:31 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.
Comment 1 Kristian Rietveld 2002-12-22 16:36:17 UTC
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 ***