libanjuta interface problems again
- From: Johannes Schmid <johannes schmid gmx de>
- To: GTKmm List <gtkmm-list gnome org>
- Subject: libanjuta interface problems again
- Date: Sat, 07 Oct 2006 12:22:16 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFJ3/Y7Dsf+G5b/WsRAnA2AJ9jmOw0xtKxXXmfO0LVX/jxR9/QOACgoR4i
GTY/knwDxtQCzfyRq25FqH8=
=jRC3
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]