Re: interface question



-----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));
}

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?

Regards,
Johannes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFEwA/7Dsf+G5b/WsRAv+3AJ9D3NEdGKplXVYlg0h3yxgDpWkK3QCeJbbL
+tfpeOnRmf06Ade3L8fcC9U=
=hzdN
-----END PGP SIGNATURE-----



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