Re: interface question



On Sat, 2006-09-23 at 20:02 +0200, Johannes Schmid wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi!
> 
> OK, I tracked the issue down a bit to glibmm. When wrapping a type
> glibmm searches all it parents type and takes the first it finds.
> Anyway, interfaces are not implemented using inheritance in C and that
> leads to the result that glibmm does not find out the AnjutaApp does
> implement AnjutaShell because it only sees AnjutaApp -> GnomeApp -> ...
> - -> GObject

I think there's some way to make this work, but I'm not sure what. I
think I'm forgetting something.

> Seems that I need some other solution!

In the meantime, I think you can do what Glib::wrap does, by calling the
cobject* constructor directly, and being careful about it.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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