Re: TreeFilterModel and sorting

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

 



> I've just run into this problem (using pygtk).
>
> I'd like to have a liststore that is both sortable and filterable.
>
> In fact, I had such a beast, but I was using my own nasty hacks to
> implement the filtering.  I've had on my to-do list to switch to the
> TreeModelFilter + I've just tried that -- unfortunately it seems I can
> either have filtering or sorting, but not both.
>
> Am I missing some trick?

You can stack models

GtkListStore
GtkFilterStore
GtkSortStore

And use the Store are the model in the GtkTreeview

Stian
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux