Re: [gtkmm] User Data



On Mon, 2002-11-18 at 14:28, Leandro Fanzone wrote:
> I'm sorry, I wasn't clear about what I intended to do. I have a set of
> widgets, and I used the user data to associate extra info to those
> widgets, not only to the list. I was previously using
> get/set_user_data from Gtk::Object, but now I see it's commented out.
> Though I could use the gtk+ method instead, I just wanted to know why
> gtkmm did not implement it, just in case there's something I must be
> aware of (like a new way of handling user data).

Because:
- It's not type-safe.
- I don't think it's even used much in GTK+.
- A std::map<> would probably do a better job in C++, for instance.

-- 
Murray Cumming
murray usa net
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]