summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-08-20ev-document-misc.c: avoid deprecated gdk_screen_get_width/height_mmZenWalker1-0/+9
Fixes #177
2017-08-20avoid deprecated gdk_screen_get_width/heightZenWalker4-9/+27
2017-08-20dvi: Mitigate command injection attacks by quoting filenameTobias Mueller1-2/+4
With commit 1fcca0b8041de0d6074d7e17fba174da36c65f99 came a DVI backend. It exports to PDF via the dvipdfm tool. It calls that tool with the filename of the currently loaded document. If that filename is cleverly crafted, it can escape the currently used manual quoting of the filename. Instead of manually quoting the filename, we use g_shell_quote. https://bugzilla.gnome.org/show_bug.cgi?id=784947 origin commit: https://git.gnome.org/browse/evince/commit/?id=350404c
2017-08-20mdvi-lib: Fix compilation warning (const-correctness)Tobias Mueller1-1/+1
const char accessed via pointer to char. backend/dvi/mdvi-lib/fontmap.c: In function ‘mdvi_init_fontmaps’: backend/dvi/mdvi-lib/fontmap.c:725:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] config = kpse_cnf_get("mdvi-config"); ^ https://bugzilla.gnome.org/show_bug.cgi?id=784912 origin commit: https://git.gnome.org/browse/evince/commit/?id=e3dccc1
2017-08-19libmisc: set width chars for page labelraveit651-0/+6
and use xalign fixes https://github.com/mate-desktop/atril/issues/275
2017-08-18libview: Scroll small pages in non-continuous modeMarek Kasik1-14/+82
Check whether currently shown page fits actual view and allow user to scroll to previous/next page in that case (also in Dual page mode). Allow also scrolling if only one axis fits the view and the event happenned in the same axis. https://bugzilla.gnome.org/show_bug.cgi?id=562257 origin commit links: https://git.gnome.org/browse/evince/commit/?id=077bab6 https://git.gnome.org/browse/evince/commit/?id=45f527e
2017-08-18libview: Enable GDK_SMOOTH_SCROLL events for viewXiao-Long Chen2-21/+52
This enables the smooth/kinetic scrolling support found in GTK+ 3.3.18 with the document view, and handles them for the Ctrl+scroll, Shift+scroll, and non-continuous best-fit mode scrolling cases. https://bugzilla.gnome.org/show_bug.cgi?id=674098 origin commit link: https://git.gnome.org/browse/evince/commit/?id=34d0d5d
2017-08-18libview: Ctrl+mouse wheel zoom should be pointer-centered, not window-centeredClement Lefebvre2-3/+21
https://bugzilla.gnome.org/show_bug.cgi?id=731669 Upstream commit, Frédéric Moenne-loccoz committed with Carlos Garcia Campos on 15 Feb 2015: https://github.com/GNOME/evince/commit/9d9e14dfa9ae782e879961b7307f55b41b2a60b3
2017-08-18ev-view: Add pan gesture to switch pageClement Lefebvre2-0/+80
This only applies on non-continuous mode, and the page fits with no horizontal scrolling. The gesture is actually connected to the parent GtkScrolledWindow (tracked through hierarchy events), so it is able to interact with kinetic scrolling gestures there, and cancel those if the pan gesture is recognized. Upstream commits by garnacho on 6 May and 15 Aug 2014: https://github.com/GNOME/evince/commit/afc50e7e07c135e22137a33cbf9913713692bf49 https://github.com/GNOME/evince/commit/2280b09ec71ee88eeeb7fd8d02adb2985d17a765
2017-08-18ev-view: explicitly require a GtkScrolledWindow as the parent widgetClement Lefebvre1-0/+11
This is implicitly needed in a few places in code, so make the requirement explicit on ::parent-set. Upstream commit by garnacho on 11 Aug 2014: https://github.com/GNOME/evince/commit/6288e48
2017-08-18ev-view: Add pinch/zoom gesture to handle document zoomingClement Lefebvre3-10/+64
This is delegated on a GtkGestureZoom. When triggered, the document will be zoomed based on the distance changes between both fingers. When the gesture is not active, regular event handling (text selection, clicking, etc...) will happen. Upstream commit from garnacho on 28 Mar 2014: https://github.com/GNOME/evince/commit/36c7f21
2017-08-15release 1.19.1v1.19.1raveit652-13/+46
2017-08-15sync with transifexraveit65105-20484/+21446
2017-08-15sidebar-thumbnails: fix unwanted move to start after fullscreenNelson Benitez Leon1-0/+20
After activating or deactivating fullscreen mode, the sidebar window is automatically moved to its start, while scroll bar stays in its original position. The sidebar window move is unwanted and unsolicited, and it's most probably caused by GtkIconView or GtkScrolledWindow bug. Workaround this by having the sidebar sync its window with the current scroll position after a fullscreen operation, do that by just emitting a "value-changed" on the current scroll adjustment. https://bugzilla.gnome.org/show_bug.cgi?id=783404 origin commit: https://git.gnome.org/browse/evince/commit/?id=2bfb8fa
2017-08-15sidebar-thumbnails: preload one extra visible range while scrollingNelson Benitez Leon1-0/+8
Preload both before and after current visible scrolling range, the same amount of thumbnails in it, to help prevent thumbnail creation happening in the user's sight. https://bugzilla.gnome.org/show_bug.cgi?id=342110#c15 origin commit: https://git.gnome.org/browse/evince/commit/?id=1fc8c68
2017-08-15sidebar-thumbnails: keep thumbnails already renderedNelson Benitez Leon1-23/+12
Evince renders thumbnails on-the-fly as they get into the scrolling visible area, but at the same time it will remove them as they get out of the visible scrolling area, so when user scrolls back to same position he will notice thumbnails be recreated. In pro of a more icing user experience, let's adopt a mixed approach and keep the thumbnails that the user has already navigated, so when he scrolls back and forth in the same area no thumbnail re-generation will be visible. This also matches behaviour with other pdf readers. https://bugzilla.gnome.org/show_bug.cgi?id=342110 origin commit: https://git.gnome.org/browse/evince/commit/?id=121e4d9
2017-08-15sidebar-thumbnails: fix clunky scrollingNelson Benitez Leon1-0/+24
Caused by GtkIconView doing an invalidate and relayout of *all* items in the view anytime we update model data in any indiviual item (which happens with all the items that are getting in and out of the scrolling area while we scroll). This caused GtkIconView to machine-gunned us with "size-allocate" signals, a signal we were using to update thumbnails when the sidebar is resized. Fixed by connecting to the GtkTreeModel "row-changed" signal before GtkIconView does it, and stop emission from there. As we don't depend now on "size-allocate" signals to show thumbnails while we scroll, just queue a draw on the icon view when a thumbnail finish rendering. Thanks Jose Aliste for first spotting the problem. https://bugzilla.gnome.org/show_bug.cgi?id=691448 origin commit: https://git.gnome.org/browse/evince/commit/?id=6480c70 Fixes https://github.com/mate-desktop/atril/issues/255
2017-08-15update copyright year in Caja extensionmonsta1-1/+1
2017-08-15annotations-sidebar: Clean up the stylingraveit651-114/+86
Not sure why we need a GtkNotebook with a tab dedicated to nothing but holding a single button. Ditch the notebook and put the add button at the bottom of the sidebar. The 'add annontation button' is edited for Atril, just a GtkStock repacement without using GtkStock ;-) And we use a GtkButtonBox instead of a GtkToolbar as parent for the 'add button', to be consistent with the other sidebars. inspired by: https://github.com/linuxmint/xreader/commit/b8627de
2017-08-14ev-annotation-window: Fix setting the color of the window borderJosephMcc1-16/+8
We need to actually connect to a change in the correct property to update this. In this case "rgba", not "color". We also need to prevent the system theme from affecting the color of the annotation window. taken from: https://github.com/linuxmint/xreader/commit/1236d4b
2017-08-14libview: 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
2017-08-14libview: 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
2017-08-14libview: 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
2017-08-14shell: Use GdkRGBA for annotationsChristian Persch3-13/+13
Use the GdkRGBA API on EvAnnotation, and on GtkColorChooser. taken from: https://git.gnome.org/browse/evince/commit/?id=c523ef8
2017-08-14libdocument: Add EvAnnotation API using GdkRGBAChristian Persch3-20/+121
Add new API to EvAnnotation that uses GdkRGBA, and deprecated the GdkColor using one. Part of https://bugzilla.gnome.org/show_bug.cgi?id=677983 taken from: https://git.gnome.org/browse/evince/commit/?id=c477923 https://git.gnome.org/browse/evince/commit/?id=87ca31d
2017-08-14libdocument: Use the new deprecation macrosChristian Persch1-0/+6
taken from: https://git.gnome.org/browse/evince/commit/?id=4e762b4
2017-08-14Add deprecation macrosChristian Persch3-0/+34
Add deprecation macros similar to GLIB_DEPRECATED[_FOR]. taken from: https://git.gnome.org/browse/evince/commit/?id=86f3e1b
2017-08-12fix runtime warnings caused by previous HDPI commitraveit653-3/+3
2017-08-12Take monitor scale factor into account when calculating zoom.Matthew Petroff5-5/+15
https://github.com/linuxmint/xreader/commit/c47a1f4
2017-08-12Add hi-dpi support for main view.Matthew Petroff3-22/+91
Based on Evince commits 8b965e769808815df9c75a10a0e4972c0904d26a and a612f809e4e23d88a661a9604ce84f332189a658. https://github.com/linuxmint/xreader/commit/4eccf6b
2017-08-12shell: Ditch gimpcellrenderertoggleJosephMcc9-645/+3
This is full of deprecated code and wasn't displaying properly. Replace it with a gtk_cell_renderer_toggle_new() which uses a standard themed checkbox widget and should display properly in HiDPI.
2017-08-12sidebar-layers: Make it actually usable and fix a runtime warningraveit652-0/+2
Expand the scrolled window vertical so that you can actually see the content of the widget. This also turned up a missing gtk_style_context_save () in gimpcellrenderertoggle.c. So fix that as well. partial inspired from: https://github.com/linuxmint/xreader/commit/6b6ae7f
2017-08-11libview: 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
2017-08-11libview: 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-08-11libdocument: adjust rendering of shadow for active and inactive pagesraveit651-24/+17
and fix usage of deprecated gtk_symbolic_color https://github.com/linuxmint/xreader/commit/c171041 https://github.com/linuxmint/xreader/commit/68f365a
2017-08-08avoid deprecated gdk_screen_make_display_nameZenWalker1-3/+2
2017-08-07ev-window: remove deprecated GtkToolbar-shadow-typeraveit651-19/+2
Whole the function fullscreen_toolbar_remove_shadow isn't needed without that deprecation. Setting instead the widget name to make theming possible. GtkToolbar-shadow-type is deprecated since gtk+-3.6
2017-08-07annotation-properties-dialog: don't use a headerbarraveit651-0/+2
Fixes https://github.com/mate-desktop/atril/issues/264
2017-08-03avoid deprecated gdk_display_get_screen and gdk_display_get_n_screensZenWalker1-7/+2
2017-07-22ev-window: don't use deprecated gtk_show_uriraveit651-0/+7
2017-07-22sync with transifexraveit6514-292/+299
2017-07-21comics: make the files containing "--checkpoint-action=" unsupportedZenWalker1-0/+6
Fixes #257
2017-07-19avoid deprecated gdk_screen_get_numberZenWalker2-2/+2
2017-07-18update issue_templateraveit651-0/+3
2017-06-08create issue_template.mdraveit651-0/+16
2017-05-20Restore Polish translation credits from GNOMEPiotr Drąg1-6/+11
2017-05-10release 1.19.0v1.19.0raveit651-0/+13
2017-05-10sync with transifexraveit65104-22322/+23924
2017-04-18update copyright year to 2017monsta1-1/+1
2017-04-18build: properly clean the generated .caja-extension filemonsta1-0/+2