[Gtk-sharp-list] .Data element is now obsolete

jeroen@xs4all.nl jeroen@xs4all.nl
Fri, 11 Mar 2005 09:41:09 +0100 (CET)


sample/Actions.cs used to use the Data property. It now uses a Hashtable
to provide the same functionality (link between an Action and it's Proxy
(Widget)). See the sample for the new code. You should be able to use the
same mechanism.



> Hi everyone,
> I'm using Gtk# 1.9.2 and .Data is obsolete, because it causes
> instability, I know its because the objects can be Garbage collected
> and then recreated later, from the C Pointer, my solution is to always
> keep a reference to the Widgets when I need them, so they are not
> garbage collected, but I would also like to know if there's some work
> on progress in this area. Because I dont like using
> obsolete/deprecated code.
> Thanks.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list