Re: API changes



On Fri, 2006-08-04 at 10:14 +0200, Philip Van Hoof wrote:
> On Fri, 2006-08-04 at 14:41 +1000, James "Doc" Livingston wrote:
> > On Fri, 2006-08-04 at 00:47 +0200, Philip Van Hoof wrote:
> > > - Finding another way to detect whether a type is an interface
> > >   and fix the python bindings generator this way (this is hard)
> > 
> > h2def looks at the type of the first member of the class struct to
> > determine the parent type. If that type is GTypeInterface, then the type
> > is obviously an interface.
> 
> Well it didn't work for the current interfaces. While the name was a bit
> funky, "Iface" is just part of the type name. So there's no difference
> with a normal GTypeInterface and a "Tinymail Interface".
> 
> So I wonder how come h2def.py didn't do it right at this moment...

In case anyone is interested, I've made a fairly simple patch against
h2def.py to make this work.

http://bugzilla.gnome.org/show_bug.cgi?id=350153


Cheers,

James "Doc" Livingston
-- 
The human genome is about 3 gigabases long, which boils down to 750
megabytes. Depressingly enough, this is only 2.8 Mozilla browsers."
    -- Jamie Zawinski




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