Re: Multiple stores for TreeView
- From: mige <mige_harimurti yahoo com>
- To: John Palmieri <johnp martianrock com>
- Cc: mige <mige_harimurti yahoo com>, gtk-app-devel-list gnome org
- Subject: Re: Multiple stores for TreeView
- Date: Fri, 04 Apr 2003 10:42:04 +0700
Mr Palmieri,
Thank you for all your infos ...
John Palmieri wrote:
This is easy since whe have a model/view relationship the view doesn't
hold any "real" information. Just use
void gtk_tree_view_set_model (GtkTreeView *tree_view,
GtkTreeModel *model);
This will unset the current model and set the new one. If you just want
to unset the current model then send in a NULL for the model. Make sure
you have a refrence to the model if you wish to reuse it. The models
must have identical metadata (i.e. # of columns and column data types).
But my model's meta-data (columns) different from each other list-store.
There for I need to build up the treeview's columns every time a
list-store selected.
Use a widget like the tabbed pane widget. There might also be a card
widget that stacks panes on top of each other without using tabs but I
could just be getting my GUI libraries mixed up. Either way there is a
widget that does this. Check out www.gtk.org and look at the API
documentation.
I'm planning to hold the treeview/list-store in a Glist (or hash).
But I prefer first plan.
--
J5
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]