[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Populate Gtk::TreeView?

Stephen Branley

7/14/2006 7:58:00 PM

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

--
Posted via http://www.ruby-....

2 Answers

Kenosis

7/14/2006 8:09:00 PM

0


Stephen Branley wrote:
> 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
>
> --
> Posted via http://www.ruby-....
Posting the code could help us to help you.

Ken

Detlef Reichl

7/15/2006 6:26:00 PM

0

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?tu...

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

Cheers
detlef


> Thanks
>