Oz Tiram
ff52c2e214
fix: libdocument! meson automatically adds lib prefix
...
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00
Oz Tiram
65b96812c4
chore: clean references to xreader
...
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
ce41df6467
comics: Use libarchive to unpack documents
...
This commit eliminates the use of external commands for opening
comic documents, and uses libarchive instead.
2024-01-07 22:17:05 +00:00
rbuj
b71aa9861c
Fix implicit conversion changes signedness: 'gboolean' to 'guint'
2022-02-11 17:37:23 +01:00
rbuj
e25ac2b7fe
Remove warnings about redefining gettext support macros
2022-01-02 21:24:51 +01:00
rbuj
816d2dc822
Use a blank line at most
2021-11-20 18:31:11 +01:00
orbea
31f6591011
introspection: Fix bogus --library arguments.
2021-04-13 17:43:16 +02:00
Jason Crain
b8f1d0c2d0
libdocument: remove _ev_g_mkdtemp function
...
The g_mkdtemp function was added to glib 2.30. Remove our local copy and
use the glib one instead.
2021-04-01 18:04:43 +02:00
rbuj
66de6ed566
build: allow users to disable gettext support (--disable-nls)
2021-02-10 23:58:25 +01:00
rbuj
ee6b6575a8
ev-document-factory: use g_list_free_full
2020-12-04 21:52:41 +01:00
Oz N Tiram
527caa272f
Use ENABLE_SYNCTEX in libdocument/Makefile.am
2020-06-18 10:48:28 +02:00
Oz N Tiram
8712286c8d
Fix -Wunused-function warnings caused by --enable-synctex=no
2020-06-18 10:48:28 +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
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
Pablo Barciela
0fc51a2c8d
avoid redundant redeclarations
2019-11-28 01:03:04 +01:00
Pablo Barciela
6f1f443152
show SyncTeX version in about dialog
2019-11-11 10:53:05 +01:00
rbuj
f1c1bbd843
build: Use synctex system library if available
...
based on 9edaca5b7b
2019-08-29 12:00:35 +02:00
rbuj
6061cf30d7
Bump synctex to 1.21
...
$ cd cut-n-paste/synctex
$ rm synctex_*
$ ./update-synctex-from-TL.sh
Test on Fedora:
1. Install required packages
$ sudo dnf install texlive-scheme-basic texlive-lipsum -y
2. Build a pdf with synctex enabled
$ cat <<EOF >> file.tex
\documentclass[12pt]{report}
\usepackage{lipsum}
\begin{document}
\chapter{Introduction}
\lipsum[2-4]
\end{document}
EOF
$ pdflatex -synctex=1 file.tex
3. Open file.pdf using atril
4. Search any text string
2019-08-29 12:00:35 +02:00
Pablo Barciela
c34be5dfa3
ev-link: avoid 'g_type_class_add_private'
2019-08-16 21:04:51 +00:00
Pablo Barciela
6ae7bce10d
ev-document: avoid 'g_type_class_add_private'
2019-08-16 21:04:51 +00:00
Pablo Barciela
d8d4f59c29
ev-link-action: avoid 'g_type_class_add_private'
2019-08-16 21:04:51 +00:00
Pablo Barciela
0baad4f23d
ev-attachment: avoid 'g_type_class_add_private'
2019-08-16 21:04:51 +00:00
Pablo Barciela
f2273b05a0
ev-image: avoid 'g_type_class_add_private'
2019-08-16 21:04:51 +00:00
Pablo Barciela
a5231ade55
ev-layer: avoid 'g_type_class_add_private'
2019-08-16 21:04:51 +00:00
Pablo Barciela
5e87ab4249
ev-link-dest: avoid 'g_type_class_add_private'
2019-08-16 21:04:51 +00:00
Pablo Barciela
0293c8c9ef
ev-transition-effect: avoid 'g_type_class_add_private'
2019-08-16 21:04:51 +00:00
rbuj
d387353c80
DPI: compute monitor resolution or get screen resolution
2019-08-10 22:58:36 -04:00
raveit65
ac5503c7bb
document: Replace deprecated gdk_color_equal
...
gdk_color_equal is simple enough to replace it with code inline
taken from:
1944b86
2019-07-29 15:54:38 +02:00
Laurent Napias
aa24676651
Remove trailing whitespaces
2019-07-01 17:07:40 +02:00
monsta
70ba1fb707
libdocument: drop useless freeing of NULL pointer
2019-01-21 14:23:51 +01:00
Carlos Garcia Campos
28243c0141
libdocument: Use gdk_pixbuf_get_from_surface()
...
....instead of our own implementation
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-0&id=91a30f4
2018-04-08 13:07:52 +02:00
Carlos Garcia Campos
3349fb90d7
libdocument: Deprecate misc_get_page_border_size()
...
.... and misc_paint_one_page()
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=a610d49
2018-04-05 17:52:41 +02:00
raveit65
4bb14f5ff0
Save/restore context when getting colors for a different state
...
Getting colors for a state different from the current state of the
corresponding widget without saving the context might trigger an
invalidation and a redraw. Because this was happening from the draw
function this resulted in a redraw loop and constant high CPU usage.
This could be triggered by selecting text or searching.
https://bugzilla.gnome.org/show_bug.cgi?id=755442
inspired by:
https://git.gnome.org/browse/evince/commit/?id=1987f04
e76a18d
2018-03-19 09:39:06 +01:00
monsta
45cbbd09a1
require GTK+ 3.22 and GLib 2.50
2018-01-31 09:55:09 +01:00
Pablo Barciela
c4911e303e
WidthOfScreen and HeightOfScreen implementation
...
This commit reverts:
d9fffe2dc0
And it applies an alternative to fix the deprecated functions:
gdk_screen_get_width
gdk_screen_get_height
2017-12-10 03:12:31 +01:00
Antia Puentes
2a7eb0b7ae
libdocument: Add ev_document_text_get_text_attrs()
...
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f72b619
2017-09-06 18:25:34 +02:00
Carlos Garcia Campos
d16ebefe94
libdocument: Make ev_mapping_list_remove void
...
There's no reason to return the EvMappingList since it can't be modified
by this function.
2017-08-28 16:04:01 +02:00
Germán Poo-Caamaño
cd5aaa1eab
libdocument: add ev_mapping_list_remove
...
Needed to remove annotations from a mapping list
https://bugzilla.gnome.org/show_bug.cgi?id=649044
origin commit:
https://git.gnome.org/browse/evince/commit/?id=5aac9ac
2017-08-28 16:04:00 +02:00
José Aliste
0f5c79f2e0
libdocument: Add remove_annotation to DocumentAnnotations.
...
https://bugzilla.gnome.org/show_bug.cgi?id=649044
origin commit:
https://git.gnome.org/browse/evince/commit/?id=d0ed4e6
2017-08-28 16:04:00 +02:00
Giselle Machado
f071e6bc37
Change color of annotation window
...
When the color of the annotation window is chosen
in the properties dialog and apply is clicked, the
color of the window changes immediately.
Fixed by making ev_annotation_set_rgba send both
"color" and "rgba" signals.
https://bugzilla.gnome.org/show_bug.cgi?id=725571
origin commit:
https://git.gnome.org/browse/evince/commit/?id=d23d6c1
2017-08-28 16:04:00 +02:00
Antia Puentes
f03b70d2cd
libdocument: Added ev_mapping_list_get
...
returns the EvMapping in the EvMappingList at coordinates (x,y).
origin commit:
https://git.gnome.org/browse/evince/commit/?id=2de7a65
2017-08-28 16:04:00 +02:00
José Aliste
4fc55be84b
libdocument: Add activation_link to EvFormField struct
...
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=5410cf9
2017-08-28 16:04:00 +02:00
Cosimo Cecchi
1c0f5a75fc
ev-mapping-list: make a boxed type
...
And fix a number of introspection warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=691354
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=d6f7e03dd53639e2a3470f128d3b327636cf3dea
2017-08-24 11:58:27 +02:00
Cosimo Cecchi
d06cb3dabb
libdocument: add missing transfer and element-type annotations
...
https://bugzilla.gnome.org/show_bug.cgi?id=691354
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=7917b62
2017-08-24 11:56:28 +02:00
ZenWalker
444cec08e3
avoid gdk_screen_get_primary_monitor/gdk_screen_get_monitor_scale_factor
2017-08-20 17:00:09 +02:00
ZenWalker
14e0759b76
ev-document-misc.c: avoid deprecated gdk_screen_get_width/height_mm
...
Fixes #177
2017-08-20 17:00:09 +02:00
ZenWalker
d9fffe2dc0
avoid deprecated gdk_screen_get_width/height
2017-08-20 17:00:09 +02:00
Christian Persch
0b8edc9752
libdocument: Add EvAnnotation API using GdkRGBA
...
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-14 20:02:44 +02:00
Christian Persch
a2e5e6d2dd
libdocument: Use the new deprecation macros
...
taken from:
https://git.gnome.org/browse/evince/commit/?id=4e762b4
2017-08-14 20:02:44 +02:00