GtkTreeView questions
- From: Yves Kurz <shorty kurz-technik ch>
- To: gtk-app-devel-list gnome org
- Subject: GtkTreeView questions
- Date: 31 Dec 2002 03:29:00 +0100
Hello..
I'm trying to write a small gtk application which is using the
GtkTreeView widget. Now i have some questions and i hope someone can
give me a little help.
1. How is it working with freeing the resources of a widget?
I'm doing this:
store = >store = gtk_list_store_new (n_cols, G_TYPE_BOOLEAN);
view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
is a simple gtk_widget_destroy (GTK_WIDGET (view)) enough to free the
store (with all it's content) and the view?
2. I would like to use the EGG_TREE_FILTER but i don't know how to do it
right. I get all the time just an empty list.
store = >store = gtk_list_store_new (n_cols, G_TYPE_BOOLEAN);
filter = egg_tree_model_filter_new (GTK_TREE_MODEL (gs->store),
gtk_tree_path_new_first ());
egg_tree_model_filter_set_visible_column (EGG_TREE_MODEL_FILTER
(filter), 1);
or
egg_tree_model_filter_set_visible_func (EGG_TREE_MODEL_FILTER (filter),
filter_visible_all, NULL, NULL);
view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (filter));
What ist wronge here??
Thank you..
yves
--
Yves Kurz <shorty kurz-technik ch>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]