Re: interface question
- From: Murray Cumming <murrayc murrayc com>
- To: Johannes Schmid <johannes schmid gmx de>
- Cc: gtkmm-list gnome org
- Subject: Re: interface question
- Date: Fri, 22 Sep 2006 17:12:22 +0200
On Thu, 2006-09-21 at 23:12 +0200, Johannes Schmid wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> So one last problem remains. AnjutaPlugin Class has a member shell which
> contains an object which implements AnjutaShell interface. I have
> created a wrapper around AnjutaShell of course (see
> http://anjuta.cvs.sourceforge.net/anjuta/libanjutamm-new/libanjuta/src/shell.hg?view=markup).
>
> To make the shell member availible to C++ users, I added a hand-coded
> shell() method to Anjuta::Plugin which does the following:
>
> Glib::RefPtr<Shell> Plugin::shell()
> {
> return Glib::RefPtr<Shell>(Glib::wrap(gobj()->shell));
> }
_MEMBER_GET_GOBJECT(shell, shell, Shell, AnjutaShell*)
or similar should do this for you.
> On runtime this fails because Glib::wrap fails to wrap "AnjutaApp" which
> is the object actually implementing AnjutaShell to Anjuta::Shell. How
> can I create a object of Anjuta::Shell?
Maybe you are not calling your hand-coded init() function, which calls
your generated wrap_init() method, which tells the wrap() system about
the C++ wrapper types that exist.
--
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]