Re: treeview filter
| From: | Andrei Zmievski | Date: | Thu, 08 Jun 2006 17:36:47 +0000 |
| Subject: | Re: treeview filter | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6999@lists.php.net to get a copy of this message | ||
There is an issue with set_visible_func() though - it will result in a memory leak. And it's something that GTK+ has to fix.
-Andrei
On Jun 8, 2006, at 9:00 AM, Scott Mattocks wrote:
FOURTICQ Benjamin wrote:Hello, I would like to filter rows in a GtkTreeview, is it possible to keep the base TreeModel and create a function that determine if the row is visible or not ? For example : can I filter this treeview to see the red rows without re-building my treemodel ?There is a class called GtkTreeModelFilter which is designed specifically for this. It wraps the existing model and filters out rows without modifying the underlying model. Scott Mattocks -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php