path: root/libview
AgeCommit message (Collapse)AuthorFilesLines
9 daysCheck whether the document page failed to renderrbuj2-1/+18
2020-08-23ev-pixbuf-cache: Remove -Wtype-limits warningsrbuj1-6/+6
2020-08-16Remove unused macrosPablo Barciela3-11/+0
2020-06-18Re-enable highlight_find_resultsOz N Tiram2-8/+3
2020-06-18Fix -Wunused-function warnings caused by --enable-synctex=noOz N Tiram2-1/+12
2020-06-18Make synctex optionalOz Tiram1-1/+8
Not everyone who reads PDF's is necessarily a LaTeX user. These changes allow users to install atril without the huge bagage of tex-live on systems where synctex isn't provided as a stand alone library.
2019-12-08libview: fixing memory leakGiselle Reis1-22/+21
The memory leak was caused by a g_signal_connect which was never disconnected. This patch makes sure the signal is disconnected and the job is cancelled before creating another rendering job. It additionally introduces a helper function to cleanly finalize the job. origin commit:
2019-12-08Revert "First page should not reloaded"raveit652-6/+5
This reverts commit 00fad2c0d0fcdade570a08f046e85a4558f1fc0c. and fixes
2019-11-28avoid redundant redeclarationsPablo Barciela4-33/+0
2019-11-23libview: Reset `pressed_button` when starting Drag and DropMartin Wimpress1-0/+2
If view->pressed_button is left set, when the Drag and Drop operation completes, Atril will act as if it is still in a selection event. Adapted from:
2019-08-21ev-view: Remove unused variables and assignmentrbuj1-3/+0
2019-08-19view-presentation: Use monitor instead of screenraveit651-4/+30
to determine window size. Replace {Width/Hight}OfScreen which works only with X11
2019-08-16ev-link-accessible: avoid 'g_type_class_add_private'Pablo Barciela1-3/+2
2019-08-16ev-timeline: avoid 'g_type_class_add_private'Pablo Barciela1-41/+38
2019-08-16ev-form-field-accessible: avoid 'g_type_class_add_private'Pablo Barciela1-3/+2
2019-08-16ev-image-accessible: avoid 'g_type_class_add_private'Pablo Barciela1-3/+2
2019-08-16ev-transition-animation: avoid 'g_type_class_add_private'Pablo Barciela1-40/+37
2019-08-16ev-page-accessible: avoid 'g_type_class_add_private'Pablo Barciela1-3/+2
2019-08-16ev-view-accessible: avoid 'g_type_class_add_private'Pablo Barciela1-5/+3
2019-08-10DPI: compute monitor resolution or get screen resolutionrbuj2-20/+23
2019-08-01Fix build warning on marshallingraveit651-1/+1
Replace deprecated --header --body options inspired by:
2019-07-01Remove trailing whitespacesLaurent Napias14-266/+266
2019-06-26Bump Cairo version to 1.14.0Matthew Petroff2-14/+0
such that hi-dpi conditionals aren't needed. origin commit:
2018-10-20EvView: Fix cursor movement when logical and visual line order differsColomban Wendling1-0/+10
Make sure not to move the caret in the wrong direction when restoring the visual line X offset, in case the visual and logical order is slightly different. The algorithm used to move the cursor on the next line and restore the X position across lines works as follows: 1. Move `cursor_offset` to the next line by incrementing it until reaching a line break; 2. Find the Y coordinate corresponding to the new cursor_offset; 3. Find the text closest to the new Y coordinate and the previous X coordinate. 4. Move cursor_offset to the text at this new (X, Y) location. The issue lies in step 3, which can find a position on a different line than expected in case several lines have a nearly the same Y position. Evince references: * * *
2018-07-18presentation: avoid deprecated 'gtk_style_context_set_background'Pablo Barciela1-3/+0
2018-05-10libview: replace deprecated gdk_flushraveit652-4/+8
2018-04-05view: Fix page background rendering while loadingCarlos Garcia Campos1-0/+4
origin commit:
2018-04-05view: Use a rendered frame instead of custom borderWilliam Jon McCann1-27/+37
So it can be styled with CSS. origin commit:
2018-04-05a11y: Return correct start and end offsetsJason Crain1-6/+9
This modifies ev_page_accessible_get_range_for_boundary to ensure that the start and end offsets it returns are within the allowed range. origin commit:
2018-04-05a11y: Fix crash with Orca screen readerJason Crain1-1/+1
ev_page_accessible_get_substring gets called with out of bounds values leading to a crash. Clamp start_offset to a valid range. origin commit:
2018-04-04libview: drop deprecated unneeded coderaveit651-3/+0
inspired by:
2018-04-02libview: fix text selection with mouse in annotation windowmonsta1-23/+32
taken from:
2018-03-27libview: fix build without epubraveit651-2/+2
2018-03-26Allow changing the page of a presentationWilliam Jon McCann1-3/+24 origin commit:
2018-03-26libview: Fix goto window in presentation modeCarlos Garcia Campos1-1/+2
It wasn't correctly set as modal. origin commit:
2018-03-26libview: avoid deprecated gdk_screen_get_monitorraveit651-4/+4 ev-view-presentation This was introduced again in previous commit.
2018-03-26EvPresentationView: Render correctly on hi-dpi displaysOwen W. Taylor1-13/+48
Create rendering jobs with a scale that incorporate the scale factor of the widget, and then use cairo_surface_set_device_scale() to make the resulting surfaces render at the correct size. Handle changes to the scale factor both for the cached surfaces, and also for the monitor dimensions, which are reported in scaled coordinates. origin commit:
2018-03-26libview: Fix g_return condition in set_device_scale_on_surface()Carlos Garcia Campos1-1/+1
Fail when device scale is not 1 if hidpi is not available, we were doing the opposite. origin commit:
2018-03-26EvView: render correctly on hi-dpi displaysOwen W. Taylor2-7/+20
Make EvPixbufCache generate surfaces with extra resolution based on gtk_widget_get_scale_factor(). Handle cairo surfaces with a device scale in ev_view_draw(). Trigger an update of the pixbuf cache when the scale factor changes. origin commit:
2018-03-22libview: use css to draw the background of presentationsraveit651-25/+16
With the recent changes in gtk+, widgets have to draw themselves, causing the current use of gdk_window_set_background_rgba to fail. view: Redraw ev-view-presentation when setting normal and black mode. The black and normal mode are the same from the CSS point of view. The difference is that in the draw function the page is not drawn in black mode. Hence, we need to explicitly queue a redraw in these cases. Since setting the white mode add a CSS class, this queues the redraw for us. Fixes origin commits: Fixes
2018-03-22libview: Check number of pages when processing button eventsMarek Kasik1-1/+1
Check whether there are some pages in the opened document when processing button events to avoid crash. origin commit:
2018-03-22libview: Add check for pageless documents to ev_view_accessible_focus_changedJoanmarie Diggs1-1/+1
Without this check, Evince will crash when opening a document that, for whatever reason, has no pages. origin commit:
2018-03-22libview: Check number of pages on ev_view_document_changed_cbGermán Poo-Caamaño1-2/+5
Fix crash on corrupted PDF with no pages. Thanks to Juha Kylmänen from OUSPG who were testing robutness. (CVE-2013-3718). libview: Fix warning on ev_view_document_changed_cb There was an introduction of a warning when fixing the bug If ev_view_document_changed_cb () is emitted when there is no previous document, the check fails. This patch change the order of the condition checks. origin commits:
2018-03-22Use GtkOverlay to show the loading messageCarlos Garcia Campos5-444/+33
Remove the EvLoadingWindow from libview and move the implementation to the shell using a EvLoadingMessage widget and GtkOverlay. EvView has now a is-loading property that allows the users to implement their own loading notification system. This fixes several realted to the loading window. origin commit:
2018-03-19libview: save inverted colors in a documentPiiit1-0/+3
The web-view callback for inverted colors got called, and if it did not find a web-view open it defaulted to FALSE for inverted colors. origin commit:
2018-03-19Save/restore context when getting colors for a different stateraveit651-0/+7
Getting colors for a state different from the current state of the corresponding widget without saving the context might trigger an invalidation and a redraw. Because this was happening from the draw function this resulted in a redraw loop and constant high CPU usage. This could be triggered by selecting text or searching. inspired by:
2018-03-16epub: fix loading epub thumbnailsMickael Albertus1-24/+23
origin commit: Note: origin commit causes some serious build warnings, ......fixed.
2018-03-16Check legal boundaries of accessible pagesGermán Poo-Caamaño1-0/+7
Fixes Keep the accessible view end page under the limits of the document. Sometimes when a document is reloaded, it may have less pages making the end page higher than the actual number of pages. Fix end_page reset after reload a page When a document is reloaded, and the accessible end_page is higher than the number of pages, it must be re-initialized to the number of pages minus one because it refers to elements in an array. Fix origin commits:
2018-03-15Add zoom resetLars Mueller4-0/+20
origin commit:
2018-02-16avoid deprecated GtkStockPablo Barciela1-1/+1