Re: Proper way to show unique icon in treeview <--with code

2006-12-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Dec 17, 2006 at 11:06:14PM -0500, Tony Freeman wrote: > > Hello, > > [...] > void build_server_list (GtkWidget *treeview) > { > GtkListStore *liststore; > GtkTreeIter iter; > GtkCellRenderer *text_renderer; > GtkCellR

Re: Proper way to show unique icon in treeview <--with code

2006-12-18 Thread Yeti
On Sun, Dec 17, 2006 at 11:06:14PM -0500, Tony Freeman wrote: > > >a > What am I doing wrong? > > g_object_set(icon_renderer, "stock-id", "gtk-close", NULL); > ... > g_object_set(icon_renderer, "stock-id", "gtk-save", NULL); > ... > g_object_set(icon_renderer, "stock

Re: Proper way to show unique icon in treeview <--with code

2006-12-17 Thread James Scott Jr
Tony, I don't claim to be an expert but I have used IconViews & TreeViews. I have never seen it attempted the way you show. Using GDK_TYPE_PIXBUF as the column type is all I have every tried, based on code I've seen from others, and it has always worked. Here are a few observation of your code.

Re: Proper way to show unique icon in treeview <--with code

2006-12-17 Thread Tony Freeman
> Hello, > > I need help understanding how one would create a treeview so that the > first column is an icon and the second column is text. The icon and > text represent the type of machine the user can choose (linux > workstation, linux server, hp). I want to have a different icon for > each ma