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 [EMAIL PROTECTED] www.murrayc.com www.openismus.com _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
