Re: getting back to sub-classes of gobjects
- From: Murray Cumming <murrayc murrayc com>
- To: Luke Kenneth Casson Leighton <lkcl lkcl net>
- Cc: gtk-devel-list gnome org, webkit-dev lists webkit org
- Subject: Re: getting back to sub-classes of gobjects
- Date: Thu, 28 Aug 2008 15:04:04 +0200
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]