Commit graph atril-jp/shell
Author SHA1 Message Date
Michael Webster
82d957afdb epub: Disable thumbnailing sidebar.
A recent update to libwebkitgtk2gtk-4.1 breaks using WebKitWebView
in a GtkOffscreenWindow.

Disable the thumbnail sidebar with epub documents, and disable
updating the GtkWindow thumbnail.

ref:
8d7385fad3

Fixes: #631.
2025-04-24 18:31:55 +00:00
Oz Tiram
617326e3a0 fix: generate dbus generated with the correct prefix
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
425b36ec07 fix: building atrild with explicit sources
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
710f8c6a87 fix: building atril target
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
ccb3982a43 fix: shell/meson.build missing files
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
f02f8e2b57 fix: correct dependeny on mate-submodules
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
688692ae4a fix all build errors with meson
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
42c2da1100 fix more build errors
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
7b21c429cb fix: remove non existing source in shell/
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
d5e0375a33 fix: use mate-submodules correctly
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
b1f21edcec Initial support for meson
Mostly copy and paste from linuxmint/xreader

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
lukefromdc
b2bdf46db9 Wayland: stop segfaults on some systems
*Put a missed instance of gdk_x11_screen_get_screen_number behind x11-only selectors
2025-03-31 04:38:46 +00:00
Oz Tiram
160ae5025c replace deprecated gtk_menu_tool_button_new_from_stock
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-03-31 04:35:54 +00:00
Oz Tiram
1cd5f14cb4 replace ev_document_model_get_dual_page with
ev_document_model_get_page_layout ...

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-03-31 04:35:54 +00:00
raveit65
f41d8ccb7c replace deprecated gtk_image_menu_item_new_from_stock 2023-10-02 18:26:36 +02:00
raveit65
5fbd44b2f5 replace deprecated gtk-image-menu-item 2023-10-02 18:26:36 +02:00
zhuyaliang
ba0d50e323 Remove compilation warnings and set 'always_show_image' Properties in the UI file 2023-10-01 10:33:25 +02:00
rbuj
b71aa9861c Fix implicit conversion changes signedness: 'gboolean' to 'guint' 2022-02-11 17:37:23 +01:00
rbuj
05dc26a2c8 Fix the type for the signal identifier which is gulong 2022-01-09 14:24:00 +01:00
rbuj
f033cb68fe Don't build the path to stock icons 2022-01-02 21:03:47 +01:00
rbuj
816d2dc822 Use a blank line at most 2021-11-20 18:31:11 +01:00
Valentin Villenave
0c38b79c95 Accessibility: add button description 2021-11-20 17:14:49 +01:00
Valentin Villenave
706b21d5cf Preserve compatibility with older GLib versions
This is a rather non-invasive change, that will
be easy to remove whenever we go ahead and stop
supporting older systems.
2021-11-12 21:39:24 +01:00
mbkma
88e8547e92 ev-window.c: only create a EvWebView if needed
A WebKit processes should only be created when the user actually requests to open a file type requiring WebKit to be processed.
2021-07-10 13:51:42 +02:00
Christoph Fritz
50d0b23c60 ev-sidebar-links: Optimize reverse link lookup for a page
Commit adapted for atril, picked up from:
c3de8e75d6

Credits to Benjamin Berg <bberg@redhat.com>

  | 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-06-15 20:10:04 +02:00
rbuj
88244cd89a ev-window: missing initializer for a field of ‘GtkActionEntry’ 2021-04-01 18:03:01 +02:00
rbuj
b9e8446945 i18n: use g_dngettext instead of ngettext 2021-02-10 23:58:25 +01:00
rbuj
66de6ed566 build: allow users to disable gettext support (--disable-nls) 2021-02-10 23:58:25 +01:00
rbuj
6b159d0665 build: Use PACKAGE_URL variable 2021-02-05 14:03:13 +01:00
rbuj
5dc0b8eeef Update copyright to 2021 2021-01-16 10:20:06 +01:00
wb9688
a23d153102 Support non-X11 windowing systems 2020-12-11 14:10:41 +01:00
rbuj
75762f3445 build: remove legacy variable MATEICONDIR 2020-12-09 01:52:31 +01:00
rbuj
69f1e80f5e ev-window: fix interval (guint milliseconds) in g_timeout_add_full 2020-08-31 12:33:33 +02:00
raveit65
d0487cfcd9 ev-sidebar-attachments: do not add add a Gtk_Container
Fixes a runtime warning caused by
70f42da
See https://github.com/mate-desktop/atril/pull/476#issuecomment-667701035
for more info.
2020-08-28 19:33:49 +02:00
Pablo Barciela
1558f84366 Remove unused macros 2020-08-16 04:34:23 +02:00
Scott Balneaves
8e981c6db0 Change spaces to tab 2020-07-27 22:00:15 +02:00
Scott Balneaves
70f42da7c9 Make sure attachments window fills entire sidebar 2020-07-27 22:00:15 +02:00
rbuj
8863ed43f2 ev-properties-dialog: Add on_notebook_scroll_event 2020-07-10 11:59:14 +02:00
Oz Tiram
d1f4707aad Make synctex optional
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-18 10:48:28 +02:00
Wu Xiaotian
8e63669a37 use git submodule for cut-n-paste/smclient 2020-06-07 18:11:33 +02:00
rbuj
0b51c98f08 ev-window: expand the comment on about dialog 2020-04-21 16:32:35 +02:00
Pablo Barciela
1f35666519 Fix cppcheck [knownConditionTrueFalse] warnings
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-15 17:25:45 +02:00
Pablo Barciela
d88ad14b2f ev-window/epub-document: remove unused functions
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-04-14 10:12:59 +02:00
rbuj
a4f8d785f4 Update authors 2020-02-28 16:40:55 +01:00
rbuj
8a51a1c7e6 Use int64_t for g_date_time_to_unix even word size is 32-bit wide 2020-02-24 23:53:50 +01:00
rbuj
a70e19a514 Fix year 2038 issue with signed 32-bit integers
GTime is defined to always be a signed 32-bit integer, it will
overflow in the year 2038.
2020-01-31 18:52:19 +01:00
raveit65
8082bc78d0 Revert "Fix memory leak in ev_sidebar_thumbnails_document_changed_cb()"
This reverts commit bb8194a943.

Commit cases a warning when closing atril window, see
https://github.com/mate-desktop/atril/pull/431#issuecomment-576002680
for more info
2020-01-19 14:10:55 +01:00
Eric R. Schulz
bb8194a943 Fix memory leak in
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:
702c7c6
2020-01-15 13:55:30 +01:00
raveit65
f4d2045209 Update Copyright year 2020-01-10 10:47:17 +01:00
Pablo Barciela
0fc51a2c8d avoid redundant redeclarations 2019-11-28 01:03:04 +01:00