1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-05 00:59:07 +00:00
evince/shell
Vasily Galkin c3c1fcd761 get_match_offset(): ignore areas with center outside of match
Find sidebar implementation of evince uses "reconstruction"
of found letters by comparing geometrical position of match and letters
in get_match_offset method.

Before this change the only criteria for search was
"beginning of the match is inside letter (area)".
However, for pdfs containing letters that are much bigger than found
(huge labels over content, like watermarks) those huge letters passed
criteria and were incorrectly displayed in find sidebar.

With current architecture this problem can't be solved for 100% cases,
but can be hugely improved.

This commit adds extra check that center of a letter is inside the match,
this fixes a huge percent of huge letters incorrectly passing criteria.

See MR !372 for more info and testing file.
2021-12-14 13:56:55 +00:00
..
ev-annotation-properties-dialog.c shell: Implemented headerbar for Annotation Properties dialog 2021-06-21 19:21:37 +00:00
ev-annotation-properties-dialog.h Add support for changing the type of a text markup annotation 2014-11-16 13:23:07 +01:00
ev-annotations-toolbar.c shell: Set a11y names for annotation buttons 2019-11-23 19:08:03 +00:00
ev-annotations-toolbar.h Add a toolbar for adding annotations 2015-06-28 12:46:21 +02:00
ev-application.c Add binding for win.dual-odd-left 2021-10-11 03:02:21 +00:00
ev-application.h window: Show password dialog again 2021-06-09 02:21:14 +00:00
ev-bookmarks.c shell: Fix incorrect return type 2017-03-20 13:07:34 +01:00
ev-bookmarks.h Use GMenuModel for action and view menus 2014-06-19 16:44:35 +02:00
ev-daemon-gdbus.xml Revert "shell: Make evinced D-Bus name match application name" 2018-10-07 00:02:00 -03:00
ev-daemon.c Revert "shell: Make evinced D-Bus name match application name" 2018-10-07 00:02:00 -03:00
ev-file-monitor.c shell: Modernize access to private members on ev-file-monitor 2018-11-13 10:21:13 -03:00
ev-file-monitor.h shell: Modernize access to private members on ev-file-monitor 2018-11-13 10:21:13 -03:00
ev-find-sidebar.c get_match_offset(): ignore areas with center outside of match 2021-12-14 13:56:55 +00:00
ev-find-sidebar.h shell: Modernize access to private members on ev-find-sidebar 2018-11-13 11:08:20 -03:00
ev-gdbus.xml Revert "shell: Make app D-Bus name match application name" 2018-10-06 23:56:02 -03:00
ev-history.c history: Don't assume EvLink has always a valid EvLinkAction 2020-06-27 00:23:39 -04:00
ev-history.h history: Move some responsibilities out of EvHistory. 2020-06-27 00:19:10 -04:00
ev-keyring.c Migrate from libgnome-keyring to libsecret 2013-01-05 12:52:33 +01:00
ev-keyring.h Update FSF address everywhere. 2010-04-05 11:24:46 +02:00
ev-loading-message.c ev-loading-message: Remove unused variables 2013-01-12 12:13:54 +01:00
ev-loading-message.h Use GtkOverlay to show the loading message 2012-09-29 16:18:58 +02:00
ev-media-player-keys.c shell: Fix crash in ev_media_player_keys_grab_keys 2018-05-14 11:22:50 +02:00
ev-media-player-keys.h [shell] Use g_bus_watch_proxy instead of g_bus_watch_name in media-keys 2010-05-25 09:38:32 +02:00
ev-message-area.c shell: Use the info bar close button instead of a custom one 2018-11-09 12:34:06 -03:00
ev-message-area.h message-area: Modernize access to private members 2018-11-09 01:32:12 -03:00
ev-metadata.c shell: Create metadata object even for temp files 2012-08-07 15:46:36 +02:00
ev-metadata.h Save always settings that can bse saved as default in metadata 2012-01-12 16:52:39 +01:00
ev-password-view.c window: Show password dialog again 2021-06-09 02:21:14 +00:00
ev-password-view.h window: Show password dialog again 2021-06-09 02:21:14 +00:00
ev-progress-message-area.c shell: Use the info bar close button instead of a custom one 2018-11-09 12:34:06 -03:00
ev-progress-message-area.h progress-message-area: Modernize access to private members 2018-11-09 01:32:40 -03:00
ev-properties-dialog.c properties: Add document size in the file properties window 2015-01-18 09:45:04 +01:00
ev-properties-dialog.h Update FSF address everywhere. 2010-04-05 11:24:46 +02:00
ev-properties-fonts.c shell: Fix typos in comments 2020-05-21 22:00:02 -04:00
ev-properties-fonts.h Update FSF address everywhere. 2010-04-05 11:24:46 +02:00
ev-properties-license.c shell: Remove GtkAlignment from license properties 2018-11-13 13:16:49 -03:00
ev-properties-license.h Update FSF address everywhere. 2010-04-05 11:24:46 +02:00
ev-recent-view.c shell: Show filename in recent view when title has only spaces 2021-06-26 17:55:10 -04:00
ev-recent-view.h shell: Modernize access to private members on ev-recent-view 2018-11-12 01:07:59 -03:00
ev-sidebar-annotations.c shell: Reload the annotation sidebar when the type changes 2021-06-26 15:51:24 -04:00
ev-sidebar-annotations.h shell: Reload the annotation sidebar when the type changes 2021-06-26 15:51:24 -04:00
ev-sidebar-attachments.c Remove use of deprecated g_type_class_add_private function 2019-08-03 19:02:30 -06:00
ev-sidebar-attachments.h shell: Fix DnD support for attachments 2018-05-18 19:20:20 -04:00
ev-sidebar-bookmarks.c shell: Use GMenu for bookmarks' popup menu 2020-06-30 02:00:02 -04:00
ev-sidebar-bookmarks.h history: Record links in history when activating bookmarks 2020-06-27 00:21:31 -04:00
ev-sidebar-layers.c Remove use of deprecated g_type_class_add_private function 2019-08-03 19:02:30 -06:00
ev-sidebar-layers.h Fix omission from the GtkVBox to GtkBox conversion 2017-08-05 08:55:39 +02:00
ev-sidebar-links.c Add comment about logic of 'first_iteration' 2021-06-26 05:14:19 +00:00
ev-sidebar-links.h Fix omission from the GtkVBox to GtkBox conversion 2017-08-05 08:55:39 +02:00
ev-sidebar-page.c shell: Use G_PARAM_STATIC_STRINGS 2012-06-24 16:30:36 +02:00
ev-sidebar-page.h [shell] Use G_DEFINE_INTERFACE and remove our own macro 2010-05-07 13:19:56 +02:00
ev-sidebar-thumbnails.c Remove legacy code path for Gtk < 3.22 2021-10-11 21:59:56 -03:00
ev-sidebar-thumbnails.h Fix omission from the GtkVBox to GtkBox conversion 2017-08-05 08:55:39 +02:00
ev-sidebar.c sidebar-thumbnails: switch to two colums layout 2021-02-09 20:10:15 +00:00
ev-sidebar.h sidebar-thumbnails: switch to two colums layout 2021-02-09 20:10:15 +00:00
ev-toolbar.c shell: Use HdyApplicationWindow 2021-02-10 16:18:20 -03:00
ev-toolbar.h shell: Use HdyApplicationWindow 2021-02-10 16:18:20 -03:00
ev-utils.c shell: Remove unused variables 2021-10-18 21:54:30 -03:00
ev-utils.h ev-sidebar-annotations: Remove GTK < 3.22 popup code 2020-02-04 23:17:03 -03:00
ev-window-title.c shell: Explicitly set title in the header bar as a fallback 2021-04-11 16:34:48 -04:00
ev-window-title.h shell: Use display and edit name for filename 2018-04-01 11:32:47 -05:00
ev-window.c shell: Enable annotation actions only in document that supports them 2021-07-22 13:47:23 -04:00
ev-window.h shell: Fix libhandy includes 2021-06-26 03:14:17 +00:00
ev-zoom-action.c shell: Fix critical on startup 2021-11-12 23:59:34 +01:00
ev-zoom-action.h shell: Modernize access to private members on ev-zoom-action 2018-11-13 13:16:35 -03:00
evince-icon.rc Add evince icon to the win32 executable 2009-12-22 16:04:15 +01:00
evince-menus.ui shell: Added mnemonic for highlight option in context menu 2021-06-22 01:49:02 -07:00
evince.css css: Use theme bg color for content view 2021-02-03 07:58:23 -08:00
evince.gresource.xml shell: Remove style for gtk < 3.18 2020-09-24 22:14:13 -03:00
help-overlay.ui Remove "Quit" from shortcuts page 2021-10-13 11:07:16 +02:00
main.c evince.desktop: Add new-window desktop action 2021-06-25 14:45:20 +02:00
meson.build build: Fix dependency tracking 2021-11-30 22:16:19 +00:00