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 326520 - Add Accessibility::Document
Add Accessibility::Document
Status: RESOLVED FIXED
Product: at-spi
Classification: Platform
Component: api
0.0.1
Other All
: Normal enhancement
: ---
Assigned To: Ariel Rios
bill.haneman
Depends on:
Blocks: 318223
 
 
Reported: 2006-01-10 20:55 UTC by George Kraft IV
Modified: 2006-07-19 10:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
The above file describes the new interface in IDL. (2.83 KB, text/plain)
2006-06-14 16:47 UTC, bill.haneman
  Details
Patch that implement document for at-spi (3.48 KB, application/x-compressed-tar)
2006-06-15 16:12 UTC, Ariel Rios
  Details
revised Document definition, returns attributes as an AttributeSet. (2.87 KB, patch)
2006-06-29 12:36 UTC, bill.haneman
committed Details | Review
revised patch, provides Document interface in libspi and cspi. Thanks Ariel for the initial version. (18.35 KB, patch)
2006-06-29 15:03 UTC, bill.haneman
none Details | Review
Patch with Changelog attached (20.23 KB, patch)
2006-06-29 16:19 UTC, Ariel Rios
committed Details | Review

Description George Kraft IV 2006-01-10 20:55:54 UTC
Implement Accessibility::Document per
http://gnome.org/%7Ebillh/at-spi-new-idl/html/html/

AtkDocument, including document events (signals).  Define circumstances and the
order events should be fired.  Includes document locale.

Target Gnome 2.16 by the end of July 2006.
Comment 1 bill.haneman 2006-06-09 16:56:26 UTC
George: implementation (properly in gail) and definition are separate issues.  ATK isn't the right component for this bug (since AtkDocument is already defined), though one might file an RFE against gail for a _specific_ gtk+ situation where document isn't currently being implemented as it should).  Actually I think that with the possible exception of gedit, all the AtkDocument implementations will be outside of gail, i.e. OpenOffice.org, mozilla/gecko, etc.

I'll keep this bug alive as the bug for "providing Accessibility::Document" which isn't in the at-spi IDL yet - it needs to wrap AtkDocument.  As such, it belongs against component "at-spi", subcomponent "api". 

regards,
Bill
Comment 2 George Kraft IV 2006-06-09 18:50:08 UTC
Bill: should this bug be used to implement Document in libspi?
Comment 3 bill.haneman 2006-06-14 09:37:27 UTC
This bug should be used for the AtkDocument to Accessibility::Document wrapper in libspi.  The changes should live in new files called 

(at-spi)/libspi/document.c
(at-spi)/libspi/document.h

Ariel should have a CVS account, should we assign this bug to him now?

Bill
Comment 4 bill.haneman 2006-06-14 16:47:46 UTC
Created attachment 67348 [details]
The above file describes the new interface in IDL.

The file above should be added to cvs in the at-spi/idl directory, and Accessibility.idl and idl/Makefile.am edited accordingly.
Comment 5 Ariel Rios 2006-06-15 16:12:38 UTC
Created attachment 67434 [details]
Patch that implement document for at-spi

Here are the patches with the document implementation. It includes both the libspi and cspi bindings. I revised them to fix the changes coming from the new Accessibility_Document.idl and comments by Bill.
Comment 6 George Kraft IV 2006-06-28 15:45:02 UTC
What is the status on the code commit?
Comment 7 bill.haneman 2006-06-29 12:35:23 UTC
Ariel:  Your patch looks good except for a couple of minor things.  First, please don't use 'C++' style comments "//", they break some C compliers since they were introduced with C99 or later (not sure when).  Secondly, it would be better to create patches using "diff -uN" to include new files, than to make .gz archives; that way the patch can be viewed/edited inline.

One other thing (and this one is my fault): I think we should use AttributeSet as the return value from Document:getAttributes, instead of a delimited string.  

I will attach the modified IDL file.
Comment 8 bill.haneman 2006-06-29 12:36:31 UTC
Created attachment 68164 [details] [review]
revised Document definition, returns attributes as an AttributeSet.

should I go ahead and commit this now?
Comment 9 Ariel Rios 2006-06-29 12:53:13 UTC
Bill, On the original IDL I used getAttributes returned AttributeSet. When I looked at your commited IDL I saw the method returned a string so I ma de the change. If you commit the IDL I'll resurrect the original code and repatch.

Comment 10 bill.haneman 2006-06-29 14:38:25 UTC
I've committed the new IDL Ariel... but there were some other issues with the patch, so I'm trying to fix it in my own workspace now.  I'll let you know if it takes more than a few more minutes.  Sorry for the mixup about the return value.

In your patch, besides the format problem (patch -uN), it seems the necessary change to idl/Accessibility.idl was missing.
Comment 11 bill.haneman 2006-06-29 15:03:58 UTC
Created attachment 68169 [details] [review]
revised patch, provides Document interface in libspi and cspi.  Thanks Ariel for the initial version.

Ariel, please commit after revising the ChangeLog.  If I don't hear back from you in a couple of hours I'll commit myself.  Next time should go smoothly!  Thanks again.
Comment 12 Ariel Rios 2006-06-29 16:19:06 UTC
Created attachment 68174 [details] [review]
Patch with Changelog attached

Bill: I have added my Changelog to he patch, I tryed to edit on bugzilla but I got a "you don't have permission" msg. Anyway, here it is. George told me that because of IBM policy I cannot do the commits myself even if I have my cvs account.
Comment 13 bill.haneman 2006-07-11 15:15:21 UTC
I committed the patch (with a minor change to fix missing Accessibility_Document.idl in idl_DATA, in idl/Makefile.am) and ChangeLog last night.  It's in at-spi-1.7.8.

Thanks Ariel for the work!

Bill