Re: sort list_store
- From: "Freddie Unpenstein" <fredderic excite com>
- To: lists olivier pk wau nl, info alls org, gtk-app-devel-list gnome org
- Cc:
- Subject: Re: sort list_store
- Date: Wed, 9 Feb 2005 04:13:18 -0500 (EST)
how to sort a list_store?
you can put a GtkTreeSortModel on top of your listmodel, and then
connect the GtkTreeView to the sort model instead of your
list_store.
beware that you have to convert any iter or path you retrieve from
the treeview from the sort model back to the list_store
Out of curiosity, if you're handed a model to display, created by some other part of the program such as a
dynamically loaded module from a 3rd party, will the same process of iter conversion still work even if it is
just a raw unsorted and unfiltered GtkTreeModel? ie. Do the conversion functions simply fall back to no-op's?
Just curious...
Fredderic
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]