GNOME Bugzilla – Bug 664866
PeasExtensionSet seems to be broken in gobject-introspection
Last modified: 2011-11-26 12:50:07 UTC
Created attachment 202179 [details] Python version of peas-demo I have tried to port the peas-demo from C to Python to learn how to use Peas in Python. But now I can't convert this C code to Python code: dw->exten_set = peas_extension_set_new (peas_engine_get_default (), PEAS_TYPE_ACTIVATABLE, "object", dw, NULL); There seems no PEAS_TYPE_ACTIVATABLE in gir. So I have used Peas.Activatable.__gtype__ in Python. self.exten_set = Peas.ExtensionSet(engine = engine.get_default(), extension_type = Peas.Activatable.__gtype__, construct_properties = ["object", self]) But this results in this TypeError. TypeError: could not convert value for property `extension_type' from gobject.GType to GType I'm attaching the Python script, what isn't complete at this time. The signal handlers for extension-add and extension-removed are missing.
Duplicated sending by accident. *** This bug has been marked as a duplicate of bug 664865 ***