summaryrefslogtreecommitdiff
path: root/libview
AgeCommit message (Collapse)AuthorFilesLines
2017-12-10WidthOfScreen and HeightOfScreen implementationPablo Barciela2-14/+8
This commit reverts: https://github.com/mate-desktop/atril/commit/d9fffe2dc0e33d6777099c18635b7b75f54d3d35 And it applies an alternative to fix the deprecated functions: gdk_screen_get_width gdk_screen_get_height
2017-11-27ev-link-accessible: Improve efficiency of methods to get start and end indicesJoanmarie Diggs1-5/+22
* Store the value to eliminate unnecessary iteration through character rects * Calculate the end index forward from the start index rather than backwards from the last character on the page https://bugzilla.gnome.org/show_bug.cgi?id=732340 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=1a6c9df
2017-11-27Expose form fields as AtkObject children of the pageJoanmarie Diggs6-9/+314
https://bugzilla.gnome.org/show_bug.cgi?id=728475 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=d707486
2017-11-27Expose images as AtkObject children of the pageJoanmarie Diggs4-2/+272
https://bugzilla.gnome.org/show_bug.cgi?id=728475 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=aea890c
2017-11-27Expose links as AtkObject children of the pageraveit652-1/+224
https://bugzilla.gnome.org/show_bug.cgi?id=728475 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=004b199
2017-11-27ev-view-accessible: Add a method to determine if a given doc rect is showingJoanmarie Diggs2-0/+29
The Accessibility code needs to know this to set and update ATK_STATE_SHOWING. https://bugzilla.gnome.org/show_bug.cgi?id=728475 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=5c2ce4e
2017-11-27ev-page-cache: Add method to check if a given page has been cachedJoanmarie Diggs2-0/+16
The Accessibility code will expose child objects (links, images, form fields) of the page, but can only do so after that page has been cached. https://bugzilla.gnome.org/show_bug.cgi?id=728475 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=a898d96
2017-11-27libview: Update the caret cursor when jumping to a find resultJoanmarie Diggs1-0/+3
https://bugzilla.gnome.org/show_bug.cgi?id=728996 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=fc031f7
2017-11-27libview: Update ATK_STATE_SHOWING when the visible page range changesJoanmarie Diggs3-0/+37
https://bugzilla.gnome.org/show_bug.cgi?id=728664 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=110a98a https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=c4e98b3
2017-11-27libview: Implement AtkComponent for pagesJoanmarie Diggs3-0/+79
https://bugzilla.gnome.org/show_bug.cgi?id=728673 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=7d1bf5a
2017-11-27libview: Fix shift+click text selectionJoanmarie Diggs1-7/+16
https://bugzilla.gnome.org/show_bug.cgi?id=728189 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=7cf4c80
2017-11-27a11y: ensure text cached when you request an EvPageAccessibleAlejandro Piñeiro3-0/+22
https://bugzilla.gnome.org/show_bug.cgi?id=724965 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=b5fc924
2017-11-27a11y: managing atk states on EvPageAccessibleAlejandro Piñeiro3-0/+97
This includes: * Implements ref_state_set on EvPageAccessible * Notify FOCUSED state changes https://bugzilla.gnome.org/show_bug.cgi?id=724965 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=c421a90
2017-11-27a11y: add if applies ATK_RELATION_FLOWS_TO/FROM on EvPageAccessibleAlejandro Piñeiro3-1/+58
https://bugzilla.gnome.org/show_bug.cgi?id=724965 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=f6ae6b7
2017-11-27a11y: move AtkHyperText implementation from EvViewAccessible to EvPageAccessibleAlejandro Piñeiro4-163/+135
https://bugzilla.gnome.org/show_bug.cgi?id=724965 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=750f20d
2017-11-27a11y: move AtkText implementation from EvViewAccessible to EvPageAccessibleAlejandro Piñeiro3-738/+695
https://bugzilla.gnome.org/show_bug.cgi?id=724965 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=2a458a9
2017-11-27a11y: expose EvPageAccessible as children of EvViewAccessibleAlejandro Piñeiro1-7/+70
https://bugzilla.gnome.org/show_bug.cgi?id=724965 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=c1cdf84
2017-11-27a11y: new EvPageAccessibleAlejandro Piñeiro3-0/+222
Basic skeleton for a new accessible class, that represents each individual page. https://bugzilla.gnome.org/show_bug.cgi?id=724965 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=c489d3f
2017-11-27libview: Fix some broken aspects EvViewAccessible text supportJoanmarie Diggs3-173/+230
* Stop using GtkTextBuffer: It was a hack more than a real solution * Fix setting and clearing of selection via AtkText for the current page * Strip newline chars out of the sentence strings: Newlines break TTS prosody * Add some logic to heuristically distinguish soft and hard returns https://bugzilla.gnome.org/show_bug.cgi?id=725003 https://git.gnome.org/browse/evince/commit/?h=gnome-3-12&id=03afe27
2017-11-27libview: Take caret navigation into account when getting AtkHyperlink indicesJoanmarie Diggs1-2/+8
https://bugzilla.gnome.org/show_bug.cgi?id=726310 https://git.gnome.org/browse/evince/commit/?h=gnome-3-12&id=5e4d9f8
2017-11-27a11y: cleaning implementation for atk_text_get_caret_offsetAlejandro Piñeiro1-15/+2
If caret access is not enabled (or in any other error) caret_offset should be -1, and not one based on the gtktextbuffer. Based on a previous patch by Joanmarie Diggs https://bugzilla.gnome.org/show_bug.cgi?id=701746 https://git.gnome.org/browse/evince/commit/?h=gnome-3-12&id=3b63aa8
2017-11-27a11y: fixing implementation for atk_text_set_caret_offsetAlejandro Piñeiro1-8/+5
It uses the recently added ev_view_set_caret_cursor_position https://bugzilla.gnome.org/show_bug.cgi?id=701746 https://git.gnome.org/browse/evince/commit/?h=gnome-3-12&id=912d9d5
2017-11-27view: set_caret_cursor_position should emit "cursor-moved" if appliesAlejandro Piñeiro1-0/+3
https://bugzilla.gnome.org/show_bug.cgi?id=701746 from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-12&id=9809525
2017-11-27Remove support for deprecated atk_text_get_text_{before,after}_offset()Joanmarie Diggs1-28/+0
See https://mail.gnome.org/archives/commits-list/2013-June/msg04117.html for the associated commit to ATK. https://bugzilla.gnome.org/show_bug.cgi?id=725162 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-12&id=b327461
2017-11-27a11y: implement AtkDocument on EvViewAccessibleAlejandro Piñeiro1-0/+54
https://bugzilla.gnome.org/show_bug.cgi?id=719507 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-12&id=c5c528d
2017-11-27a11y: with caret navigation enabled, accessibility current page is cursor pageAlejandro Piñeiro1-16/+27
https://bugzilla.gnome.org/show_bug.cgi?id=711862 https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=b0bf4b6
2017-11-27ev-view-accessible: call document_changed_cb when setting the modelJoanmarie Diggs1-0/+6
When an application embedding an EvView reuses that view to display a new document, the content of last page viewed from the previous document is exposed to assistive technologies. In order to get the content of the current document, the user must change pages. This problem resulted from the assumption that the document would be set after the model was set. https://bugzilla.gnome.org/show_bug.cgi?id=709375 https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3d06f42
2017-11-27ev-view-accessible: Fix a crash in ev_view_accessible_get_linkAntia Puentes1-0/+6
Check array limits returning early if the link index is out of range. https://bugzilla.gnome.org/show_bug.cgi?id=705155 https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=7eac53f
2017-11-27ev-view-accessible: Clear the cached data when the current pageAntia Puentes3-22/+78
or document is updated. https://bugzilla.gnome.org/show_bug.cgi?id=704621 https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=d71e0d7
2017-11-02fix crash when selecting text in djvu documentsmonsta1-2/+4
fixes https://github.com/mate-desktop/atril/issues/283 taken from: https://git.gnome.org/browse/evince/commit/?id=c5a338c00253aeb88901c574ea150b3bd83634e7
2017-09-06libview: Add ev_view_set_caret_cursor_positionCarlos Garcia Campos2-0/+21
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=b2597d
2017-09-06libview: Update the current page also when pending scroll is to find a locationCarlos Garcia Campos1-1/+2
Pending scroll SCROLL_TO_FIND_LOCATION, can jump to another page if the location is in a different page. We should change the current page in the model in this case too. Origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=8709b39
2017-09-06libview: Do not schedule a redraw when enabling/disabling caret navigationCarlos Garcia Campos1-1/+3
If the cursor is not in a visible page origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=c187766
2017-09-06libview: Stop caret cursor blinking when cursor is not in a visible pageCarlos Garcia Campos1-0/+14
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=570927e
2017-09-06libview: Add ev_view_supports_caret_navigation()Antia Puentes2-0/+16
https://bugzilla.gnome.org/show_bug.cgi?id=702079 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=6127a36
2017-09-06ev-link-accesible: Return the index/offset after the last character in the linkJoanmarie Diggs1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=704616 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=830dd4e
2017-09-06libview: Fix selections starting/ending in page marginsCarlos Garcia Campos1-0/+8
Do not take into account the page area borders when looking the pages where the selection starts or ends. This allows to start a new selection from a page margin and prevents selection from disappearing when selecting multiple pages and releasing the mouse between two pages. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=4969e2b
2017-09-06libview: Reduce the pages to scan for selectionsCarlos Garcia Campos1-26/+58
when selection starts and ends at the same point We can use the current page range in this case, since this will only happen when starting a new word/line selection. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=e92c98f
2017-09-06libview: Remove unused rectangle selection modeCarlos Garcia Campos3-65/+5
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=848459e
2017-09-06libview: Rework ev_view_accessible_get_selectionAntia Puentes3-19/+105
Actually return the text and offset range of the selected text in the current page. https://bugzilla.gnome.org/show_bug.cgi?id=704335 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=a178d26
2017-09-06libview: do not redraw the whole view when caret cursor movesCarlos Garcia Campos1-16/+33
Invalidate the previous and new regions instead. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=e39ac99
2017-09-06libview: Update the cursor area after positioning the cursor when moving ↵Carlos Garcia Campos1-0/+3
between lines origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=074dfec
2017-09-06ev-view-accessible: Fix ev_view_accesssible_get_n_selectionsAntia Puentes1-14/+5
Return 1 when there's selected text since evince only supports one selection, and 0 if there isn't selected text. https://bugzilla.gnome.org/show_bug.cgi?id=704396 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3a9d081
2017-09-06ev-view-accessibl: Fix get_caret_offset when the caret navigation is enabledAntia Puentes1-0/+10
https://bugzilla.gnome.org/show_bug.cgi?id=704399 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=32a67a6
2017-09-06libview: Use error bell and return early when moving between lines failsCarlos Garcia Campos1-6/+11
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3666096
2017-09-06libview: do not schedule a resize in ensure_rectangle_is_visibleCarlos Garcia Campos1-2/+0
It will be scheduled if the adjustments change. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=0597aa7
2017-09-06libview: Stop the cursor blink when there are selections activeCarlos Garcia Campos1-1/+5
Even though the caret cursor is not shown while there are active selections we don't want the cursor blink timeout running and scheduling redraws. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=41c660f
2017-09-06libview: Deprecate ev_view_scroll in favor of g_signal_emit_by_nameCarlos Garcia Campos1-0/+1
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=4be9bc1
2017-09-06libview: Add more scroll key bindings to EvViewCarlos Garcia Campos1-0/+20
All keybindings currently used by EvWindow. Having them in the view makes them available to other EvView users and they can be overriden by the themes. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=660b741 Fix Return key bidings Do not use the helper function for keypad keys since Return doesn't have a key un the keypad. https://bugzilla.gnome.org/show_bug.cgi?id=704154
2017-09-06libview: Fix second parameter type of scroll signal for h, j, k and l bindingsCarlos Garcia Campos1-8/+12
We were still using G_TYPE_BOOLEAN instead of GTK_TYPE_ORIENTATION. It worked because both are integers in the end. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f9a65d4