summaryrefslogtreecommitdiff
path: root/shell
AgeCommit message (Collapse)AuthorFilesLines
2018-03-15shell: fix menu-accel for inverted colorsraveit651-1/+1
fixes conflict with zoom_in
2018-03-15shell: add keypad accels for zoom_resetraveit651-0/+2
2018-03-15Add zoom resetLars Mueller1-0/+27
origin commit: https://github.com/linuxmint/xreader/commit/43acb8f
2018-02-16avoid deprecated GtkStockPablo Barciela7-77/+81
2018-01-31require GTK+ 3.22 and GLib 2.50monsta9-92/+2
2018-01-09update copyright year to 2018monsta1-1/+1
2017-12-10WidthOfScreen and HeightOfScreen implementationPablo Barciela1-8/+3
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-27shell: show caret navigation in menuraveit651-0/+7
but set this action sensitive for epubs
2017-11-27Some text fixes for caret message arearaveit651-2/+2
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f847cd0 https://git.gnome.org/browse/evince/commit/?id=aa76196
2017-11-22shell: remove view_actions_focus_out_cbJosé Aliste1-12/+0
It is now doing nothing origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=b0f7bfe
2017-11-22shell: Remove ev_window_set_view_accels_sensitivityJosé Aliste1-36/+0
Now that we chain the accels to the focused widget, we do not need anymore to disable accels when the view is not focused. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=39defbd
2017-11-22shell: forward accels to the focused widgetraveit651-36/+24
GtkWindow catches keybindings for the menu items _before_ passing them to the focused widget. This is unfortunate and means that pressing ctrl+Left arrow, Ctrl+Right arrow on the search bar ends up turning the EvView instead of moving around the text. Here we override GtkWindow's handler to do the same things that it does, but in the opposite order and then we chain up to the grand parent handler, skipping gtk_window_key_press_event. See https://bugzilla.gnome.org/show_bug.cgi?id=676040 inspired from https://git.gnome.org/browse/evince/commit/?id=70a2c0780b1b44acfa18f4762a3400b89eb123b5 fix rhbz https://bugzilla.redhat.com/show_bug.cgi?id=1513826
2017-11-22Use a global array for view accel actionraveit651-15/+23
and a loop to change their sensitivity inspired from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-2&id=d15eeda https://git.gnome.org/browse/evince/commit/?h=gnome-3-2&id=2ed0f3d https://git.gnome.org/browse/evince/commit/?h=gnome-3-2&id=793361c
2017-09-09shell: fix stock item for message arearaveit651-3/+3
2017-09-06Fix crashes of epub documents with caret-navigationraveit651-0/+12
This is a quick fix for getting caret-navigation working in atril. All this code needs to be reworked for epubs. Note: caret-navigation is always enabled if text is selected with epubs, for some reasons.
2017-09-06Store the caret cursor position in document metadataCarlos Garcia Campos1-4/+45
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3e468fa
2017-09-06shell: Enable/disable the caret navigation with F7Antia Puentes1-1/+96
https://bugzilla.gnome.org/show_bug.cgi?id=702079 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=fc9b6d1
2017-09-06ev-window: Use g_signal_emit_by name instead of ev_view_scrollCarlos Garcia Campos1-15/+2
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3e32b5d
2017-09-06ev-window: Remove scroll acceleratorsCarlos Garcia Campos1-19/+0
They are handled by the EvView now. We just leave the page up/down accels, so that they still work even when the view is not focused. origin commit (modified): https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=6a7c3db
2017-09-05shell: disable ViewDualOddLeft in menus for epubsraveit651-0/+6
Dual mode isn't implemented for epubs
2017-08-31Activate shortcut keys for dual and continuous layoutraveit651-2/+2
'd' for dual and 'w' for continuous layout.
2017-08-31Add shortcut keys for fit-page and fit-width optionsCarlos Garcia Campos1-2/+17
'f' for fit-page for consistency with eom and 'w' for fit-width. Fixes bug #595571. origin commit: https://git.gnome.org/browse/evince/commit/?id=2ed0f3d fix
2017-08-31shell: Do not open single page pdfs in dual mode by defaultCarlos Garcia Campos1-0/+3
Single page pdfs will now open in full window even if the default mode is dual mode. This will apply to pdfs that are opened for first time, otherwise user preferences are honored. https://bugzilla.gnome.org/show_bug.cgi?id=547098 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=5339558
2017-08-31Rename Fit Page Width as Fit WidthWilliam Jon McCann1-15/+15
https://bugzilla.gnome.org/show_bug.cgi?id=689468 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=88d7a4a
2017-08-31Rename Best Fit mode as Fit PageWilliam Jon McCann1-22/+22
https://bugzilla.gnome.org/show_bug.cgi?id=689468 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=ffd3853
2017-08-31Move dual page with odd pages left to the view menuCarlos Garcia Campos1-5/+8
As a toggle option only available in dual mode. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1078b8f
2017-08-28shell: Check if doc implements Annotations interface before castJosé Aliste1-2/+4
Without this check, evince will crash when a right-click on a non-pdf document is performed. https://bugzilla.gnome.org/show_bug.cgi?id=737197 origin commit: https://git.gnome.org/browse/evince/commit/?id=0f59861
2017-08-28Refreshing annotations' sidebar upon deletionGiselle Machado3-4/+22
When an annotation is deleted, the sidebar needs to be refreshed so that the annotation is removed from the list See item 3 in this comment: https://bugzilla.gnome.org/show_bug.cgi?id=649044#c33 origin commit: https://git.gnome.org/browse/evince/commit/?id=13defb2
2017-08-28Add an option to remove annotations to the view popup menuraveit651-1/+20
https://bugzilla.gnome.org/show_bug.cgi?id=649044 inspired by: https://git.gnome.org/browse/evince/commit/?id=0f19833
2017-08-25ev-properties-licence: don't use deprecated GtkAlignmentraveit651-7/+4
- drop gtk_alignment_new - drop gtk_alignment_set_padding
2017-08-20gtk 3.22: avoid deprecated gdk_screen_get_monitor... functions:ZenWalker2-0/+46
avoid deprecated: gdk_screen_get_monitor_geometry gdk_screen_get_monitor_at_window gdk_screen_get_monitor_at_point
2017-08-20avoid gdk_screen_get_primary_monitor/gdk_screen_get_monitor_scale_factorZenWalker1-2/+12
2017-08-20avoid deprecated gdk_screen_get_width/heightZenWalker1-2/+8
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-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-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-12fix runtime warnings caused by previous HDPI commitraveit651-1/+1
2017-08-12Take monitor scale factor into account when calculating zoom.Matthew Petroff1-1/+3
https://github.com/linuxmint/xreader/commit/c47a1f4
2017-08-12shell: Ditch gimpcellrenderertoggleJosephMcc2-5/+2
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 warningraveit651-0/+1
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-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-19avoid deprecated gdk_screen_get_numberZenWalker1-1/+1
2017-04-18update copyright year to 2017monsta1-1/+1
2017-04-13shell: remove unused code from utilsmonsta2-220/+0