Re: GtkTreeModelFilter question
- From: Tim Müller <zen18864 zen co uk>
- To: gtk-app-devel-list gnome org
- Cc:
- Subject: Re: GtkTreeModelFilter question
- Date: Sun, 13 Feb 2005 12:26:44 +0000
On Sunday 13 February 2005 13:12, Maulet wrote:
I'm having problems with GtkTreeModelFilter.
The following sample program simply builds a window with a tree view
inside. A tree model filter wraps the tree model of the tree view.
The filter uses a visible function that always returns FALSE. So no rows
should be shown...
But compile and run it, and you'll see the tree view showing the row!
Could anyone explain me where am I wrong?
...
view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
...
You are not using the filter model you created. Try
view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(filter));
Cheers
-Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]