summaryrefslogtreecommitdiff
path: root/shell
AgeCommit message (Collapse)AuthorFilesLines
2021-07-10ev-window.c: only create a EvWebView if neededmbkma1-3/+10
A WebKit processes should only be created when the user actually requests to open a file type requiring WebKit to be processed.
2021-06-15ev-sidebar-links: Optimize reverse link lookup for a pageChristoph Fritz1-59/+80
Commit adapted for atril, picked up from: https://gitlab.gnome.org/GNOME/evince/-/commit/c3de8e75d6d0920478af210ba19a2d94b0734917 Credits to Benjamin Berg <[email protected]> | For large documents the linear search for the first link that is on a | certain page is really slow. Because of this scrolling becomes slow | whenever the page changes. | | Replace the linear search with a search in a binary tree populated with | the first link on each page and the corresponding GtkTreePath. This way | a specialized binary tree lookup can be used to find the closest | matching link and select that in the treeview. | | https://bugzilla.gnome.org/show_bug.cgi?id=779614
2021-04-01ev-window: missing initializer for a field of ‘GtkActionEntry’rbuj1-6/+6
2021-02-10i18n: use g_dngettext instead of ngettextrbuj1-13/+18
2021-02-10build: allow users to disable gettext support (--disable-nls)rbuj1-1/+3
2021-02-05build: Use PACKAGE_URL variablerbuj1-1/+1
2021-01-16Update copyright to 2021rbuj1-1/+1
2020-12-11Support non-X11 windowing systemswb96882-8/+10
2020-12-09build: remove legacy variable MATEICONDIRrbuj1-1/+0
2020-08-31ev-window: fix interval (guint milliseconds) in g_timeout_add_fullrbuj1-1/+1
2020-08-28ev-sidebar-attachments: do not add add a Gtk_Containerraveit651-2/+1
Fixes a runtime warning caused by https://github.com/mate-desktop/atril/commit/70f42da See https://github.com/mate-desktop/atril/pull/476#issuecomment-667701035 for more info.
2020-08-16Remove unused macrosPablo Barciela2-8/+0
2020-07-27Change spaces to tabScott Balneaves1-1/+1
2020-07-27Make sure attachments window fills entire sidebarScott Balneaves1-0/+1
2020-07-10ev-properties-dialog: Add on_notebook_scroll_eventrbuj1-0/+64
2020-06-18Make synctex optionalOz Tiram1-0/+5
Not everyone who reads PDF's is necessarily a LaTeX user. These changes allow users to install atril without the huge bagage of tex-live on systems where synctex isn't provided as a stand alone library.
2020-06-07use git submodule for cut-n-paste/smclientWu Xiaotian1-2/+2
2020-04-21ev-window: expand the comment on about dialogrbuj1-5/+4
2020-04-15Fix cppcheck [knownConditionTrueFalse] warningsPablo Barciela2-23/+13
Fixes the warnings: backend/comics/comics-document.c:767:21: style: Condition 'bytes<=0' is always true [knownConditionTrueFalse] backend/epub/minizip/unzip.c:603:25: style: Condition 'unz_copyright[0]!=' '' is always false [knownConditionTrueFalse] properties/ev-properties-view.c:197:33: style: Condition 'text' is always true [knownConditionTrueFalse] shell/ev-sidebar-thumbnails.c:598:7: style: Condition '!loading_icon' is always true [knownConditionTrueFalse] shell/main.c:115:6: style: Condition '!error' is always true [knownConditionTrueFalse]
2020-04-14ev-window/epub-document: remove unused functionsPablo Barciela1-14/+0
Fixes the build warnings: ev-window.c:6379:1: warning: function 'menubar_deactivate_cb' is not needed and will not be emitted [-Wunneeded-internal-declaration] menubar_deactivate_cb (GtkWidget *menubar, ^ epub-document.c:946:1: warning: function 'check_add_page_numbers' is not needed and will not be emitted [-Wunneeded-internal-declaration] check_add_page_numbers(linknode *listdata, contentListNode *comparenode) ^
2020-02-28Update authorsrbuj1-1/+1
2020-02-24Use int64_t for g_date_time_to_unix even word size is 32-bit widerbuj1-1/+1
2020-01-31Fix year 2038 issue with signed 32-bit integersrbuj1-18/+20
GTime is defined to always be a signed 32-bit integer, it will overflow in the year 2038.
2020-01-19Revert "Fix memory leak in ev_sidebar_thumbnails_document_changed_cb()"raveit651-8/+4
This reverts commit bb8194a94310dae72bcbd745cd7f0f93e8d6fad1. Commit cases a warning when closing atril window, see https://github.com/mate-desktop/atril/pull/431#issuecomment-576002680 for more info
2020-01-15Fix memory leak inEric R. Schulz1-4/+8
ev_sidebar_thumbnails_document_changed_cb() Clear the loading icon hash table if it already exists. https://bugzilla.gnome.org/show_bug.cgi?id=770070 origin commit: https://gitlab.gnome.org/GNOME/evince/commit/702c7c6
2020-01-10Update Copyright yearraveit651-1/+1
2019-11-28avoid redundant redeclarationsPablo Barciela5-12/+0
2019-11-11show SyncTeX version in about dialogPablo Barciela1-2/+2
2019-10-09Added accelerator 'o' for toggling Odd Pages Left.A. Palsson1-1/+1
Fixes https://github.com/mate-desktop/atril/issues/365
2019-09-10Added accelerator 't' for toggling visibility of the toolbar.A. Palsson1-1/+1
2019-09-06remove -Wunused-but-set-variable warningrbuj1-2/+1
ephy-zoom-control.c:274:20: warning: variable ‘tool_item_class’ set but not used [-Wunused-but-set-variable] 274 | GtkToolItemClass *tool_item_class; | ^~~~~~~~~~~~~~~ -- ev-window.c:1390:10: warning: variable ‘page’ set but not used [-Wunused-but-set-variable] 1390 | gint page, n_pages; | ^~~~
2019-08-19shell: Use monitor instead of screen to determine window sizeraveit651-5/+31
replace {Width/Height}OfScreen which works only with X11 inspired from: https://gitlab.gnome.org/GNOME/evince/commit/40aa446
2019-08-16ev-sidebar-bookmarks: avoid 'g_type_class_add_private'Pablo Barciela1-5/+2
2019-08-16ev-history: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-16ev-sidebar-layers: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-16eggfindbar: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-16ev-sidebar-links: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-08-16ev-sidebar-thumbnails: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-16ev-sidebar: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-16ev-sidebar-attachments: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-16ev-sidebar-annotations: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-16ev-progress-message-area: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-08-16ev-password-view: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-08-16ev-window: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-08-16ev-navigation-action: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-16ev-file-monitor: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-08-16ev-message-area: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-08-10shell: fix get_monitor_dpi when widget’s window is not realizedrbuj1-3/+7
2019-08-10DPI: compute monitor resolution or get screen resolutionrbuj1-12/+12
2019-08-05prevent segfaults when no document loadedReuben Green1-29/+29
See the issue report for a description of the bug. The root cause is dereferencing of NULL pointers, specifically the priv->document member of EvWindow structures when no document is loaded. This commit adds checks for a NULL value of priv->document at all the points in the file shell/ev-window.c where this pointer was previously dereferenced without being checked. Fixes 357 (https://github.com/mate-desktop/atril/issues/357)