summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-04-08disable ViewPresentation action if document has no pagesmonsta1-1/+1
follow-up to 9c08159f6ce959f1aa0fc87da265854e9672365e - this action should be disabled when e.g. a truncated pdf is loaded
2018-04-08libdocument: Use gdk_pixbuf_get_from_surface()Carlos Garcia Campos1-62/+4
....instead of our own implementation origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-0&id=91a30f4
2018-04-08thumbnailer: Remove unused codeChristian Persch2-31/+0
The code to overlay an icon is unused since commit https://git.gnome.org/browse/evince/commit/?id=808285c origin commit: https://git.gnome.org/browse/evince/commit/?id=171918f
2018-04-05view: Fix page background rendering while loadingCarlos Garcia Campos2-0/+10
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=38528f9
2018-04-05libdocument: Deprecate misc_get_page_border_size()Carlos Garcia Campos1-0/+3
.... and misc_paint_one_page() origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=a610d49
2018-04-05view: Use a rendered frame instead of custom borderWilliam Jon McCann2-27/+55
So it can be styled with CSS. https://bugzilla.gnome.org/show_bug.cgi?id=653294 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=7a6b53a https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=4657961
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. https://bugzilla.gnome.org/show_bug.cgi?id=777992 origin commit: https://git.gnome.org/browse/evince/commit/?id=e95a4e3
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. https://bugzilla.gnome.org/show_bug.cgi?id=777992 origin commit: https://git.gnome.org/browse/evince/commit/?id=b34f357
2018-04-04libview: drop deprecated unneeded coderaveit651-3/+0
inspired by: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=a56186e
2018-04-04ev-loading-message: Remove unused variablesCarlos Garcia Campos1-4/+1
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=3fd4162
2018-04-02libview: fix text selection with mouse in annotation windowmonsta1-23/+32
taken from: https://github.com/GNOME/evince/commit/91ac78bc587eb2ac931136c9da9609b142410209
2018-03-27libview: fix build without epubraveit651-2/+2
Fixes https://github.com/mate-desktop/atril/issues/308
2018-03-26release 1.21.0v1.21.0raveit652-1/+40
2018-03-26shell: Don't dist generated filesChristian Persch1-2/+1
2018-03-26Disable view presentation if there is no document.Lubos Koudelka1-0/+1
otherwise atril crashes https://bugzilla.gnome.org/show_bug.cgi?id=685591 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=b4bf316
2018-03-26Allow changing the page of a presentationWilliam Jon McCann1-3/+24
https://bugzilla.gnome.org/show_bug.cgi?id=693749 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=53d6a3
2018-03-26libview: Fix goto window in presentation modeCarlos Garcia Campos1-1/+2
It wasn't correctly set as modal. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-2&id=987aab6
2018-03-26libview: avoid deprecated gdk_screen_get_monitorraveit651-4/+4
....in 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. https://bugzilla.gnome.org/show_bug.cgi?id=723431 origin commit: https://git.gnome.org/browse/evince/commit/?id=37c13b
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: https://git.gnome.org/browse/evince/commit/?id=90a258
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. https://bugzilla.gnome.org/show_bug.cgi?id=723431 origin commit: https://git.gnome.org/browse/evince/commit/?id=a612f8
2018-03-23tx: update config with branch specific resouresraveit651-2/+2
2018-03-22libview: use css to draw the background of presentationsraveit652-25/+32
With the recent changes in gtk+, widgets have to draw themselves, causing the current use of gdk_window_set_background_rgba to fail. https://bugzilla.gnome.org/show_bug.cgi?id=765557 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 https://bugzilla.gnome.org/show_bug.cgi?id=772390. origin commits: https://git.gnome.org/browse/evince/commit/?id=2b352b3 https://git.gnome.org/browse/evince/commit/?id=b3f49f4 Fixes https://github.com/mate-desktop/atril/issues/232
2018-03-22Move custom css to a file compiled as a gresourceCarlos Garcia Campos4-1/+38
origin commit: https://git.gnome.org/browse/evince/commit/shell?h=gnome-3-6&id=65fa4ff
2018-03-22shell: Use GResource for data filesChristian Persch8-29/+233
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=ba06a5e
2018-03-22toolbar-editor: Add methods to load from GResourceChristian Persch2-4/+69
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=8c240d9
2018-03-22previewer: Use GResource for data filesChristian Persch5-22/+41
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=45be486
2018-03-22build: Add configure check for glib-compile-resourcesChristian Persch1-2/+28
origin commit: https://git.gnome.org/browse/evince/commit/?id=119e6ac
2018-03-22update resource for translationsraveit651-203/+216
2018-03-22fix distcheckraveit652-4/+3
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. https://bugzilla.gnome.org/show_bug.cgi?id=769700 origin commit: https://git.gnome.org/browse/evince/commit/?id=f30aed7
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. https://bugzilla.gnome.org/show_bug.cgi?id=731046 origin commit: https://git.gnome.org/browse/evince/commit/?id=c0ecc95
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 https://bugzilla.gnome.org/show_bug.cgi?id=701302 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: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=62b1585 https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=5431595
2018-03-22Use GtkOverlay to show the loading messageCarlos Garcia Campos10-452/+332
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: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=035c1cb
2018-03-21shell: Remove unused marshalersChristian Persch2-12/+1
Since there was only the one, also remove the whole glib-genmarshal setup. If we ever need another non-stock marshaler, we'll just use the new glib generic marshaler. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=fe7f842
2018-03-21thumbnailer: Send error messages to stderrChristian Persch1-5/+5
Use g_printerr, not g_print. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=3b59d64
2018-03-21shell: Use GtkApplication to inhibit the screensaverChristian Persch10-654/+37
Remove TotemScrsaver copy, and use GtkApplication inhibition instead. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=612701f
2018-03-21shell: Port to GtkApplicationChristian Persch5-173/+177
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=b999bdd
2018-03-21shell: Use g_printerr instead of g_warningChristian Persch1-3/+3
These are really runtime errors, not warnings, so just use g_printerr. origin commit: https://git.gnome.org/browse/evince/commit/?id=adbed8b
2018-03-21daemon: Port to GApplicationChristian Persch1-127/+171
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=1b3d4dd
2018-03-21daemon: Use gdbus-codegen for the org.mate.atril.Daemon interfaceChristian Persch3-164/+185
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=1aac15e
2018-03-21shell: Use gdbus-codegen for the org.mate.atril.Window interfaceChristian Persch2-148/+71
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=5141dcb
2018-03-21shell: Use gdbus-codegen for the org.mate.atril.Application interfaceChristian Persch4-119/+149
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=c9aada8
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: https://github.com/linuxmint/xreader/commit/abb5060 https://github.com/linuxmint/xreader/issues/38
2018-03-19Save/restore context when getting colors for a different stateraveit652-0/+9
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. https://bugzilla.gnome.org/show_bug.cgi?id=755442 inspired by: https://git.gnome.org/browse/evince/commit/?id=1987f04 https://github.com/linuxmint/xreader/commit/e76a18d
2018-03-16epub: allow to save epub documentsraveit651-1/+5
inspired by: https://github.com/linuxmint/xreader/commit/63a28f https://github.com/linuxmint/xreader/issues/165
2018-03-16epub: fix loading epub thumbnailsMickael Albertus2-27/+27
origin commit: https://github.com/linuxmint/xreader/commit/6ed0ee1 Note: origin commit causes some serious build warnings, ......fixed.
2018-03-16Check legal boundaries of accessible pagesGermán Poo-Caamaño1-0/+7
Fixes https://github.com/mate-desktop/atril/issues/302 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 https://bugzilla.gnome.org/show_bug.cgi?id=735744 origin commits: https://git.gnome.org/browse/evince/commit/?id=feff531 https://git.gnome.org/browse/evince/commit/?id=e6e0d29
2018-03-15shell: fix menu-accel for inverted colorsraveit651-1/+1
fixes conflict with zoom_in
2018-03-15shell: add keypad accels for zoom_resetraveit654-0/+6