GNOME Bugzilla – Bug 151139
Turn off sorting on Gtk*Store after it has been enabled
Last modified: 2011-02-04 16:17:01 UTC
Aloha, as per the discussion on the list, here's a patch that enables you to turn off sorting again by officially blessing the magical sort column value that denotes an unsorted store and by removing/adjusting some assertions. Also attached are two sample applications. When you click on a column heading, the sorting mode changes to ascending, descending or none, depending on the current mode. Activating a row adds a new row, to test/demonstrate whether new rows get sorted correctly. Bye, -Torsten
Created attachment 30979 [details] [review] Make it possible to turn off sorting
Created attachment 30980 [details] GtkListStore example
Created attachment 30981 [details] GtkTreeStore example
Sun Sep 5 01:04:01 2004 Matthias Clasen <maclas@gmx.de> Allow sorting of tree models to be turned off again. (#151139, Torsten Schoenfeld) * gtk/gtktreesortable.h: Add GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID. * gtk/gtktreestore.c (gtk_tree_store_sort): * gtk/gtkliststore.c (gtk_list_store_sort): Don't sort if the list store is not sorted.