Il giorno mer 28 set 2011 13:10:23 CEST, Thomas Jollans ha scritto:
On 27/09/11 17:52, Andrea Zagli wrote:
can i have a GtkTreeView based on GtkTreeModelFilter based on a
GtkTreeModelSort?
i tried but when i click on a column header i get "invalid cast from
`GtkTreeModelFilter' to `GtkTreeSortable'"
thanks in advance
If you want the TreeView to be sortable, the GtkTreeView's model must
implement GtkTreeSortable. GtkTreeModelFilter doesn't, GtkTreeModelSort
does - you have to swap the two.
Give the GtkTreeView a GtkTreeModelSort wrapping a GtkTreeModelFilter
(which in turn can wrap your actual data)
ok, it seems to work
thanks a lot
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list