Re: getting back to sub-classes of gobjects



On Thu, 2008-08-28 at 11:55 +0000, Luke Kenneth Casson Leighton wrote:
> >  > btw just to reassure you: i really _do_ mean thank you for such a simple
> >  > answer: this is the first time, this week, that i've done gobject programming,
> >  > and i didn't exactly start with a small unambitious task ha ha :)
> >  
> >  Big go go go here! From a PyGTK enthusiast ;-)
> 
>  ha ha thank you alberto :)
> 
>  btw i worked out what the issue is: i need a "hash map" which records the link
> between the c++ objects and the glib objects.

Store a pointer to the C++ object in the GObject, using g_object_set().
Store a pointer to the GObject in the C++ instance. That's what gtkmm
does: See objectbase.cc in glibmm.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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