GNOME Bugzilla – Bug 657328
GPtrArray not supported in signals
Last modified: 2011-08-25 13:35:02 UTC
telepathy-glib has a signal "contact-list-changed" on TpConnection. That signals has 2 GPtrArray* in args and when receiving the signal in gnome-shell I get that: JS ERROR: !!! Exception was: Error: Unable to introspect element-type of container in GValue JS ERROR: !!! lineNumber = '0' JS ERROR: !!! fileName = '"gjs_throw"' JS ERROR: !!! stack = '"("Unable to introspect element-type of container in GValue")@gjs_throw:0 "' JS ERROR: !!! message = '"Unable to introspect element-type of container in GValue"'
In .gir it seems correct: <glib:signal name="contact-list-changed" version="0.15.5"> <doc xml:whitespace="preserve">...</doc> <return-value transfer-ownership="none"> <type name="none"/> </return-value> <parameters> <parameter name="added" transfer-ownership="none"> <doc xml:whitespace="preserve">a #GPtrArray of #TpContact added to contacts list</doc> <array name="GLib.PtrArray"> <type name="Contact"/> </array> </parameter> <parameter name="removed" transfer-ownership="none"> <doc xml:whitespace="preserve">a #GPtrArray of #TpContact removed from contacts list</doc> <array name="GLib.PtrArray"> <type name="Contact"/> </array> </parameter> </parameters> </glib:signal>
*** This bug has been marked as a duplicate of bug 645978 ***