Re: [gtkmm] User Data



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).
And regarding the name (gtkmm), I guess I'm still old fashioned. I'm writing again in gtkmm since a year or more of not touching code, as you can see I am a bit outdated...

Murray Cumming wrote:
On Mon, 2002-11-18 at 13:58, Leandro Fanzone wrote:
  
Thank you to all that helped me with the TreeView implementation, I have 
the coloured rows working. Now I need to use the get_user_data() call, 
and I see it has no mapping whatsoever in Gtk--.
    

That's gtkmm, not Gtk--.

Why would you want to use "user data"? If you want to associate extra
data with each row then just use an extra model column.

  


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