Populate Gtk::TreeView?

S

Stephen Branley

Hi,

I'm in need of a Gtk::TreeView in an application. I create the treeview
and add it to my window (and the blank widget is indeed there) but I
can't seem to add anything to the treeview. I create a treestore, get
the iterator and use that to add data, but it doesn't seem to work, and
the tree isn't updated. Where am I going wrong?

Thanks
 
K

Kenosis

Stephen said:
Hi,

I'm in need of a Gtk::TreeView in an application. I create the treeview
and add it to my window (and the blank widget is indeed there) but I
can't seem to add anything to the treeview. I create a treestore, get
the iterator and use that to add data, but it doesn't seem to work, and
the tree isn't updated. Where am I going wrong?

Thanks
Posting the code could help us to help you.

Ken
 
D

Detlef Reichl

Am Samstag, den 15.07.2006, 04:57 +0900 schrieb Stephen Branley:
Hi,

I'm in need of a Gtk::TreeView in an application. I create the treeview
and add it to my window (and the blank widget is indeed there) but I
can't seem to add anything to the treeview. I create a treestore, get
the iterator and use that to add data, but it doesn't seem to work, and
the tree isn't updated. Where am I going wrong?
Hi,

there could different faults.

First you have to attache renderers to the view-colums. Than you have to
take care, that the renderer get notified when the model get changed.

Take a look at the treeview-example at

http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview

If you have further questions, please send the relevant parts of your
code.

Cheers
detlef
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top