Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libdocument
Commit message (Collapse)AuthorAgeFilesLines
* If the document is encrypted, the ev_document_factory_get_document() isChristian Persch2009-03-021-2/+4
| | | | | | | | | * libdocument/ev-document-factory.c: (ev_document_factory_get_document): If the document is encrypted, the ev_document_factory_get_document() is supposed to return the document *and* fill in the error. So let's propagate the local error. svn path=/trunk/; revision=3512
* Fix a freed memory read.Christian Persch2009-02-161-5/+6
| | | | | | | * libdocument/ev-file-helpers.c: (get_mime_type_from_uri): Fix a freed memory read. svn path=/trunk/; revision=3472
* Add more docsChristian Persch2009-02-152-8/+25
| | | | svn path=/trunk/; revision=3464
* Rename GIRs to EvinceDocument/EvinceView.Christian Persch2009-02-151-5/+5
| | | | | | | * libdocument/Makefile.am: * libview/Makefile.am: Rename GIRs to EvinceDocument/EvinceView. svn path=/trunk/; revision=3463
* Use g_intern_static_string.Christian Persch2009-02-151-1/+1
| | | | | | | * libdocument/ev-document-type-builtins.c.template: * libview/ev-view-type-builtins.c.template: Use g_intern_static_string. svn path=/trunk/; revision=3462
* Add code to catch backends incorrectly implementing the load vfunc.Christian Persch2009-02-151-2/+17
| | | | | | | * libdocument/ev-document.c: (ev_document_load): Add code to catch backends incorrectly implementing the load vfunc. svn path=/trunk/; revision=3460
* Use a local GError, and propagate as appropriate, making sure always toChristian Persch2009-02-151-38/+42
| | | | | | | | * libdocument/ev-document-factory.c: (ev_document_factory_get_document): Use a local GError, and propagate as appropriate, making sure always to fill in @error if returning NULL. svn path=/trunk/; revision=3459
* More docsChristian Persch2009-02-151-1/+7
| | | | svn path=/trunk/; revision=3457
* Docs updateChristian Persch2009-02-151-2/+2
| | | | svn path=/trunk/; revision=3449
* Remove unnecessary NULL check; g_strdup() is NULL-safe.Christian Persch2009-02-151-12/+9
| | | | | | | * libdocument/ev-document.c: (ev_document_info_copy): Remove unnecessary NULL check; g_strdup() is NULL-safe. svn path=/trunk/; revision=3448
* More docsChristian Persch2009-02-151-0/+11
| | | | svn path=/trunk/; revision=3447
* More docsChristian Persch2009-02-151-1/+29
| | | | svn path=/trunk/; revision=3446
* Document that this returns either NULL and fills in error, or non-NULL.Christian Persch2009-02-151-2/+20
| | | | | | | | * libdocument/ev-document-factory.c: (get_document_from_uri): Document that this returns either NULL and fills in error, or non-NULL. Use a local GError so we can reliably check it. svn path=/trunk/; revision=3445
* Use the content type to get the description, not the MIME type.Christian Persch2009-02-151-3/+7
| | | | | | | * libdocument/ev-document-factory.c: (get_document_from_uri): Use the content type to get the description, not the MIME type. svn path=/trunk/; revision=3443
* Make sure to fill in @error on failure. Also, since this is exported inChristian Persch2009-02-151-5/+21
| | | | | | | | * libdocument/ev-file-helpers.c: (compression_run): Make sure to fill in @error on failure. Also, since this is exported in public APIs, cope with the passed-in GError** being NULL. svn path=/trunk/; revision=3442
* More docsChristian Persch2009-02-151-0/+37
| | | | svn path=/trunk/; revision=3441
* NULL safety. (get_mime_type_from_data): Return the MIME type, not theChristian Persch2009-02-151-9/+18
| | | | | | | | * libdocument/ev-file-helpers.c: (get_mime_type_from_uri): NULL safety. (get_mime_type_from_data): Return the MIME type, not the content type. svn path=/trunk/; revision=3440
* Don't leak the input stream.Christian Persch2009-02-151-0/+3
| | | | | | | * libdocument/ev-file-helpers.c: (get_mime_type_from_data): Don't leak the input stream. svn path=/trunk/; revision=3439
* Propagate all errors upwards.Christian Persch2009-02-151-4/+8
| | | | | | | * libdocument/ev-file-helpers.c: (get_mime_type_from_data): Propagate all errors upwards. svn path=/trunk/; revision=3438
* Don't use more bytes from buffer than were read from the file.Christian Persch2009-02-151-1/+1
| | | | | | | * libdocument/ev-file-helpers.c: (get_mime_type_from_data): Don't use more bytes from buffer than were read from the file. svn path=/trunk/; revision=3437
* More docs.Christian Persch2009-02-151-0/+12
| | | | svn path=/trunk/; revision=3436
* Fixes bug #571787.Nickolay V. Shmyrev2009-02-151-4/+0
| | | | | | | | | | | 2009-02-15 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * properties/ev-properties-view.c (set_property): Fixes bug #571787. svn path=/trunk/; revision=3434
* Add experimental introspection support. Disabled by default; useChristian Persch2009-02-081-0/+43
| | | | | | | | | | * configure.ac: * libdocument/Makefile.am: * libview/Makefile.am: Add experimental introspection support. Disabled by default; use --enable-introspection to enable it. Bug #569083. svn path=/trunk/; revision=3422
* Use g_set_error_literal now that we depend on glib 2.18.Christian Persch2009-02-051-9/+9
| | | | | | | | | | | | | | | * backend/comics/comics-document.c: (comics_document_load): * backend/djvu/djvu-document.c: (djvu_document_load): * backend/dvi/dvi-document.c: (dvi_document_load): * backend/impress/impress-document.c: (impress_document_load): * backend/pdf/ev-poppler.cc: * libdocument/ev-document-factory.c: (get_document_from_uri), (ev_document_factory_get_document): * shell/ev-print-operation.c: (ev_print_operation_export_print_dialog_response_cb): Use g_set_error_literal now that we depend on glib 2.18. svn path=/trunk/; revision=3419
* Make ev_init() also bind the evince gettext domain, so i18n works in theChristian Persch2009-02-041-1/+7
| | | | | | | | | | * libdocument/ev-init.c: (ev_init): Make ev_init() also bind the evince gettext domain, so i18n works in the library. * properties/ev-properties-main.c: (nautilus_module_initialize): Remove extra bindtextdomain call. svn path=/trunk/; revision=3413
* Include gi18n-lib.h instead of gi18n.h.Christian Persch2009-02-042-2/+2
| | | | | | | | | | | | | | | | | | | | * backend/comics/comics-document.c: * backend/djvu/djvu-document.c: * backend/dvi/dvi-document.c: * backend/impress/impress-document.c: * backend/pdf/ev-poppler.cc: * backend/pixbuf/pixbuf-document.c: * backend/ps/ev-spectre.c: * backend/tiff/tiff-document.c: * libdocument/ev-attachment.c: * libdocument/ev-document-factory.c: * libview/ev-jobs.c: * libview/ev-view-accessible.c: * libview/ev-view.c: * properties/ev-properties-view.c: Include gi18n-lib.h instead of gi18n.h. svn path=/trunk/; revision=3412
* Don't make GTypeInfo static. Bug #570077.Christian Persch2009-02-011-1/+1
| | | | | | * libdocument/ev-document.h: Don't make GTypeInfo static. Bug #570077. svn path=/trunk/; revision=3400
* Fix build when debug mode is disabled.Carlos Garcia Campos2009-02-011-2/+2
| | | | | | | | | | 2009-02-01 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-debug.h: Fix build when debug mode is disabled. svn path=/trunk/; revision=3395
* Make this return TRUE only if any backends were loaded, so the ev_init()Christian Persch2009-01-301-1/+1
| | | | | | | | * libdocument/ev-backends-manager.c: (ev_backends_manager_load): Make this return TRUE only if any backends were loaded, so the ev_init() function works as documented. svn path=/trunk/; revision=3393
* Fix licence version: it's Lesser GPL 2.1.Christian Persch2009-01-302-2/+2
| | | | svn path=/trunk/; revision=3392
* A libdocument/ev-init.[ch]: Add single init/shutdown method. Bug #569117.Christian Persch2009-01-309-13/+149
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Move ev_dot_dir() from libdocument to shell, since it shouldn't be publicChristian Persch2009-01-262-35/+12
| | | | | | | | | | | | | | | | | | | * libdocument/ev-file-helpers.c: (ev_dir_ensure_exists), (ev_tmp_dir), (ev_file_helpers_init), (ev_file_helpers_shutdown): * libdocument/ev-file-helpers.h: * shell/ev-application.c: (ev_application_shutdown), (ev_application_init), (ev_application_screensaver_disable), (ev_application_save_print_settings), (ev_application_set_page_setup): * shell/ev-application.h: * shell/ev-metadata-manager.c: (load_values), (ev_metadata_manager_save): Move ev_dot_dir() from libdocument to shell, since it shouldn't be public API. Bug #569120. * libdocument/ev-file-helpers.c: (ev_tmp_filename): Use g_get_prgname() instead of hardcoding "evince" for the tmpdir name. svn path=/trunk/; revision=3383
* Bug 569082 – use versioned directory for backendsChristian Persch2009-01-251-1/+1
| | | | | | | | | | * configure.ac: Define ev_binary_version and backenddir. * evince-document.pc.in: Add backenddir variable. * libdocument/Makefile.am: * backend/*/Makefile.am: Remove backenddir definition, so it picks up the one from configure. svn path=/trunk/; revision=3382
* Renamed from evince-backend.pc.in. Renamed library to libevdocument.la.Christian Persch2009-01-2536-146/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add EV_DEFINE_INTERFACE macro.Carlos Garcia Campos2009-01-2414-272/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-24 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document.h: Add EV_DEFINE_INTERFACE macro. * libdocument/ev-async-renderer.c: * libdocument/ev-document-find.c: * libdocument/ev-document-fonts.c: * libdocument/ev-document-forms.c: * libdocument/ev-document-images.c: * libdocument/ev-document-layers.c: * libdocument/ev-document-links.c: * libdocument/ev-document-security.c: * libdocument/ev-document-thumbnails.c: * libdocument/ev-document-transition.c: * libdocument/ev-document.c: * libdocument/ev-file-exporter.c: * libdocument/ev-selection.c: Use EV_DEFINE_INTERFACE macro to define interfaces in libdocument. See bug #568228. svn path=/trunk/; revision=3379
* Add EV_DEFINE_BOXED_TYPE macro to define boxed types. See bug #568228.Carlos Garcia Campos2009-01-242-10/+21
| | | | | | | | | | | 2009-01-24 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document.[ch]: Add EV_DEFINE_BOXED_TYPE macro to define boxed types. See bug #568228. svn path=/trunk/; revision=3378
* When saving a file, using the default permissions for the user/system,Michael J. Chudobiak2009-01-221-0/+3
| | | | | | | | | | | | 2009-01-22 Michael J. Chudobiak <mjc@svn.gnome.org> * libdocument/ev-file-helpers.c: (ev_xfer_uri_simple): When saving a file, using the default permissions for the user/system, respecting umask and any setgid bit on the directory. Uses the new G_FILE_COPY_TARGET_DEFAULT_PERMS flag in glib 2.19.0, if available. svn path=/trunk/; revision=3374
* Bug 568229 – library needs libtool versioningChristian Persch2009-01-211-1/+6
| | | | svn path=/trunk/; revision=3373
* Bug 568224 – library should have version macrosChristian Persch2009-01-212-2/+34
| | | | svn path=/trunk/; revision=3371
* Add missing EV_TYPE_DOCUMENT_INFO. See bug #567790.Tomeu Vizoso2009-01-201-0/+2
| | | | | | | | | | 2009-01-20 Tomeu Vizoso <tomeu@sugarlabs.org> * libdocument/ev-document-info.h: Add missing EV_TYPE_DOCUMENT_INFO. See bug #567790. svn path=/trunk/; revision=3369
* Install ev-backends-manager.h and ev-document-type-builtins.h. Fixes bugTomeu Vizoso2009-01-201-2/+2
| | | | | | | | | | | 2009-01-20 Tomeu Vizoso <tomeu@sugarlabs.org> * libdocument/Makefile.am: Install ev-backends-manager.h and ev-document-type-builtins.h. Fixes bug #567787. svn path=/trunk/; revision=3367
* Clean stamp filesNickolay V. Shmyrev2009-01-181-1/+1
| | | | svn path=/trunk/; revision=3362
* Fixes distcheckNickolay V. Shmyrev2009-01-181-0/+4
| | | | svn path=/trunk/; revision=3360
* Make EvDocumentInfo and enums definded in ev-document-info.h GTypes. FixesTomeu Vizoso2009-01-185-7/+139
| | | | | | | | | | | | | | | | 2009-01-18 Tomeu Vizoso <tomeu@sugarlabs.org> * libdocument/Makefile.am: * libdocument/ev-document-info.h: * libdocument/ev-document-type-builtins.c.template: * libdocument/ev-document-type-builtins.h.template: * libdocument/ev-document.c: (ev_document_info_get_type), (ev_document_info_copy): Make EvDocumentInfo and enums definded in ev-document-info.h GTypes. Fixes bug #567789. svn path=/trunk/; revision=3356
* Rename LIB as LIBDOCUMENT and use SHELL_CORE for cut-n-paste code.Carlos Garcia Campos2009-01-181-2/+2
| | | | | | | | | | | | | 2009-01-18 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * cut-n-paste/*/Makefile.am: * libdocument/Makefile.am: Rename LIB as LIBDOCUMENT and use SHELL_CORE for cut-n-paste code. svn path=/trunk/; revision=3352
* Remove unused marshalers stuff from libdocument.Carlos Garcia Campos2009-01-184-20/+0
| | | | | | | | | | | | | 2009-01-18 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/Makefile.am: * libdocument/ev-backend-marshal.c: * libdocument/ev-backend-marshalers.list: * libdocument/ev-document.c: Remove unused marshalers stuff from libdocument. svn path=/trunk/; revision=3350
* Move EvView specific code to a libeviview library so that it can beCarlos Garcia Campos2009-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-18 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * Makefile.am: * libdocument/Makefile.am: * libview/Makefile.am: * libview/ev-job-scheduler.[ch]: * libview/ev-jobs.[ch]: * libview/ev-page-cache.[ch]: * libview/ev-pixbuf-cache.[ch]: * libview/ev-timeline.[ch]: * libview/ev-transition-animation.[ch]: * libview/ev-view-accessible.[ch]: * libview/ev-view-marshal.list: * libview/ev-view.[ch]: * shell/Makefile.am: Move EvView specific code to a libeviview library so that it can be embbeded in other applications. Based on patches by Tomeu Vizoso. Fixes bug #567751. svn path=/trunk/; revision=3348
* Fix mime type handling.Hib Eris2008-12-311-1/+2
| | | | | | | | | | 2008-12-31 Hib Eris <hib@hiberis.nl> * libdocument/ev-file-helpers.c: (get_mime_type_from_uri): Fix mime type handling. svn path=/trunk/; revision=3318
* Show better warning message when temp file cannot be deleted.Carlos Garcia Campos2008-12-301-2/+4
| | | | | | | | | | 2008-12-30 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-file-helpers.c: (ev_tmp_file_unlink): Show better warning message when temp file cannot be deleted. svn path=/trunk/; revision=3315
* Add GObject type as prerequisite to EvDocument interface so that documentCarlos Garcia Campos2008-12-271-0/+2
| | | | | | | | | | | 2008-12-24 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document.c: (ev_document_get_type): Add GObject type as prerequisite to EvDocument interface so that document instances can be used as GObjects. svn path=/trunk/; revision=3304