On Fri, 2007-04-13 at 14:00 +0200, Eskil Bylund wrote:
> 2007/4/9, Adam Tauno Williams <[EMAIL PROTECTED]>:
> > column = new Gtk.TreeViewColumn ();
> > column.Title = "Object Id";
> > cell = new Gtk.CellRendererText ();
> > column.SetCellDataFunc(cell, new Gtk.TreeCellDataFunc(RenderObjectId));
> > column.PackStart(cell, true);
> > toDoView.AppendColumn(column);
> 
> Hi Adam,
> You need add the CellRenderer to the column before you can set the 
> CellDataFunc:
> column.PackStart(cell, true);
> column.SetCellDataFunc(cell, new Gtk.TreeCellDataFunc(RenderObjectId));

Excellent!  Works perfectly now.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Gtk-sharp-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to