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

dabatla dabatla at gmail.com
Fri Feb 20 04:33:22 EST 2009

Mike Kestner-4 wrote:
> 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>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Yes, I did mean TreeViewColumn, sorry about that....
I think VS just doesn't have a proper mechanism to indicate that it was
replaces by a overload.
Thanks, that clarifies things.

View this message in context: http://www.nabble.com/Visual-studio-claims-TreeView.SetCellDataFunc-deprecated---tp22095409p22117535.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list