GType stuff again!



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

So, I came around a bit more with debugging the GType things for
libanjutamm and found out what I need.

Anjuta calls a function in the plugin to find out the GType of the base
class which has to be derived from AnjutaPlugin. In C++ this means I
somehow call MyPlugin::type() to get the correct type. Anyway, this does
not give me a custom type but just gtkmm_AnjutaPlugin.

As the next step, Anjuta creates an object of the type determined by the
 call above with g_object_new(). My problem is now, that I need the to
get a unique GType of my plugin class to be able to create such a class
with g_object_new(). Would be nice if anyone would now how to do this.

Calling Glib::ObjectBase("sometype") in the constructor did not help, btw.

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

iD8DBQFE5kMR7Dsf+G5b/WsRAjDCAJ4g1nPtrTuWD4Er+U5VmCZOnonOggCfaNr5
IsrrI+uooTy5rKlHZbrmV4E=
=Uk4u
-----END PGP SIGNATURE-----



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