[Gtk-sharp-list] UserData element
Todd Berman
tberman@off.net
Thu, 16 Dec 2004 14:40:11 -0800
On Thu, 2004-12-16 at 11:31 -0600, Sergio Duran wrote:
> I use the widgets' UserData element to store an integer so when I see
> a widget, I can know what it pointed to, on gtk# 1.0.2 it worked just
> fine, but now that I'm testing gtk# 1.9 I cant assign any integer to
> it, it remains with the value 0.
>
BAD!
NO!
UserData stores an IntPtr. sometimes it is used internally, evilness.
However, to solve all of your problems, all GObjects contain a .Data
property that is a Hashtable in which you can store that sort of
information if you need to.
--Todd