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 639403 - evince doesn't implement AtkHyperText and AtkHyperLink a11y
evince doesn't implement AtkHyperText and AtkHyperLink a11y
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: 677348
 
 
Reported: 2011-01-13 09:57 UTC by Daniel Garcia
Modified: 2013-01-20 12:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
First atkhypertext implementation (25.99 KB, patch)
2011-01-17 11:15 UTC, Daniel Garcia
none Details | Review
AtkHypertext implementation (28.38 KB, patch)
2011-04-20 09:36 UTC, Daniel Garcia
none Details | Review
atkhypertext interface (2.03 KB, patch)
2011-04-21 09:08 UTC, Daniel Garcia
none Details | Review
Implementation of atkhyperlink and atkhypertext (20.70 KB, patch)
2011-04-21 09:09 UTC, Daniel Garcia
none Details | Review

Description Daniel Garcia 2011-01-13 09:57:48 UTC
Pdf documents can have links and evince treat them, but it's not implementing AtkHyperText.
Comment 1 Daniel Garcia 2011-01-17 11:15:03 UTC
Created attachment 178494 [details] [review]
First atkhypertext implementation

This patch implement AtkHypertext in ev-view-accessible object. To implement that I've created two new objects, ev-view-accessible-hyperlink and ev-view-accessible-hyperlink-impl.
Comment 2 Mario Sánchez Prada 2011-03-21 12:52:22 UTC
I see this patch is based in the first version of a similar one for WebKitGTK [1], proposed to fix bug 33785 [2]. The problem with that patch is that is obsolete and wrong, so that's why it didn't get accepted :-)... however there's a newer one which got integrated some time ago in wkgtk, so I guess you could be interested in taking a look to it to update this patch taking some ideas from that last version (which, among other things, doesn't use that ugly hash table):

https://bugs.webkit.org/attachment.cgi?id=72159&action=prettypatch

Hope this helps,
Mario

[1] https://bugs.webkit.org/attachment.cgi?id=71301&action=prettypatch
[2] https://bugs.webkit.org/show_bug.cgi?id=33785
Comment 3 Daniel Garcia 2011-04-20 09:36:38 UTC
Created attachment 186338 [details] [review]
AtkHypertext implementation

Fixing some details that was based on an old AtkHypertext patch to webkitgtk
Comment 4 Mario Sánchez Prada 2011-04-20 10:31:37 UTC
It looks to me like you're attaching three different patches through a single file in bugzilla, which is not a very convenient way IMHO to ask for review. 

Instead, if you want to keep those changes in different patches you should attach them separately, so every different change was easier to review.

Also I noticed that you have changed (renamed and/or removed), in PATCH 3/3, some code that you introduced as new in PATCH 2/3, which also adds some unnecessary complexity to the review process of this patch. For instance, you introduce a method ev_view_accessible_hyperlink_get_or_create() in patch 2/3 (using a hash table for internal purposes) that you just replace with another method, named  ev_view_accessible_hyperlink_new() (which doesn't use that hash table), in patch 3/3.

Thus, I think you certainly should at least squash those two last patches into a single one before asking for review over them.

Last, some extra nitpicking sorry :-)... I saw you credited the author (that is, me! :-)) of the original patch through lines like these in patch 3/3:

  diff --git a/libview/ev-view-accessible-hyperlink.h b/libview/ev-view-  accessible-hyperlink.h
  index 9ac45ac..dfadb74 100644
  --- a/libview/ev-view-accessible-hyperlink.h
  +++ b/libview/ev-view-accessible-hyperlink.h
  @@ -19,6 +19,11 @@
  * Boston, MA 02110-1301, USA.
  */
 
  +/*
  + * Based on WebKitGtk AtkHyperlink implementation by msanchez
  + * (msanchez@igalia.com)
  + *

I'd say that "by msanchez" is not very descriptive :-). "If I were the author", I think I'd strongly prefer my name instead. Something like "Mario Sanchez Prada" would probably work fine, I guess :-)

Wrapping up, if you could provide separate atachments for every patch and squash the last two ones together, that would be great for reviewing them.

Thanks!
Comment 5 Daniel Garcia 2011-04-21 09:08:42 UTC
Created attachment 186416 [details] [review]
atkhypertext interface
Comment 6 Daniel Garcia 2011-04-21 09:09:12 UTC
Created attachment 186417 [details] [review]
Implementation of atkhyperlink and atkhypertext
Comment 7 Daniel Garcia 2011-04-21 09:13:30 UTC
I've just splitted the patch in two, as Mario suggests for an easier review. The first one is the implementation of atkhypertext in ev-view-accessible object that does nothing, only function definition. And the second one is the real implementation, based on webkit implementation, creating two new atkobjects, ev-view-accessible-hyperlink and ev-iew-accessible-hyperlink-impl, which are used to implement atkhypertext interface.
Comment 8 Joanmarie Diggs (IRC: joanie) 2011-08-14 16:14:35 UTC
Ping. :-) Is this reviewable now? (Please and thank you in advance!)
Comment 9 Mario Sánchez Prada 2011-08-15 15:03:16 UTC
Sorry for forgetting about this for so long. Reviewed now and it looks good to me, although someone else from Evince (Carlos?) should approve the commit I guess.
Comment 10 Joanmarie Diggs (IRC: joanie) 2012-10-05 04:31:08 UTC
Time for my annual ping. :-)
Comment 11 Carlos Garcia Campos 2013-01-20 12:18:31 UTC
Started from scratch and pushed a couple of patches to git master, please, let me know if there's any issue