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 635798 - ATK API is not fully gobject introspection annotated
ATK API is not fully gobject introspection annotated
Status: RESOLVED DUPLICATE of bug 640574
Product: atk
Classification: Platform
Component: atk
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Li Yuan
Li Yuan
Depends on:
Blocks:
 
 
Reported: 2010-11-25 18:02 UTC by Alejandro Piñeiro Iglesias (IRC: infapi00)
Modified: 2011-01-26 09:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
g-ir-scanner warnings if you use --warn-all (7.59 KB, text/plain)
2010-11-25 18:02 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
  Details
Annotation for atk_object_ref_state_set (855 bytes, patch)
2010-11-25 18:04 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
none Details | Review

Description Alejandro Piñeiro Iglesias (IRC: infapi00) 2010-11-25 18:02:23 UTC
Created attachment 175261 [details]
g-ir-scanner warnings if you use --warn-all

Right now Atk has support for gobject introspection, and the .gir file is created properly. This means that the methods implemented in C can be called from other language like Javascript.

I'm doing that right now on gnome-shell, but I have found that some ATK methods misses their gobject introspection annotations. I have attached the output of g-ir-scanner if you configure it with warn-all.

The fact is that the methods without the annotations are not being properly exported to the .gir file, so you can't call it from javascript.

Writing this annotations is easy, in fact I will attach a patch with the annotation for atk_object_ref_state_set, but a long task, as there are a lot of methods.

I will try to book some time to review that, but if not, at least I will upload the patches for the methods that I require, so at least we would have the annotations on demand, and we would have this patch to track this issue.
Comment 1 Alejandro Piñeiro Iglesias (IRC: infapi00) 2010-11-25 18:04:24 UTC
Created attachment 175263 [details] [review]
Annotation for atk_object_ref_state_set

Annotation for atk_object_ref_state_set

BTW: gobject introspection annotations documentation:

http://live.gnome.org/GObjectIntrospection/Annotations
Comment 2 Alejandro Piñeiro Iglesias (IRC: infapi00) 2011-01-26 09:58:02 UTC

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