1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-06-30 22:54:23 +00:00
Commit Graph

91 Commits

Author SHA1 Message Date
Tanmay Patil
fb78fcf7ab Fix typo 2024-04-06 23:46:51 +05:30
Pablo Correa Gómez
1cf47ada81 thumnailer: Remove trailing whitespaces 2023-03-22 20:15:51 +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
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
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
Bastien Nocera
f25a684dd0 thumbnailer: Also handle trash and recent files as local files
By searching for the target.

https://bugzilla.gnome.org/show_bug.cgi?id=780351
2017-03-27 14:33:31 +02:00
Bastien Nocera
f6f98914dc thumbnailer: Don't copy remote files before thumbnailing
There's no need to copy the file locally when we can read it directly
through FUSE.

https://bugzilla.gnome.org/show_bug.cgi?id=780351
2017-03-27 14:33:31 +02:00
Bastien Nocera
c7135f75c8 thumbnailer: Speed up thumbnailing
By not loading the page cache for all the pages.

https://bugzilla.gnome.org/show_bug.cgi?id=780210
2017-03-26 13:01:32 +02:00
Ting-Wei Lan
972e6fabda thumbnailer: Call setlocale in main function
It is required to correctly show translated messages on some locales.

https://bugzilla.gnome.org/show_bug.cgi?id=760418
2016-01-31 10:35:55 +01:00
Sebastian Keller
3f28c8db52 thumbnailer: Use correct maximum size for thumbnail images
https://bugzilla.gnome.org/show_bug.cgi?id=740877
2014-11-29 10:34:15 +01:00
Christian Persch
d4216cc576 build: Don't use INCLUDES
It's deprecated. Instead use *_CPPFLAGS.
2013-07-26 21:26:35 +02:00
Christian Persch
c05289718c thumbnailer: Remove obsolete g_type_init call 2013-06-08 23:48:51 +02:00
Christian Persch
3b59d64cc5 thumbnailer: Send error messages to stderr
Use g_printerr, not g_print.
2012-08-07 15:02:10 +02:00
Christian Persch
171918fbaf thumbnailer: Remove unused code
The code to overlay an icon is unused since commit 808285c968.
2012-06-24 12:09:27 +02:00
Christian Persch
a60eb022c0 thumbnailer: Remove glib < 2.32 compat code 2012-06-24 10:59:03 +02:00
Hib Eris
cfa0e003f6 Allow compiling with glib < 2.31.0 2011-12-14 19:57:27 +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
6e6d6e2afa thumbnailer: limit thumbnailing time to 15 seconds by default
The limit can be disabled with no-limit command line option.

Fixes bug #651655.
2011-06-26 13:00:30 +02:00
Carlos Garcia Campos
eb3e783ab4 thumbnailer: Do not use GConf to register evince-thumbnailer
Use a key file instead and remove old gconf schemas. Fixes bug #638343
2011-01-08 11:04:37 +01:00
Carlos Garcia Campos
6ac3eb8adb Remove EvDocumentThumbnails interface
The only method get_thumbnail() has been moved to EvDocument. Thumbnails
are always implemented by backends since it's usually just rendering the
page at a lower scale factor. EvDocument provides a default
implementation so that most of the backends don't even need to implement
it.
2010-08-19 15:41:25 +02: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
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
Carlos Garcia Campos
d917caadaf [thumbnailer] Add gconf schemas for comic cbt files
Fixes bug #609501.
2010-02-21 10:59:56 +01:00
Philip Withnall
766adb9bff Assorted string fixes
Assorted string fixes, fixing some missing words, incorrect capitalisation;
and converting ellipses and dashes into the appropriate Unicode characters.
2010-02-03 15:21:35 +00:00
Hib Eris
9e435a09b6 [windows] Properly define the _WIN32_WINNT version 2009-12-29 17:35:59 +01:00
Carlos Garcia Campos
fd7c1a6873 [thumbnailer] Add support for remote files
Fixes bgo#605218.
2009-12-22 18:04:30 +01:00
Christian Persch
1bcbe16702 [build] Remove gitignore files from git
They're autogenerated now.
2009-10-25 20:57:24 +01:00
Christian Persch
f8a0165d07 [build] Include git.mk in all Makefiles 2009-10-22 11:53:07 +02:00
Christian Persch
05b38f9fa9 [build] Automatically keep .gitignore files updated
Import git.mk.
2009-10-22 00:36:20 +02:00
Carlos Garcia Campos
c4b192c34c Move part of the EvPageCache to EvDocument
The static data about the document is stored now in EvDocument class
2009-09-15 15:56:01 +02:00
Christian Persch
3f7764002b build: Add some more $(AM_V_GEN)s 2009-08-16 21:49:16 +02:00
Nickolay V. Shmyrev
5b96694056 [build] Don't install schema files without gconf
Fixes issue with schema files installed into root folder
2009-07-15 10:54:44 +04:00
Emilio Pozuelo Monfort
16adf49574 [thumbnailer] Register thumbnailing for gzip/gzip dvi files
Fixes bgo#588013.
2009-07-12 13:17:26 +02:00
Fridrich Strba
78ac55ced8 On Windows, when called from a console, get console output (works only
with Windows XP or higher. Windows 2000 will not have console output
but it will just work fine.)
2009-06-23 09:14:52 +02:00
Fridrich Strba
f575f06bfc On Windows, determine the data directory on runtime. 2009-06-23 09:13:56 +02:00
Christian Persch
6b0627d3a1 Append LDFLAGS
Don't replace LDFLAGS, just append to them.
2009-06-15 12:24:18 +02:00
Hib Eris
1603ac6503 [windows/build] Add -mwindows flag for true Windows apps 2009-06-15 10:50:51 +02:00
Christian Spurk
ea98b4b0e3 Reduce the restriction on the minimum size of thumbnails from 40 to 1. See
2009-02-27   Christian Spurk  <mail@code.chriki.de>

	* thumbnailer/evince-thumbnailer.c: (main):

	Reduce the restriction on the minimum size of thumbnails from 40
	to 1. See bug #323198.

svn path=/trunk/; revision=3499
2009-02-27 12:33:24 +00:00
Carlos Garcia Campos
fe69e587ff Use GOption in thumbnailer.
2009-02-27  Carlos Garcia Campos  <carlosgc@gnome.org>

	* thumbnailer/evince-thumbnailer.c: (print_usage), (main):

	Use GOption in thumbnailer.

svn path=/trunk/; revision=3498
2009-02-27 12:33:14 +00:00
Christian Persch
2d8aad40e1 A libdocument/ev-init.[ch]: Add single init/shutdown method. Bug #569117.
* evince-document.h:
	* libdocument/Makefile.am:
	A libdocument/ev-init.[ch]: Add single init/shutdown method. Bug
	#569117.

	* libdocument/ev-backends-manager.c: (_ev_backends_manager_init):
	* libdocument/ev-backends-manager.h:
	* libdocument/ev-debug.c: (_ev_debug_init), (_ev_debug_shutdown):
	* libdocument/ev-debug.h:
	* libdocument/ev-file-helpers.c: (_ev_file_helpers_init),
	(_ev_file_helpers_shutdown):
	* libdocument/ev-file-helpers.h: Make these init/shutdown methods
	private.

	* properties/ev-properties-main.c: (nautilus_module_initialize),
	(nautilus_module_shutdown):
	* shell/main.c: (main):
	* thumbnailer/evince-thumbnailer.c: (main): Use the new single
	init/shutdown method.

svn path=/trunk/; revision=3391
2009-01-30 18:40:17 +00:00
Christian Persch
4912987303 Renamed from evince-backend.pc.in. Renamed library to libevdocument.la.
* configure.ac:
        * evince-document.pc.in: Renamed from evince-backend.pc.in.
        * libdocument/Makefile.am: Renamed library to libevdocument.la.
        * libview/Makefile.am:
        * shell/Makefile.am:
        * backend/*/Makefile.am: Adapt to changed library name.

        * libdocument/Makefile.am:
        * libview/Makefile.am: Change the installed headers path to match
        the directory names in SVN.

        * evince-document.h:
        * evince-view.h: Add single headers. Bug #568227.

        * libdocument/*.h:
        * libview/*.h: Add single headers guards.

        * libview/Makefile.am:
        * libdocument/Makefile.am:
        * backend/*/Makefile.am:
        * help/reference/Makefile.am: Define EVINCE_COMPILATION, so we can
        still include individual headers.

        * properties/Makefile.am:
        * properties/ev-properties-main.c:
        * properties/ev-properties-view.h:
        * thumbnailer/Makefile.am:
        * thumbnailer/evince-thumbnailer.c: Include only evince-document.h.

        * libdocument/Makefile.am:
        * libview/Makefile.am: Generate type builtins from all installed headers.
        * libdocument/ev-link-action.[ch]:
        * libdocument/ev-link-dest.[ch]:
        * libdocument/ev-transition-effect.[ch]:
        * libview/ev-view.[ch]: Remove handcoded type builtins.

        * libdocument/Makefile.am:
        * evince-document.h: Add ev-document-factory.h to the public headers.

svn path=/trunk/; revision=3381
2009-01-25 15:08:57 +00:00
Nickolay V. Shmyrev
331bedb9ce Added support for 7-zip based cb7 comic book. Patch by Kartik Rustagi.
2008-07-11  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

	* backend/comics/comics-document.c (comics_document_load):
	* backend/comics/comicsdocument.evince-backend.in:
	* configure.ac:
	* thumbnailer/evince-thumbnailer-comics.schemas.in:
	
	Added support for 7-zip based cb7 comic book. Patch by
	Kartik Rustagi. Fixes bug #532312.


svn path=/trunk/; revision=3068
2008-07-11 07:22:01 +00:00
Carlos Garcia Campos
b8aebf2e1b Add EvPage so that we can hold a reference to the backend page. Form
2008-04-14  Carlos Garcia Campos  <carlosgc@gnome.org>

	* libdocument/Makefile.am:
	* libdocument/ev-page.[ch]:
	* libdocument/ev-render-context.[ch]: (ev_render_context_dispose),
	(ev_render_context_new), (ev_render_context_set_page):
	* libdocument/ev-form-field.[ch]: (ev_form_field_init),
	(ev_form_field_finalize), (ev_form_field_class_init):
	* libdocument/ev-document-forms.[ch]:
	(ev_document_forms_get_form_fields):
	* libdocument/ev-document.[ch]: (ev_document_get_page),
	(ev_document_get_page_size), (ev_document_get_page_label):
	* shell/ev-jobs.[ch]: (ev_job_thumbnail_dispose),
	(ev_job_render_run), (ev_job_thumbnail_new),
	(ev_job_thumbnail_run), (ev_job_print_run):
	* shell/ev-page-cache.c: (ev_page_cache_new):
	* shell/ev-pixbuf-cache.c: (job_page_ready_cb), (job_finished_cb),
	(check_job_size_and_unref), (add_job):
	* shell/ev-sidebar-thumbnails.c: (add_range):
	* shell/ev-view.c: (ev_view_form_field_get_region),
	(ev_view_form_field_button_create_widget),
	(ev_view_form_field_text_save), (ev_view_form_field_choice_save),
	(ev_view_handle_form_field), (ev_view_size_allocate),
	(get_selected_text):
	* shell/ev-window.c: (ev_window_refresh_window_thumbnail):
	* backend/pdf/ev-poppler.cc: (pdf_document_get_page_size),
	(pdf_document_get_page), (pdf_document_get_page_label),
	(pdf_document_render), (pdf_document_get_info),
	(pdf_document_document_iface_init),
	(pdf_document_thumbnails_get_thumbnail),
	(pdf_document_thumbnails_get_dimensions),
	(pdf_document_file_exporter_do_page),
	(pdf_selection_render_selection),
	(pdf_selection_get_selected_text),
	(pdf_selection_get_selection_region),
	(pdf_selection_get_selection_map),
	(pdf_document_forms_get_form_fields),
	(pdf_document_forms_form_field_text_get_text),
	(pdf_document_forms_form_field_text_set_text),
	(pdf_document_forms_form_field_button_set_state),
	(pdf_document_forms_form_field_button_get_state),
	(pdf_document_forms_form_field_choice_get_item),
	(pdf_document_forms_form_field_choice_get_n_items),
	(pdf_document_forms_form_field_choice_is_item_selected),
	(pdf_document_forms_form_field_choice_select_item),
	(pdf_document_forms_form_field_choice_toggle_item),
	(pdf_document_forms_form_field_choice_unselect_all),
	(pdf_document_forms_form_field_choice_set_text),
	(pdf_document_forms_form_field_choice_get_text):
	* backend/ps/ev-spectre.c: (ps_document_get_page),
	(ps_document_get_page_size), (ps_document_get_page_label),
	(ps_document_render), (ps_document_document_iface_init),
	(ps_document_file_exporter_do_page):
	* backend/tiff/tiff-document.c: (tiff_document_get_page_size),
	(tiff_document_render), (tiff_document_render_pixbuf),
	(tiff_document_file_exporter_do_page):
	* backend/pixbuf/pixbuf-document.c:
	(pixbuf_document_get_page_size):
	* backend/comics/comics-document.c:
	(comics_document_get_page_size), (comics_document_render_pixbuf):
	* backend/djvu/djvu-document.c: (djvu_document_get_page_size),
	(djvu_document_render), (djvu_selection_get_selected_text),
	(djvu_document_thumbnails_get_thumbnail),
	(djvu_document_file_exporter_do_page),
	(djvu_document_find_get_result):
	* backend/dvi/dvi-document.c: (dvi_document_get_page_size),
	(dvi_document_render), (dvi_document_thumbnails_get_dimensions),
	(dvi_document_thumbnails_get_thumbnail),
	(dvi_document_file_exporter_do_page):
	* backend/impress/impress-document.c:
	(impress_document_get_page_size),
	(impress_document_render_pixbuf):
	* thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get):

	Add EvPage so that we can hold a reference to the backend
	page. Form fields keep now a reference to the poppler page
	improving performance since we don't have to create/destroy the
	poppler field for every form operation. This will be needed for
	annotations too.

svn path=/trunk/; revision=3004
2008-04-14 17:07:39 +00:00
Matthias Clasen
36c0e159a0 Initialize glib type system before using it. Fixes bug #513934.
2008-02-08  Matthias Clasen  <mclasen@redhat.com>
	* thumbnailer/evince-thumbnailer.c: (main):
	Initialize glib type system before using it. Fixes bug #513934.

svn path=/trunk/; revision=2894
2008-02-08 11:00:44 +00:00
Carlos Garcia Campos
079768a628 Remove DJVU_LIBS from thumbnailer LDADD. Fixes bug #513203.
2008-01-30  Carlos Garcia Campos  <carlosgc@gnome.org>
	* thumbnailer/Makefile.am:
	Remove DJVU_LIBS from thumbnailer LDADD. Fixes bug #513203.

svn path=/trunk/; revision=2880
2008-01-30 18:55:23 +00:00
Carlos Garcia Campos
e912e532fd Port to gio and drop gnome-vfs dependency. Fixes bug #510401. Based on
2008-01-25  Carlos Garcia Campos  <carlosgc@gnome.org>
	* configure.ac:
	* backend/comics/comics-document.c: (comics_document_load):
	* libdocument/ev-attachment.[ch]: (ev_attachment_finalize),
	(ev_attachment_set_property), (ev_attachment_init),
	(ev_attachment_save), (ev_attachment_launch_app),
	(ev_attachment_open):
	* libdocument/ev-document-factory.c: (get_document_from_uri):
	* libdocument/ev-file-helpers.[ch]: (ev_tmp_file_get),
	(ev_tmp_file_unlink), (ev_tmp_uri_unlink), (ev_xfer_uri_simple),:
	* shell/ev-jobs.c:
	* shell/ev-password.c: (ev_password_dialog_set_property),
	(ev_password_dialog_save_password):
	* shell/ev-sidebar-attachments.c:
	(ev_sidebar_attachments_drag_data_get):
	* shell/ev-window-title.c: (get_filename_from_uri):
	* shell/ev-window.c: (ev_window_clear_temp_file),
	(ev_window_load_job_cb), (window_open_file_copy_ready_cb),
	(ev_window_open_uri), (window_save_file_copy_ready_cb),
	(ev_window_save_remote), (ev_window_cmd_save_as), (launch_action),
	(launch_external_uri), (image_save_dialog_response_cb),
	(attachment_save_dialog_response_cb):
	* shell/main.c: (load_files), (load_files_remote), (main):
	* thumbnailer/evince-thumbnailer.c: (main):
	Port to gio and drop gnome-vfs dependency. Fixes bug
	#510401. Based on patch by Cosimo Cecchi.

svn path=/trunk/; revision=2858
2008-01-25 12:30:28 +00:00
Christian Persch
1af6600934 Include config.h. Bug #504721.
2007-12-28  Christian Persch  <chpe@gnome.org>

	* **/*.c: Include config.h. Bug #504721.

svn path=/trunk/; revision=2787
2007-12-28 19:23:22 +00:00
Carlos Garcia Campos
31e16bd8f3 Plugin system for backends. Fixes bug #351348.
2007-12-28  Carlos Garcia Campos  <carlosgc@gnome.org>
	* configure.ac:
	* Makefile.am:
	* po/POTFILES.in:
	* backend/comics/Makefile.am:
	* backend/comics/comics-document.[ch]:
	* backend/comics/comicsdocument.evince-backend.in:
	* backend/djvu/Makefile.am:
	* backend/djvu/djvu-document.[ch]:
	* backend/djvu/djvudocument.evince-backend.in:
	* backend/dvi/Makefile.am:
	* backend/dvi/dvi-document.[c]:
	* backend/dvi/dvidocument.evince-backend.in:
	* backend/impress/Makefile.am:
	* backend/impress/impress-document.[ch]:
	* backend/impress/impressdocument.evince-backend.in:
	* backend/pdf/Makefile.am:
	* backend/pdf/ev-poppler.cc:
	* backend/pdf/ev-poppler.h:
	* backend/pdf/pdfdocument.evince-backend.in:
	* backend/pixbuf/Makefile.am:
	* backend/pixbuf/pixbuf-document.[ch]:
	* backend/pixbuf/pixbufdocument.evince-backend.in:
	* backend/ps/Makefile.am:
	* backend/ps/ev-spectre.[ch]:
	* backend/ps/ps-document.[ch]:
	* backend/ps/psdocument.evince-backend.in:
	* backend/tiff/Makefile.am:
	* backend/tiff/tiff-document.[ch]:
	* backend/tiff/tiffdocument.evince-backend.in:
	* libdocument/Makefile.am:
	* libdocument/ev-backends-manager.[ch]:
	* libdocument/ev-module.[ch]:
	* libdocument/ev-document.h:
	* libdocument/ev-document-factory.[ch]:
	(gdk_pixbuf_mime_type_list), (mime_type_supported_by_gdk_pixbuf),
	(get_compression_from_mime_type), (get_document_from_uri),
	(ev_document_factory_get_document), (file_filter_add_mime_types),
	(ev_document_factory_add_filters):
	* shell/Makefile.am:
	* shell/ev-window-title.c: (get_filename_from_uri):
	* shell/main.c: (main):
	* thumbnailer/Makefile.am:
	* thumbnailer/evince-thumbnailer.c: (main):
	Plugin system for backends. Fixes bug #351348.

svn path=/trunk/; revision=2786
2007-12-28 18:13:32 +00:00
Carlos Garcia Campos
f36c0556c6 Add support for ps, eps and compressed documents thumbnails. Do not ignore
2007-03-08  Carlos Garcia Campos  <carlosgc@gnome.org>
	* configure.ac:
	* thumbnailer/Makefile.am:
	* thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get):
	* thumbnailer/evince-thumbnailer.schemas.in:
	* thumbnailer/evince-thumbnailer-ps.schemas.in:
	Add support for ps, eps and compressed documents thumbnails. Do not
	ignore size parameter. 

svn path=/trunk/; revision=2398
2007-04-08 15:34:43 +00:00