Re: libanjuta interface problems again
- From: Johannes Schmid <johannes schmid gmx de>
- To: Johannes Schmid <johannes schmid gmx de>
- Cc: GTKmm List <gtkmm-list gnome org>
- Subject: Re: libanjuta interface problems again
- Date: Sat, 07 Oct 2006 13:38:42 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Investigating this a bit further I found out the the interface types are
not registered in wrap_init.cc. Is this the intention?
Regards,
Johannes
Johannes Schmid wrote:
> Hi!
>
> I have now finished most of the wrapper except the signals because
> generate_extra_defs seems to be quite bad on GInterfaces but I ran into
> another Interface problem.
>
> In C++, to implement an interface you would write:
>
> class MyPlugin : public Anjuta::Plugin, public IAnjuta::Interface
> {
> public:
> void my_interface_impl();
> }
>
> But at the point where the underlying C code wants to call this
> interface it fails because it tries to cast and fails:
>
> (anjuta:28301): GLib-GObject-WARNING **: invalid cast from
> `gtkmm__AnjutaPlugin' to `IAnjutaWizard'
>
> ** (anjuta:28301): CRITICAL **: ianjuta_wizard_activate: assertion
> `IANJUTA_IS_WIZARD(obj)' failed
>
> How it this supposed to work?
>
> BTW, the code can be viewed at
> https://svn.sourceforge.net/anjuta/libanjutamm
>
> Thanks and regards,
> Johannes
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFJ5HC7Dsf+G5b/WsRAt6xAJ46GS9SpfQedQpwh1riX1PawQ4kUACgoc+L
zhUuDBbOakUo7jD926+feo0=
=Fl34
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]