[Gtk-sharp-list] TreeCellDataFunc not getting pinged
Adam Tauno Williams
adam at morrison-ind.com
Fri Apr 13 14:56:31 EDT 2007
On Fri, 2007-04-13 at 14:00 +0200, Eskil Bylund wrote:
> 2007/4/9, Adam Tauno Williams <awilliam at whitemice.org>:
> > 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070413/319b79b1/attachment.bin
More information about the Gtk-sharp-list
mailing list