After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657328 - GPtrArray not supported in signals
GPtrArray not supported in signals
Status: RESOLVED DUPLICATE of bug 645978
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-25 13:04 UTC by Xavier Claessens
Modified: 2011-08-25 13:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier Claessens 2011-08-25 13:04:33 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"'
Comment 1 Xavier Claessens 2011-08-25 13:05:56 UTC
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>
Comment 2 Colin Walters 2011-08-25 13:35:02 UTC

*** This bug has been marked as a duplicate of bug 645978 ***