Re: Creating a Sortable Filter

From: Date: Fri, 20 Apr 2007 05:28:07 +0000
Subject: Re: Creating a Sortable Filter
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3803@lists.php.net to get a copy of this message
Jake, > I was using a GtkTreeView with a GtkListStore data model. I wrapped the > GtkListStore in > a GtkTreeModelFilter to use the filtering capabilities but this lost the > sorting ability because > GtkTreeModelFilter does not implement the GtkTreeSortable interface. I > wrote a simple class > that extends GtkTreeModelFilter and implements GtkTreeSortable and > simply calls the underlying > model's (in my case GtkListStore) GtkTreeSortable methods. Just wrap your filter in a sortable. Sortable +- Filter +- Store -- Regards/Mit freundlichen Grüßen Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.dev (#3803) next »