lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** Re: getting back to sub-classes of gobjects
- Date: Thu, 28 Aug 2008 15:04:04 +0200
- From: Murray Cumming <murrayc@xxxxxxxxxxx>
- Subject: ***BOGO*** 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@xxxxxxxxxxx
www.murrayc.com
www.openismus.com
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-devel-list