Forum: Ruby Gtk::TreeView, Libglade and Ruby

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Michael Lesniak (Guest)
on 2006-03-01 17:13
(Received via mailing list)

I have created a small testcase for working with a TreeView which I
can't get to run for reasons I couldn't find out.

--- Sample code begin ---------------------
		list =, String)
		data = [["One", "1"], ["Two", "2"]]
		data.each do |item|
			iter = list.append
			item.each_with_index do |str, id|
				msg "@#{id} -> #{str}"
				iter[id] = str

		# Update treeview
		@list.model = list

		# Add it to the view
		renderer =
		name     =
		  :text => 0)
--- Sample code end -----------------------

where @list is a treeview, obtained from glade with

  @list = @glade['treeview']

The window shows up and I can write text into, such that the search
function of the TreeView pops up; but nevertheless, my data is not

Any ideas what is wrong here?

Thanks in advance,
  Michael Lesniak
This topic is locked and can not be replied to.