Re: Prevent sort of GtkListStore.



On Wed, Jun 12, 2013 at 11:38 PM, dE <de techno gmail com> wrote:
With gtk_tree_view_column_set_sort_column_id (), it appears that
GtkListStore also gets sorted.

I don't want that to happen, since the data in it has to be compared.

The sorting of GtkTreeView actually sorts the model, it does so
using the GtkTreeSortable interface.

If you dont want the data model to actually be modified by sorting,
then you can use a GtkTreeModelSort, which is an intermediate
data model for this particular purpose (just set the GtkTreeModelSort
as the model for the GtkTreeView, and set your data model as the
"child model" of the GtkTreeModelSort).

Cheers,
    -Tristan


How can I do this? Thanks!!
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]