[Gtk-sharp-list] TreeCellDataFunc not getting pinged

Eskil Bylund eskil.bylund at gmail.com
Fri Apr 13 08:00:35 EDT 2007


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));


More information about the Gtk-sharp-list mailing list