Re: getting back to sub-classes of gobjects



On 8/28/08, Murray Cumming <murrayc murrayc com> wrote:
> 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.

 murrah, hi, thank you: sadly, the implementation of webkit _used_ to
have private pointers available but they were removed and replaced
with hash maps.  now that there are _three_ separate "bindings" -
javascript (JS), objectiveC (ObjC) and now glib (GDOM) i hope that
some alternative mechanism than having one hash map per binding will
be considered.

 i will definitely look at gtkmm because this is quite tricky stuff.
i'm going to need to copy the style of the objc for one part and the
style of the JS bindings for the other.

l.


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