[Gtk-sharp-list] Visual studio claims TreeView.SetCellDataFunc deprecated??

Mike Kestner mkestner at gmail.com
Thu Feb 19 09:07:02 EST 2009


On Wed, 2009-02-18 at 23:44 -0800, dabatla wrote:
> Hi there, I'm using TreeView.SetCellDataFunc(...) quite extensively in my
> code to do my data bindings, but I just noticed that VS claims that the
> method is deprected? Is this true? I couldn't find any mention of it in the
> mono docs?

[Obsolete ("Replaced by SetCellDataFunc (CellRenderer, TreeCellDataFunc)
overload")]
public void SetCellDataFunc (Gtk.CellRenderer cell_renderer,
Gtk.TreeCellDataFunc func, IntPtr func_data, Gtk.DestroyNotify destroy)


I assume you mean this method on TreeViewColumn.  That's the only
deprecated overload I can find.  I'm surprised VS doesn't report the
"Replaced by" message we've included.  We deprecated this overload since
it exposes the func_data and destroy notification delegate which are C
persistence mechanisms which we can handle automatically in C#.

-- 
Mike Kestner <mkestner at gmail.com>



More information about the Gtk-sharp-list mailing list