Re: GtkTreeView
- From: Harring Figueiredo <harringf yahoo com>
- To: mike aubit com, gtk <gtk-app-devel-list gnome org>
- Subject: Re: GtkTreeView
- Date: Tue, 27 Jan 2004 10:59:39 -0800 (PST)
See the questions below for the answers
Hope this helps.
HArring.
--- Mike Aubury <mike aubit com> wrote:
I've got one of these in my app - I just need some pointers...
Background - Its set to use liststore, so I have a simple list of a single
text column
I'm reading the description in via glade, when I see a tree view in the
input,
i'm creating a list_store_new with a single character column, addeing the
renderer, appending the column etc etc
I can add to the list without a problem...
Now -
1) I need to get the count of items in the list
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeModel.html#gtk-tree-model-iter-n-children
2) I need to find out of a particular row index is selected
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeSelection.html#gtk-tree-selection-get-selected-rows
3) I need to be able to retrive the text for a row index
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeModel.html#gtk-tree-model-get-value
4) I need to be able to delete a row from the list by row index
http://developer.gnome.org/doc/API/2.0/gtk/GtkListStore.html#gtk-list-store-remove
(where row index is the row number between 1 and the count of items)
Any ideas ?
Finally - has anybody got/shouldn't there be a CList type wrapper around the
treeview (as Clist is being depreciated - I'm trying not to use it) - but
this all seems like very hard work for something that used to be fairly
simple !
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Answers from questions 1-4 is on:
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]