summaryrefslogtreecommitdiff
path: root/libview
AgeCommit message (Collapse)AuthorFilesLines
2018-04-03libview: 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-04-03libview: 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-04-03libview: 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-04-03libview: Fix shift+click text selectionmonsta1-0/+22
ported from e6672a875c89cfd81d4e54ae8b1a8a834eb6fe8b for 1.18 branch
2018-04-03libview: fix text selection with mouse in annotation windowmonsta1-23/+32
taken from: https://github.com/GNOME/evince/commit/91ac78bc587eb2ac931136c9da9609b142410209
2018-04-02libview: fix occasional black color of annotation window bordermonsta1-2/+0
and remove redundant gtk_container_set_border_width call taken from: https://github.com/GNOME/evince/commit/204d543efd35f0925b537a27c088c3d0d7a319b2
2018-04-02libview: fix annotation window focus change after creationNelson Benitez Leon1-9/+13
Be able to start entering text right after selecting or creating an annotation, also hide text cursor when window goes unfocused (backdrop state). https://bugzilla.gnome.org/show_bug.cgi?id=668446 taken from: https://git.gnome.org/browse/evince/commit/?id=fc8fe57
2018-04-02libview: Fix focus on ev_annotation_windowJosé Aliste1-21/+0
Make annotation windows always accept input focus. Based on patch by Florian Echtler. https://bugzilla.gnome.org/show_bug.cgi?id=668446 Taken from: https://git.gnome.org/browse/evince/commit/?id=24c1029
2018-04-02libview: Don't change the font color of the annotation windowCarlos Garcia Campos1-1/+0
We were using the annotation color, but it should only be used for the background of the annotation window. https://bugzilla.gnome.org/show_bug.cgi?id=677471 taken from: https://git.gnome.org/browse/evince/commit/?id=792d878
2018-04-02libview: setting annotation window icons sizesraveit651-16/+13
After a gtk update, the sizes of the icons on the annotation window (close and resize handles) are 48x48. This patch fixes this by using GtkIconTheme to force the loading of the icon on a different size than the file taken from: https://git.gnome.org/browse/evince/commit/?id=63d0b4b
2018-03-27libview: fix build without epubraveit651-2/+2
Fixes https://github.com/mate-desktop/atril/issues/308
2018-03-22epub: fix loading epub thumbnailsMickael Albertus1-24/+23
origin commit: https://github.com/linuxmint/xreader/commit/6ed0ee1 Note: origin commit causes some serious build warnings, ......fixed.
2017-11-03EvPixbufCache: Handle backends that don't render a selectionOwen W. Taylor1-2/+4
Handle the case where ev_selection_render_selection() doesn't actually render a surface - this happens when a backend doesn't implement render_selection(). https://bugzilla.gnome.org/show_bug.cgi?id=723431 origin commit: https://git.gnome.org/browse/evince/commit/?id=c5a338c fixes https://github.com/mate-desktop/atril/issues/283
2017-08-15fix runtime warnings caused by previous HDPI commitraveit651-1/+1
2017-08-15Take monitor scale factor into account when calculating zoom.Matthew Petroff1-1/+3
https://github.com/linuxmint/xreader/commit/c47a1f4
2017-08-15Add hi-dpi support for main view.Matthew Petroff2-22/+74
Based on Evince commits 8b965e769808815df9c75a10a0e4972c0904d26a and a612f809e4e23d88a661a9604ce84f332189a658. https://github.com/linuxmint/xreader/commit/4eccf6b
2017-08-15libview: save changes to a dropdown in an embedded formraveit651-2/+2
This is a regression from commit https://github.com/mate-desktop/atril/commit/f8aec90 see: https://github.com/linuxmint/xreader/commit/46298df https://github.com/linuxmint/xreader/issues/12
2017-04-18build: require cairo >= 1.10.0 and drop some old codemonsta1-11/+0
2017-03-07ev-view-accessible: Fix some coding style issuesraveit651-23/+24
taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=23048af
2017-03-07ev-view-accessible: Add helper function to get text before, at or after offsetraveit651-94/+68
To avoid duplicated code. Taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=0897a7d
2017-03-07libview: Make EvLinkAccessible implement AtkActionraveit651-1/+53
taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=0291193
2017-03-07libview: Implement AtkHypertext interfaceraveit654-9/+450
https://bugzilla.gnome.org/show_bug.cgi?id=639403 taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=6c1d1a2
2017-03-07ev-view: Inlcude ev-jobs in ev-view.hraveit651-0/+1
taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=751df481af5d6148302c047de948dd514888c578
2017-03-07ev-view-accessible: Use _ev_view_transform_doc_rect_to_view_rect()raveit651-32/+22
In ev_view_accessible_get_character_extents(). taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=ae1ace1
2017-03-07ev-view-accessible: Use _ev_view_transform_view_point_to_doc_point()raveit651-29/+21
In ev_view_accessible_get_offset_at_point(). taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=28bd405
2017-03-07libview: Rename EvView coordinate transformation functionsraveit652-60/+66
and make them public internally taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=d4e458c
2017-03-07a11y: Do not use AtkFactory to create the EvViewAccessibleraveit654-159/+75
https://bugzilla.gnome.org/show_bug.cgi?id=685828 taken from: https://git.gnome.org/browse/evince/commit/?id=37c58de
2017-02-20First page should not reloadednanxiongchao2-5/+6
For the displayed page, do not reload every time, should be displayed immediately Tested successfully on Loongson 3A2000 with fedora25(mips64el distribution).
2016-11-23move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta11-941/+17
and require caja >= 1.17.1
2016-11-23fix indent a bitmonsta2-12/+12
2016-07-28add some missing contextual information for translatorsmonsta1-1/+3
ported from: https://git.gnome.org/browse/evince/commit/?id=544d9b4a73011c1e5a7b1d37b05a94f761d0dc03
2016-07-28libview: remove useless always-false conditionmonsta1-4/+0
from https://git.gnome.org/browse/evince/commit/?id=ebb480a2359cf9ce88cafd7babb034d2387d849c
2016-07-22Split dual mode option into dual mode with odd and even pages on the leftraveit652-26/+22
2016-07-22document-model: Make dual mode and dual mode odd page left mutally exclusiveraveit651-0/+10
The can't be set at the same time, but they can be both unset. taken from: https://git.gnome.org/browse/evince/commit/?id=39106f4
2016-07-22Use document-send icon for Send To actionraveit652-1/+3
taken from: https://git.gnome.org/browse/evince/commit/?id=fff0e69
2016-07-03ev-view: add missing semicolon to gtk-doc commentraveit651-1/+1
g-ir-scanner will emit a warning otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=691354 taken from: https://git.gnome.org/browse/evince/commit/?id=8ee8b7e
2016-07-03GTK+-3 libview: Fix compiler warningsraveit652-0/+13
Add dummy handling of the GDK_SCROLL_SMOOTH direction. taken from: https://git.gnome.org/browse/evince/commit/?id=231445d
2016-07-03GTK+-3 ev-view-presentation: Fix a crash during the build with introspection ↵raveit651-15/+22
enabled Using GI_SCANNER_DEBUG=save-temps, the temporal files remained. It has been suggested that calling gtk_style_context_add_provider_for_screen() should, inside a g_once_init(), be in the class's _init() (not class_init()) hook. https://bugzilla.gnome.org/show_bug.cgi?id=726812 taken from: https://git.gnome.org/browse/evince/commit/?id=a203fc1
2016-07-03ev-view: Fix compile warningraveit651-1/+1
taken from: https://git.gnome.org/browse/evince/commit/?id=4657961
2016-07-03GTK+-3.20 ev-view: Update EvView style to use CSS node nameraveit651-0/+4
2016-07-03Gtk+-3 ev-view: Set a style class on the view so it can be more easily styledraveit651-0/+15
And share the style we use for other content views. https://bugzilla.gnome.org/show_bug.cgi?id=653294 taken from: https://git.gnome.org/browse/evince/commit/?id=a56186e call gtk_style_context_set_background() Even if we now render a background in _draw() with gtk_render_background, using gtk_style_context_set_background() in realize makes the backing GdkWindow not being completely transparent, which enables GTK to apply optimizations during the paint cycle. The result is, especially in clutter-gtk applications such as Documents, scrolling in a document page is much smoother. taken from: https://git.gnome.org/browse/evince/commit/?id=1785924
2016-07-03GTK+-3 ev-view-private: Use GtkContainer and GtkContainerClass in EvView and ↵raveit651-2/+8
EvViewClass https://bugzilla.gnome.org/show_bug.cgi?id=685362 taken from: https://git.gnome.org/browse/evince/commit/?id=9c007a9
2016-07-03GTK+-3 ev-view: Make EvView inherit from GtkContainer instead of GtkFixedraveit652-25/+217
It makes handling child widgets easier. Based on patch by José aliste, see bug http://bugzilla.gnome.org/show_bug.cgi?id=573748 taken from: https://git.gnome.org/browse/evince/commit/?id=de237e0
2016-06-29libview: Add an option to show odd pages on the left in dual moderaveit652-28/+34
Added a dual_even_left flag to EvView. When this flag is false, odd pages appear left instead of even ones. All the logic has been added to get_dual_even_left(). The patch is a bit more involved because build_height_to_page() was computing dual_even_left directly instead of calling get_dual_even_left(). Rather than implementing the logic twice, we replaced its EvDocument argument by its enclosing EvView in order to be able to call get_dual_even_left() directly. This function was renamed into ev_view_build_height_to_page_cache() to reflect it is now a view method. See http://bugzilla.gnome.org/show_bug.cgi?id=444587 taken from: https://git.gnome.org/browse/evince/commit/?id=f065e36
2016-06-29libview: Add dual-odd-left property to EvDocumentModelraveit652-0/+42
taken from: https://git.gnome.org/browse/evince/commit/?id=1346a98
2016-06-29GTK+-3 ev-view-presentation: Fix a unused-but-set-variable compile warningraveit651-0/+4
taken from: https://git.gnome.org/browse/evince/commit/?id=0981802
2016-06-29GTK+-3: Use ev_document_misc_get_pointer_position() instad of deprecated ↵raveit652-2/+42
gtk_widget_get_pointer()
2016-06-24libdocument: Make EvSourceLink boxed.raveit651-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=635705 taken from: https://git.gnome.org/browse/evince/commit/?id=0ac0898
2016-06-24document-model: annotate ev_document_model_get_document()raveit651-0/+8
So that introspected bindings can call into this method. https://bugzilla.gnome.org/show_bug.cgi?id=662720 taken from: https://git.gnome.org/browse/evince/commit/?id=a6b50f1
2016-06-24GTK+-3: Use GtkGrid instead of GtkTableraveit651-0/+29
taken from: https://git.gnome.org/browse/evince/commit/?id=da8f31e