[SOLVED] Re: GtkTreeModelFilter on GtkTreeModelSort
- From: Andrea Zagli <azagli libero it>
- To: gtk-list gnome org
- Subject: [SOLVED] Re: GtkTreeModelFilter on GtkTreeModelSort
- Date: Sat, 01 Oct 2011 09:10:17 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]