1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-05 00:59:07 +00:00
Commit Graph

66 Commits

Author SHA1 Message Date
Pablo Correa Gómez
732fef00c5 previewer/meson: do not add extra dependencies for gnome.compile_resources
The files in the .gresource.xml are automatically added by meson as a
dependency.

Coauthored-by: Qiu Wenbo <qiuwenbo@kylinos.com.cn>

Helps !373
2023-06-18 21:58:25 +00:00
Pablo Correa Gómez
b477c21c6d
previewer: simplify freeing memory by better exploiting glib functions
Mostly g_clear_object and g_clear_pointer. But also some small
simplifications depending on the context.
2023-03-24 09:58:48 +01:00
Pablo Correa Gómez
e50b7a5368 previewer: Remove trailing whitespaces 2023-03-22 20:15:51 +00:00
Nelson Benítez León
ce695bb6d9 use the same term for the Outline sidebar
Sidebar links is labeled in the ui as 'Outline'
but in a tooltip is also referred as 'Index',
so let's use the same term all across Evince.
2023-03-10 18:31:31 +00:00
Marek Kasik
88c8010564 Wait until all jobs finish before exit
Wait for all jobs before exiting main().
This allows clean execution of exit handlers.
Otherwise, the threads which executes the jobs could
access data already cleaned by exit handlers.

Fixes #1713
2022-07-14 15:10:00 +00:00
Christian Persch
33b87d06f4 previewer: Try sniffing MIME type from FD
When passing a file descriptor, but no MIME type was specified, try
sniffing the type from data.
2022-01-12 12:44:22 +00:00
Alexander Mikhaylenko
b0e9f1db72 previewer: Support dark style preference 2022-01-12 03:24:53 +00:00
Christian Persch
a983e8d958 previewer: Allow passing the document and print settings as FDs
This allows passing FDs to the document and print settings files
which are already unlinked, so don't need --unlink-tempfile. It
makes sure the files are never left around even if the previewer
crashes.
2022-01-08 00:03:15 -03:00
Christian Persch
60ba7b0ee5 all: Replace include guards with pragma once
Instead of using the "#ifndef FOO_H", "#define FOO_H", …, "#endif FOO_H"
guards around the header file, use the "#pragma once".
2021-12-15 02:24:07 +00:00
Christian Persch
bc595ce828 build: Fix dependency tracking
The executables must declare their dependency on
libevdocument/libevview, so that a rebuild works correctly.
2021-11-30 22:16:19 +00:00
Germán Poo-Caamaño
745364b03c build: Use devel icon for unstable version installed
* Help visually distinguish the development version from the
  stable one.
2021-06-23 20:38:33 +00:00
Chris Mayo
4a94fad803 previewer: Fix build regression when gtk_unix_print is disabled
Restore guard around ev_previewer_window_print because
that function requires GTKUNIXPRINT_ENABLED, without the
guard, makes the gtk_unix_print unusable.

In the commit 65bfd21c ("previewer: Use GtkHeaderBar in print preview"), the GTKUNIXPRINT_ENABLED preprocessor guard around
the usage of ev_previewer_window_print was lost.
2021-04-14 02:15:40 +00:00
Iñigo Martínez
b27189bb3c build: Remove autotools
To avoid the burden of maintaining multiple build systems, autotools
support has been removed.

GitLab CI configuration has also been updated to use meson.
2020-05-30 22:39:51 -04:00
Marek Kasik
91e0151346 libdocument: Get DPI from GdkMonitor
Compute DPI from data provided by GdkMonitor instead of
GdkScreen.
Try to obtain current GdkMonitor from GdkDisplay
using gdk_display_get_monitor_at_window(),
if that fails (the GtkWindow has not been realized yet)
then just get primary monitor or the first monitor (primary monitor
has not been set).
Use DPI 96 if everything fails.

Fixes #617
2019-11-23 18:46:47 +00:00
Germán Poo-Caamaño
da02030dde previewer: Modernize access to private members 2018-11-08 17:32:50 -03:00
Germán Poo-Caamaño
65bfd21cee previewer: Use GtkHeaderBar in print preview
* Makes the UI looks like the main application
* Replace and remove deprecated widgets

Addresses issues on #405
2018-11-08 17:32:50 -03:00
Germán Poo-Caamaño
12ffec45ea previewer: Fix default icon name 2018-11-08 11:34:45 -03:00
Iñigo Martínez
d69158ecf0 build: Port to Meson build system
Meson is a build system focused on speed and ease of use, which
helps speed up software development. This patch adds Meson support
alongside Autotools.
2018-09-24 10:28:33 +02:00
astian
4dbac319bc previewer: Disambiguate option description
https://bugzilla.gnome.org/show_bug.cgi?id=642190

Patch-by: F Wolff <friedel@translate.org.za>
2017-07-22 07:59:38 +02:00
Piotr Drąg
52f560582d Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=774005
2016-11-06 19:57:30 +01:00
Felipe Borges
71767dbf67 previewer: handle opening files from URI
https://bugzilla.gnome.org/show_bug.cgi?id=766531
2016-05-24 13:51:17 +02:00
Robert Roth
a671eb08a9 previewer: Enable/disable page navigation based on current page
https://bugzilla.gnome.org/show_bug.cgi?id=745840
2015-03-16 19:54:34 +01:00
Carlos Garcia Campos
5a88713d7a Fix make distcheck 2014-08-15 18:14:25 +02:00
Carlos Garcia Campos
21883321ea build: try to fix the build when srcdir != builddir 2014-08-04 14:27:17 +02:00
Carlos Garcia Campos
48110cb416 previewer: Add CSS file for EvView styling
EvView CSS used to be shared in adwaita theme, but now that adwaita has
been merged into GTK+ and app specific CSS has been removed, we need to
add the EvView CSS to all of its users.
2014-08-04 13:42:05 +02:00
Christian Persch
d4216cc576 build: Don't use INCLUDES
It's deprecated. Instead use *_CPPFLAGS.
2013-07-26 21:26:35 +02:00
Carlos Garcia Campos
1649067440 previewer: Remove scroll accelerators
They are handled by the EvView now.
2013-07-12 12:19:33 +02:00
Germán Poo-Caamaño
544d9b4a73 Add contextual information for translators. Fixes #693095 2013-02-28 10:38:54 -08:00
William Jon McCann
88d7a4aefa Rename Fit Page Width as Fit Width
https://bugzilla.gnome.org/show_bug.cgi?id=689468
2013-01-03 10:58:13 +01:00
William Jon McCann
ffd3853433 Rename Best Fit mode as Fit Page
https://bugzilla.gnome.org/show_bug.cgi?id=689468
2013-01-03 10:58:13 +01:00
Christian Persch
5373ec029e previewer: Port to GtkApplication 2012-10-01 14:37:04 +02:00
Carlos Garcia Campos
035c1cbd47 Use GtkOverlay to show the loading message
Remove the EvLoadingWindow from libview and move the implementation to
the shell using a EvLoadingMessage widget and GtkOverlay. EvView has now
a is-loading property that allows the users to implement their own
loading notification system. This fixes several realted to the loading
window.
2012-09-29 16:18:58 +02:00
Christian Persch
52714fde07 previewer: Don't dist generated files 2012-06-24 13:14:36 +02:00
Christian Persch
45be4867d8 previewer: Use GResource for data files 2012-06-24 11:54:24 +02:00
Christian Persch
a407989214 previewer: Remove glib < 2.32 compat code 2012-06-24 10:59:03 +02:00
Volker Sobek
fe888cb779 evince-previewer: Use primary-toolbar style class
Use GTK_STYLE_CLASS_PRIMARY_TOOLBAR for the toolbar in
evince-previewer.

https://bugzilla.gnome.org/show_bug.cgi?id=675310
2012-05-04 20:32:27 +02:00
Daniel Mustieles
df0bee7361 Removed deprecated GTK_POLICY_AUTOMATIC 2012-04-22 17:49:35 +02:00
Hib Eris
cfa0e003f6 Allow compiling with glib < 2.31.0 2011-12-14 19:57:27 +01:00
Carlos Garcia Campos
28cd78cfa7 Use gtk_box_new() instead of gtk_[hv]box_new() 2011-12-04 12:24:30 +01:00
Carlos Garcia Campos
bf90f90e0a Bump glib requirements to 2.31.0
And remove the use of deprecated glib symbols.
2011-11-20 17:05:09 +01:00
Carlos Garcia Campos
9ee4ac8558 Bump api and libtool versions and rename libview and libdocument libraries
See bug #626030
2010-08-19 10:27:14 +02:00
Hib Eris
c32bea667d [build] Rename DATADIR with EVINCEDATADIR
Defining DATADIR conflicts with win32 api (ObjIdl.h), so this define is
renamed to EVINCEDATADIR.
2010-07-26 15:34:18 +02:00
Hib Eris
bf0e0b42ce Remove some code duplication 2010-05-25 17:48:06 +02:00
Hib Eris
61c9b15fa5 [windows] Fix localization on Windows
Fixes bgo#610548
2010-05-25 14:23:03 +02:00
Marek Kasik
b016ef1e8b Convert relative path to absolute path for evince-previewer
Add ability to open documents specified by relative path in
evince-previewer.
2010-05-12 14:47:07 +02:00
Arun Persaud
19a00ed1cd Update FSF address everywhere.
updated where 'git grep Temple' showed an old address, not including po-files.

Fixes bug# 514607.

Signed-off-by: Arun Persaud <arun@nubati.net>
2010-04-05 11:24:46 +02:00
Diego Escalante Urrelo
615629a95b [previewer] Close with control + w
Fixes bug #612972.
2010-03-31 16:35:16 +02:00
Carlos Garcia Campos
4d91ce6a1f [previewer] Add some more keybindings 2010-03-31 16:18:18 +02:00
Carlos Garcia Campos
29e2d2c5e2 [previewer] Fix keybindings in previewer window
See bug #612972.
2010-03-31 16:17:02 +02:00
Carlos Garcia Campos
dfb1c0d617 [previewer] Use ev_document_misc_get_screen_dpi() 2010-02-21 12:37:02 +01:00