From: Masao Mutoh Date: 2005-02-11T15:49:37+09:00 Subject: Re: Gtk - Image via HTTP in TreeView Hi, On Fri, 11 Feb 2005 09:35:02 +0900 Michael Gebhart wrote: > Hi there, > > I'm just writing my first ruby-gtk application. But already there are the > first problems :) > > In my application I have a treeview with 2 columns. In the second column, > I wanna display some text, that works. In the first column I'm trying to > display an image. It should be a image from an external server. So first I > have to grab the image, but how should I do that? After that I have to > display it in the treeview, but this also doesn't work. Here are my first > tries: Use Gtk::CellRendererPixbuf to render pixbuf. Try gtk/sample/misc/treeview.rb. > col = Gtk::TreeViewColumn.new("Description", @renderer, :text => 0) > #What is the :text => for? I know, that are attributes. But what can I set > here? The column of the store. In this case, 0 means Gdk::Pixbuf, 1 means String. Read "Ruby/GTK TreeView Tutorial", please. http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview -- .:% Masao Mutoh