How can I remove the sort indicator in a GtkTreeViewColumn while preserving the collation of the columns?
I found it can be done with not applying set_sort_column_id
to a tree column . We have to do this programmatically, using a method set_clickable
for the column where you don't want the arrow to appear in its header, then using signal_connect
for a signal clicked
and binding it to a functionwhich will use the get_sort_column_id
modelsto get the current sort order: GTK_SORT_ASCENDING
or GTK_SORT_DESCENDING
then apply the sort order backwards using set_sort_column_id
in the model .
source to share