Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libdocument
Commit message (Collapse)AuthorAgeFilesLines
...
* Move mime-type functions from document-facrory to file-helpers so that itCarlos Garcia Campos2008-11-293-58/+68
| | | | | | | | | | | | | | 2008-11-29 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-factory.c: (get_document_from_uri), (ev_document_factory_get_document): * libdocument/ev-file-helpers.[ch]: (get_mime_type_from_uri), (get_mime_type_from_data), (ev_file_get_mime_type): Move mime-type functions from document-facrory to file-helpers so that it can be reused. svn path=/trunk/; revision=3279
* Add optional content (layers) interface.Carlos Garcia Campos2008-11-155-0/+315
| | | | | | | | | | | | 2008-11-15 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/Makefile.am: * libdocument/ev-document-layers.[ch]: * libdocument/ev-layer.[ch]: Add optional content (layers) interface. svn path=/trunk/; revision=3264
* Initialize GError to NULL.Carlos Garcia Campos2008-11-011-1/+1
| | | | | | | | | | 2008-11-01 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-file-helpers.c: (ev_xfer_uri_simple): Initialize GError to NULL. svn path=/trunk/; revision=3247
* Bug 558064 – build with single includesChristian Persch2008-10-275-5/+4
| | | | svn path=/trunk/; revision=3240
* Use GdkAppLaunchContext when available to open attachments.Carlos Garcia Campos2008-09-052-6/+25
| | | | | | | | | | | | | | 2008-09-05 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-attachment.[ch]: (ev_attachment_launch_app), (ev_attachment_open): * shell/ev-sidebar-attachments.c: (ev_sidebar_attachments_button_press): * shell/ev-window.c: (ev_attachment_popup_cmd_open_attachment): Use GdkAppLaunchContext when available to open attachments. svn path=/trunk/; revision=3152
* EggSMClient copied from libeggCarlos Garcia Campos2008-08-311-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-31 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * cut-n-paste/Makefile.am: * cut-n-paste/smclient/Makefile.am: * cut-n-paste/smclient/eggdesktopfile.[ch]: * cut-n-paste/smclient/eggsmclient-private.h: * cut-n-paste/smclient/eggsmclient-xsmp.c: * cut-n-paste/smclient/eggsmclient.[ch]: EggSMClient copied from libegg * libdocument/ev-file-helpers.c: (ev_dot_dir): * shell/Makefile.am: * shell/ev-application.[ch]: (ev_application_load_session), (smclient_save_state_cb), (smclient_quit_cb), (ev_application_init_session), (ev_application_shutdown), (ev_application_init): * shell/main.c: (main): Use EggSMClient instead of gnome-client and remove libgnome and libgnomeui dependencies. svn path=/trunk/; revision=3130
* RemovedCarlos Garcia Campos2008-08-272-127/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-27 Carlos Garcia Campos <carlosgc@gnome.org> * backend/djvu/Makefile.am: * backend/djvu/djvu-document-private.h: * backend/djvu/djvu-document.c: (djvu_document_find_find_text), (djvu_document_find_iface_init): * backend/djvu/djvu-text-page.[ch]: * backend/djvu/djvu-text.[ch]: Removed * backend/pdf/ev-poppler.cc: (pdf_document_find_find_text), (pdf_document_find_iface_init): * libdocument/ev-document-find.[ch]: (ev_document_find_find_text): * shell/ev-jobs.[ch]: (ev_job_find_init), (ev_job_find_dispose), (ev_job_find_run), (ev_job_find_class_init), (ev_job_find_new), (ev_job_find_get_n_results), (ev_job_find_get_progress), (ev_job_find_has_results), (ev_job_find_get_results): * shell/ev-view-private.h: * shell/ev-view.[ch]: (ev_view_expose_event), (highlight_find_results), (ev_view_finalize), (ev_view_get_property), (ev_view_class_init), (page_changed_cb), (ev_view_set_document), (ev_view_find_get_n_results), (ev_view_find_get_result), (jump_to_find_result), (jump_to_find_page), (ev_view_find_changed), (ev_view_find_next), (ev_view_find_previous), (ev_view_find_search_changed), (ev_view_find_set_highlight_search), (ev_view_find_cancel): * shell/ev-window.c: (ev_window_update_actions), (page_changed_cb), (ev_window_setup_document), (ev_window_update_find_status_message), (ev_window_find_job_finished_cb), (ev_window_find_job_updated_cb), (ev_window_clear_find_job), (find_bar_close_cb), (find_bar_search_changed_cb), (find_bar_visibility_changed_cb), (ev_window_dispose), (ev_window_init): Rework find interface. The find logic has been moved from backends to the shell avoiding a lot of duplicated code in the backends and making easier to implement the find interface in the backends. svn path=/trunk/; revision=3123
* More #include cleanups. Again: reordering, single gtk.h includes and otherWouter Bolsterlee2008-08-035-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-03 Wouter Bolsterlee <wbolster@svn.gnome.org> * backend/impress/impress-document.c: * backend/impress/render.h: * libdocument/ev-document-factory.c: * libdocument/ev-document-factory.h: * libdocument/ev-document-links.h: * libdocument/ev-document-misc.c: * libdocument/ev-document-misc.h: * properties/ev-properties-main.c: * properties/ev-properties-view.c: * properties/ev-properties-view.h: * shell/eggfindbar.c: * shell/eggfindbar.h: * shell/ev-application.c: * shell/ev-application.h: * shell/ev-jobs.h: * shell/ev-message-area.h: * shell/ev-navigation-action.c: * shell/ev-navigation-action.h: * shell/ev-open-recent-action.c: * shell/ev-open-recent-action.h: * shell/ev-page-action-widget.c: * shell/ev-page-action.c: * shell/ev-page-action.h: * shell/ev-page-cache.h: * shell/ev-password-view.h: * shell/ev-password.h: * shell/ev-pixbuf-cache.h: * shell/ev-properties-fonts.c: * shell/ev-sidebar-attachments.c: * shell/ev-sidebar-links.c: * shell/ev-sidebar-links.h: * shell/ev-sidebar-thumbnails.c: * shell/ev-sidebar-thumbnails.h: * shell/ev-sidebar.c: * shell/ev-sidebar.h: * shell/ev-stock-icons.c: * shell/ev-tooltip.h: * shell/ev-view.c: * shell/ev-view.h: * shell/ev-window.c: * shell/ev-window.h: * shell/main.c: More #include cleanups. Again: reordering, single gtk.h includes and other stuff. svn path=/trunk/; revision=3095
* Rework the jobs system in order to make it simpler and more extensible. ItCarlos Garcia Campos2008-08-032-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-03 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document.[ch]: (ev_document_doc_mutex_trylock), (ev_document_fc_mutex_trylock): * shell/Makefile.am: * shell/ev-job-queue.[ch]: * shell/ev-job-scheduler.[ch]: * shell/ev-jobs.[ch]: (ev_job_init), (ev_job_dispose), (ev_job_class_init), (emit_finished), (ev_job_emit_finished), (ev_job_run), (ev_job_cancel), (ev_job_failed), (ev_job_failed_from_error), (ev_job_succeeded), (ev_job_is_finished), (ev_job_is_failed), (ev_job_get_run_mode), (ev_job_set_run_mode), (ev_job_links_init), (ev_job_links_run), (ev_job_links_class_init), (ev_job_render_init), (notify_page_ready), (ev_job_render_page_ready), (ev_job_render_run), (ev_job_render_class_init), (ev_job_thumbnail_init), (ev_job_thumbnail_run), (ev_job_thumbnail_class_init), (ev_job_fonts_init), (ev_job_fonts_run), (ev_job_fonts_class_init), (ev_job_load_init), (ev_job_load_run), (ev_job_load_class_init), (ev_job_save_init), (ev_job_save_dispose), (ev_job_save_run), (ev_job_save_class_init), (ev_job_print_init), (ev_job_print_dispose), (ev_job_print_run), (ev_job_print_class_init): * shell/ev-page-cache.c: * shell/ev-pixbuf-cache.[ch]: (dispose_cache_job_info), (check_job_size_and_unref), (move_one_job), (copy_job_to_job_info), (add_job), (ev_pixbuf_cache_add_jobs_if_needed): * shell/ev-properties-fonts.c: (ev_properties_fonts_dispose), (job_fonts_finished_cb), (job_fonts_updated_cb), (ev_properties_fonts_set_document): * shell/ev-sidebar-links.c: (ev_sidebar_links_dispose), (ev_sidebar_links_set_document): * shell/ev-sidebar-thumbnails.c: (clear_range), (add_range), (ev_sidebar_thumbnails_set_document), (ev_sidebar_thumbnails_clear_job): * shell/ev-view-private.h: * shell/ev-view.c: * shell/ev-window.c: (ev_window_clear_thumbnail_job), (ev_window_refresh_window_thumbnail), (password_dialog_response), (ev_window_clear_load_job), (ev_window_clear_reload_job), (ev_window_load_job_cb), (ev_window_reload_job_cb), (window_open_file_copy_ready_cb), (ev_window_open_uri), (ev_window_reload_document), (ev_window_clear_save_job), (ev_window_save_job_cb), (file_save_dialog_response_cb), (ev_window_clear_print_job), (ev_window_print_job_cb), (ev_window_print_dialog_response_cb): * shell/main.c: (main): Rework the jobs system in order to make it simpler and more extensible. It allows to run jobs in the main loop instead of using a thread when it's appropriate like the fonts job. Now it's also possible to cancel jobs that are currently running. svn path=/trunk/; revision=3092
* Create the hash table also when profiling service is enabled for allCarlos Garcia Campos2008-07-271-5/+4
| | | | | | | | | | | 2008-07-27 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-debug.c: (profile_init): Create the hash table also when profiling service is enabled for all sections. svn path=/trunk/; revision=3087
* Add a profile mode available when debug is enabled. Add profilers inCarlos Garcia Campos2008-07-272-13/+136
| | | | | | | | | | | | | | | | | 2008-07-27 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-debug.[ch]: (ev_profiler_start), (ev_profiler_stop): * shell/ev-jobs.c: (ev_job_finished), (ev_job_links_run), (notify_page_ready), (ev_job_render_run), (ev_job_thumbnail_run), (ev_job_fonts_run), (ev_job_load_run), (ev_job_save_run), (ev_job_print_run): * shell/main.c: (main): Add a profile mode available when debug is enabled. Add profilers in ev-jobs. svn path=/trunk/; revision=3086
* Make sure we always return a valid error struct when get_document_from_uriCarlos Garcia Campos2008-07-201-1/+8
| | | | | | | | | | | | | 2008-07-20 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-factory.c: (get_mime_type_from_data), (get_document_from_uri): Make sure we always return a valid error struct when get_document_from_uri fails. Fixes nautilus crash, see bug #542548. svn path=/trunk/; revision=3076
* Fixes bug #542924. Makes enums static to fix Solaris build.Darren Kenny2008-07-141-3/+3
| | | | | | | | | | | | | | 2008-07-15 Darren Kenny <darren.kenny@sun.com> * libdocument/ev-transition-effect.c (ev_transition_effect_type_get_type), (ev_transition_effect_alignment_get_type), (ev_transition_effect_direction_get_type): Fixes bug #542924. Makes enums static to fix Solaris build. svn path=/trunk/; revision=3071
* Fix bytes order on big endian. Patch by Benjamin Jacobs. Fixes bugCarlos Garcia Campos2008-07-131-4/+4
| | | | | | | | | | | | 2008-07-13 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-misc.c: (ev_document_misc_pixbuf_from_surface): Fix bytes order on big endian. Patch by Benjamin Jacobs. Fixes bug #540950. svn path=/trunk/; revision=3069
* Fix some build warnings under GCC 4.3.0. (#537535).Cosimo Cecchi2008-06-103-4/+4
| | | | | | | | | | | | | | | | | | | | | | 2008-06-10 Cosimo Cecchi <cosimoc@gnome.org> * libdocument/ev-backends-manager.c: (ev_backends_manager_load): * libdocument/ev-image.c: (ev_image_save_tmp): * libdocument/ev-module.c: (ev_module_load): * shell/ev-application.c: (ev_application_shutdown), (ev_application_get_print_settings): * shell/ev-sidebar-attachments.c: (ev_sidebar_attachments_button_press), (ev_sidebar_attachments_drag_data_get): * shell/ev-window.c: (window_save_file_copy_ready_cb), (ev_window_print_finished), (ev_window_print_send), (ev_window_print_job_cb), (ev_window_cmd_help_contents), (ev_window_preview_print_finished), (ev_window_do_preview_print), (ev_window_cmd_preview_print): * shell/main.c: (load_files_remote): Fix some build warnings under GCC 4.3.0. (#537535). svn path=/trunk/; revision=3049
* fixed typo in ev-debug.h filename. Bug #533897.Frederic Peters2008-05-191-1/+1
| | | | | | | | | | 2008-05-19 Frederic Peters <fpeters@0d.be> * libdocument/Makefile.am: fixed typo in ev-debug.h filename. Bug #533897. svn path=/trunk/; revision=3036
* Merge branch 'ev-debug' into workCarlos Garcia Campos2008-04-274-8/+160
| | | | svn path=/trunk/; revision=3025
* Fix memory leak.Carlos Garcia Campos2008-04-241-2/+5
| | | | | | | | | | 2008-04-24 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-factory.c: (get_document_from_uri): Fix memory leak. svn path=/trunk/; revision=3022
* Improved error message about file opening failture. Bug #529129.Jean Baptiste Lallement2008-04-231-12/+10
| | | | | | | | | | | | | 2008-04-24 Jean Baptiste Lallement <jeanbaptiste.lallement@gmail.com> * libdocument/ev-document-factory.c (get_mime_type_from_uri), (get_mime_type_from_data), (get_document_from_uri), (ev_document_factory_get_document): Improved error message about file opening failture. Bug #529129. svn path=/trunk/; revision=3021
* Use the pixbuf backend only when the mime type is not supported by any ofCarlos Garcia Campos2008-04-191-5/+3
| | | | | | | | | | | | | 2008-04-19 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-factory.c: (get_document_from_uri): Use the pixbuf backend only when the mime type is not supported by any of the other backend so that tiff documents, for instance, are handled by the tiff backend instead of the pixbuf backend. fixes bug #520290. svn path=/trunk/; revision=3012
* Add EvPage so that we can hold a reference to the backend page. FormCarlos Garcia Campos2008-04-1411-37/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix selections with poppler-splash.Carlos Garcia Campos2008-03-141-2/+3
| | | | | | | | | | | 2008-03-14 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-misc.c: (ev_document_misc_surface_from_pixbuf): Fix selections with poppler-splash. svn path=/trunk/; revision=2966
* Allow making backend modules resident. This is needed only for someCarlos Garcia Campos2008-03-033-3/+14
| | | | | | | | | | | | | | | | 2008-03-03 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/pdfdocument.evince-backend.in: * libdocument/ev-backends-manager.c: (ev_backends_manager_load_backend), (ev_backends_manager_get_document): * libdocument/ev-module.[ch]: (ev_module_load), (ev_module_new): Allow making backend modules resident. This is needed only for some backends like pdf to avoid registering glib types more than once. svn path=/trunk/; revision=2943
* Use g_type_module_add_interface instead of g_type_add_interface_static.Carlos Garcia Campos2008-03-031-2/+20
| | | | | | | | | | | | | | | | | | | | 2008-03-03 Carlos Garcia Campos <carlosgc@gnome.org> * backend/comics/comics-document.c: * backend/djvu/djvu-document.c: * backend/impress/impress-document.c: * backend/pdf/ev-poppler.cc: * backend/pixbuf/pixbuf-document.c: * backend/ps/ev-spectre.c: * backend/ps/ps-document.c: * backend/tiff/tiff-document.c: * libdocument/ev-document.h: * properties/ev-properties-main.c: Use g_type_module_add_interface instead of g_type_add_interface_static. Fixes bug #519679. svn path=/trunk/; revision=2942
* Duplicate mime_type string before freeing it so that it doesn't alwaysCarlos Garcia Campos2008-02-271-6/+6
| | | | | | | | | | | 2008-02-27 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-factory.c: (get_mime_type_from_uri): Duplicate mime_type string before freeing it so that it doesn't always fail when getting mime type from uri. Fixes bug #518874. svn path=/trunk/; revision=2931
* Return a real uri instead of a filename when saving an image. Fixes imagesCarlos Garcia Campos2008-02-161-6/+14
| | | | | | | | | | 2008-02-16 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-image.c: (ev_image_finalize), (ev_image_save_tmp): Return a real uri instead of a filename when saving an image. Fixes images drag an drop from evince to nautilus. svn path=/trunk/; revision=2917
* Use g_content_type_guess() only when slow is true inCarlos Garcia Campos2008-01-311-74/+64
| | | | | | | | | | 2008-01-31 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-factory.c: (get_mime_type_from_uri), (get_mime_type_from_data), (get_document_from_uri): Use g_content_type_guess() only when slow is true in get_document_from_uri(). Fix several memory leaks. svn path=/trunk/; revision=2883
* Use g_content_type_guess () to get mimetype for files. Bug #510401.Cosimo Cecchi2008-01-301-16/+67
| | | | | | | | | | | | | 2008-01-30 Cosimo Cecchi <cosimoc@svn.gnome.org> * libdocument/ev-document-factory.c: (throw_unknown_mime_type_error), (throw_failed_to_get_info_error), (get_document_from_uri): Use g_content_type_guess () to get mimetype for files. Bug #510401. svn path=/trunk/; revision=2881
* Port to gio and drop gnome-vfs dependency. Fixes bug #510401. Based onCarlos Garcia Campos2008-01-255-125/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix memory leak.Carlos Garcia Campos2008-01-231-0/+2
| | | | | | | | 2008-01-23 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-backends-manager.c: (ev_backends_manager_load): Fix memory leak. svn path=/trunk/; revision=2842
* Do not render images when rendering the page but on demand. It reduces theCarlos Garcia Campos2008-01-194-20/+67
| | | | | | | | | | | | | | | | | | | | | | 2008-01-19 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_document_images_get_image_mapping), (pdf_document_images_get_image), (pdf_document_document_images_iface_init): * libdocument/ev-document-images.[ch]: (ev_document_images_get_image_mapping), (ev_document_images_get_image): * libdocument/ev-image.[ch]: (ev_image_new), (ev_image_get_page), (ev_image_get_id), (ev_image_save_tmp): * shell/ev-jobs.c: (ev_job_render_run): * shell/ev-view.c: (ev_view_drag_data_get): * shell/ev-window.c: (image_save_dialog_response_cb), (ev_view_popup_cmd_copy_image): Do not render images when rendering the page but on demand. It reduces the memory comsumption. svn path=/trunk/; revision=2835
* New files, define a page transition effect, at the moment it mapsCarlos Garnacho2008-01-045-7/+401
| | | | | | | | | | | | | | | 2008-01-04 Carlos Garnacho <carlosg@gnome.org> * libdocument/ev-transition-effect.[ch]: New files, define a page transition effect, at the moment it maps PopplerPageTransition to a GObject. * libdocument/Makefile.am: Added these files to build. * libdocument/ev-document-transition.[ch] (ev_document_transition_get_effect): New method, gets the EvTransitionEffect returned by the interface implementation, with fallback to the "replace" effect. svn path=/trunk/; revision=2796
* Include config.h. Bug #504721.Christian Persch2007-12-2814-0/+14
| | | | | | | | 2007-12-28 Christian Persch <chpe@gnome.org> * **/*.c: Include config.h. Bug #504721. svn path=/trunk/; revision=2787
* Plugin system for backends. Fixes bug #351348.Carlos Garcia Campos2007-12-288-358/+797
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Do not change left, top and zoom values when they are null in PDFCarlos Garcia Campos2007-12-142-17/+91
| | | | | | | | | | | | | | | | | 2007-12-14 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (ev_link_dest_from_dest): * libdocument/ev-link-dest.[ch]: (ev_link_dest_get_top), (ev_link_dest_get_left), (ev_link_dest_get_zoom), (ev_link_dest_get_property), (ev_link_dest_set_property), (ev_link_dest_class_init), (ev_link_dest_new_xyz), (ev_link_dest_new_fith), (ev_link_dest_new_fitv), (ev_link_dest_new_fitr): * shell/ev-view.c: (goto_fitr_dest), (goto_fitv_dest), (goto_fith_dest), (goto_xyz_dest): Do not change left, top and zoom values when they are null in PDF destinations. Fixes bug #460658. svn path=/trunk/; revision=2769
* When printing multiple pages per sheet in reverse option, do not invertCarlos Garcia Campos2007-10-112-0/+22
| | | | | | | | | | | | | | | | | | | 2007-10-11 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin_page), (pdf_document_file_exporter_do_page), (pdf_document_file_exporter_end_page), (pdf_document_file_exporter_iface_init): * libdocument/ev-file-exporter.[ch]: (ev_file_exporter_begin_page), (ev_file_exporter_end_page): * shell/ev-jobs.c: (ev_job_print_get_page_list), (ev_job_print_run): When printing multiple pages per sheet in reverse option, do not invert the order of the pages in every sheet, but the order of the sheets. Do not print blank pages when page range is invalid. Fixes bugs #484857 and #485521. svn path=/trunk/; revision=2700
* Actually fix printing regressions. Remove orientation from EvPrintContextCarlos Garcia Campos2007-09-011-14/+8
| | | | | | | | | | | | | 2007-09-01 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin), (pdf_document_file_exporter_do_page): * libdocument/ev-file-exporter.h: * shell/ev-jobs.[ch]: (ev_job_print_new), (ev_job_print_run): * shell/ev-window.c: (ev_window_print_dialog_response_cb): Actually fix printing regressions. Remove orientation from EvPrintContext since it's redundant. svn path=/trunk/; revision=2649
* Add support for double and triple click selections.Carlos Garcia Campos2007-08-314-35/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-31 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/dvi-document.c: (dvi_document_document_iface_init): * backend/impress/impress-document.c: (impress_document_document_iface_init): * backend/ps/ps-document.c: (ps_document_document_iface_init): * backend/djvu/djvu-document.c: (djvu_document_document_iface_init), (djvu_selection_get_selected_text), (djvu_selection_iface_init): * backend/tiff/tiff-document.c: (tiff_document_document_iface_init): * backend/pixbuf/pixbuf-document.c: (pixbuf_document_document_iface_init): * backend/comics/comics-document.c: (comics_document_document_iface_init): * backend/pdf/ev-poppler.cc: (pdf_document_document_iface_init), (pdf_selection_render_selection), (pdf_selection_get_selected_text), (pdf_selection_get_selection_region), (pdf_selection_get_selection_map), (pdf_selection_iface_init): * libdocument/ev-selection.[ch]: (ev_selection_get_selected_text), (ev_selection_get_selection_region), (ev_selection_get_selection_map): * libdocument/ev-document.[ch]: * shell/ev-pixbuf-cache.[ch]: (add_job), (ev_pixbuf_cache_get_selection_surface), (update_job_selection): * shell/ev-view-private.h: * shell/ev-jobs.[ch]: (ev_job_render_new), (ev_job_render_new), (ev_job_render_run): * shell/ev-window.c: (ev_window_setup_action_sensitivity): * shell/ev-view.c: (start_selection_for_event), (ev_view_button_press_event), (ev_view_drag_data_get), (ev_view_drag_data_received), (ev_view_button_release_event), (compute_new_selection_text), (compute_selections), (ev_view_select_all), (get_selected_text), (ev_view_copy), (ev_view_primary_get_cb): Add support for double and triple click selections. svn path=/trunk/; revision=2648
* Adjust number of pages per row according to page orientation when printingCarlos Garcia Campos2007-08-252-9/+15
| | | | | | | | | | | | | 2007-08-25 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin): * libdocument/ev-file-exporter.[ch]: (ev_file_exporter_get_capabilities): * shell/ev-jobs.[ch]: (ev_job_print_new), (ev_job_print_run): * shell/ev-window.c: (ev_window_print_dialog_response_cb): Adjust number of pages per row according to page orientation when printing 2 or 6 pages per sheet. svn path=/trunk/; revision=2641
* Use directly cairo_surface_get_content() when creating a similar surfaceCarlos Garcia Campos2007-08-241-8/+1
| | | | | | | | | | 2007-08-24 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-misc.c: (ev_document_misc_surface_rotate_and_scale): Use directly cairo_surface_get_content() when creating a similar surface as suggested by Jeff Muizelaar. Thanks again. svn path=/trunk/; revision=2639
* Use CAIRO_FORMAT_RGB24 instead of CAIRO_FORMAT_ARGB32 when creating pageCarlos Garcia Campos2007-08-231-2/+9
| | | | | | | | | | | | | | | 2007-08-24 Carlos Garcia Campos <carlosgc@gnome.org> * backend/djvu/djvu-document.c: (djvu_document_render): * backend/tiff/tiff-document.c: (tiff_document_render): * backend/pdf/ev-poppler.cc: (pdf_document_render): * libdocument/ev-document-misc.c: (ev_document_misc_surface_from_pixbuf), (ev_document_misc_surface_rotate_and_scale): Use CAIRO_FORMAT_RGB24 instead of CAIRO_FORMAT_ARGB32 when creating page surfaces. Fixes bug #453123. Thank you very much to Jeff Muizelaar <jeff@infidigm.net>. svn path=/trunk/; revision=2637
* Fix a headers problem with ev-linkCarlos Garcia Campos2007-07-304-7/+30
| | | | | | | | | | | | | | | | | | 2007-07-30 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document-info.h: * libdocument/ev-document.h: * shell/ev-page-action.h: * shell/ev-sidebar-links.h: Fix a headers problem with ev-link * libdocument/ev-link.[ch]: (ev_link_mapping_get_area): * shell/ev-view-private.h: * shell/ev-view.c: (ev_view_handle_cursor_over_xy), (get_link_area), (ev_view_query_tooltip), (ev_view_leave_notify_event), (ev_view_destroy), (ev_view_class_init): Use new gtk tooltips when available instead of ev-tooltip. svn path=/trunk/; revision=2599
* Allow printing multiple pages per sheet. Fixes bug #395573.Carlos Garcia Campos2007-07-291-0/+1
| | | | | | | | | | | | | | | | 2007-07-29 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_print_context_free), (pdf_document_file_exporter_begin), (pdf_document_file_exporter_do_page), (pdf_document_file_exporter_get_capabilities): * libdocument/ev-file-exporter.h: * shell/ev-jobs.[ch]: (ev_job_print_new), (ev_job_print_run): * shell/ev-window.c: (ev_window_print_send), (ev_window_print_dialog_response_cb): Allow printing multiple pages per sheet. Fixes bug #395573. svn path=/trunk/; revision=2591
* Use capabilities to know which options should be offered by the printCarlos Garcia Campos2007-07-262-57/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-26 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/dvi-document.c: (dvi_document_file_exporter_begin), (dvi_document_file_exporter_do_page), (dvi_document_file_exporter_get_capabilities), (dvi_document_file_exporter_iface_init): * backend/ps/ps-document.c: (ps_document_file_exporter_begin), (ps_document_file_exporter_do_page), (ps_document_file_exporter_get_capabilities), (ps_document_file_exporter_iface_init): * backend/djvu/djvu-document.c: (djvu_document_file_exporter_begin), (djvu_document_file_exporter_end), (djvu_document_file_exporter_get_capabilities), (djvu_document_file_exporter_iface_init): * backend/tiff/tiff-document.c: (tiff_document_file_exporter_begin), (tiff_document_file_exporter_get_capabilities), (tiff_document_document_file_exporter_iface_init): * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin), (pdf_document_file_exporter_do_page), (pdf_document_file_exporter_get_capabilities), (pdf_document_file_exporter_iface_init): * libdocument/ev-file-exporter.[ch]: (ev_file_exporter_begin), (ev_file_exporter_get_capabilities): * shell/ev-print-job.c: (ev_print_job_use_print_dialog_settings), (idle_print_handler), (ev_print_job_print): * shell/ev-jobs.c: (ev_job_print_run): * shell/ev-window.c: (ev_window_print_send), (ev_window_print_range): Use capabilities to know which options should be offered by the print dialog depending on the document backend. svn path=/trunk/; revision=2580
* Fix build with current poppler cvs head.Carlos Garcia Campos2007-07-191-1/+1
| | | | | | | | | | 2007-07-19 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field): * libdocument/ev-form-field.h: * shell/ev-view.c: (ev_view_form_field_text_create_widget): Fix build with current poppler cvs head. svn path=/trunk/; revision=2574
* Merge evince-forms branch.Carlos Garcia Campos2007-07-087-2/+792
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-08 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: (pdf_document_get_crop_box), (ev_form_field_from_poppler_field), (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), (pdf_document_document_forms_iface_init): * libdocument/Makefile.am: * libdocument/ev-form-field.[ch]: * libdocument/ev-document-forms.[ch]: * shell/ev-pixbuf-cache.[ch]: (dispose_cache_job_info), (move_one_job), (copy_job_to_job_info), (add_job_if_needed), (add_job), (ev_pixbuf_cache_reload_page), (ev_pixbuf_cache_get_form_field_mapping): * shell/ev-jobs.[ch]: (ev_job_render_new), (ev_job_render_run): * shell/ev-view-private.h: * shell/ev-view.[ch]: (ev_view_set_scroll_adjustments), (ev_view_handle_cursor_over_xy), (ev_view_get_form_field_at_location), (ev_view_forms_remove_widgets), (ev_view_form_field_destroy), (ev_view_form_field_button_create_widget), (ev_view_form_field_text_save), (ev_view_form_field_text_changed), (ev_view_form_field_text_create_widget), (ev_view_form_field_choice_save), (ev_view_form_field_choice_changed), (ev_view_form_field_choice_create_widget), (ev_view_handle_form_field), (ev_view_size_allocate), (ev_view_realize), (draw_end_presentation_page), (ev_view_button_press_event), (ev_view_remove_all), (ev_view_motion_notify_event), (ev_view_key_press_event), (ev_view_enter_notify_event), (highlight_find_results), (draw_loading_text), (draw_one_page), (ev_view_destroy), (ev_view_class_init), (page_changed_cb), (on_adjustment_value_changed), (ev_view_set_presentation), (merge_selection_region), (ev_view_set_cursor), (ev_view_reset_presentation_state): Merge evince-forms branch. svn path=/trunk/; revision=2560
* Removed AddedCarlos Garcia Campos2007-06-172-4/+77
| | | | | | | | | | | | | | | | | 2007-06-17 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/Makefile.am: * backend/dvi/pixbuf-device.[ch]: Removed * backend/dvi/cairo-device.[ch]: Added * backend/dvi/mdvi-lib/dviread.c: (draw_shrink_rule): * backend/dvi/dvi-document.c: (dvi_document_load), (dvi_document_render), (dvi_document_finalize), (dvi_document_thumbnails_get_thumbnail), (parse_color), (dvi_document_do_color_special): * libdocument/ev-document-misc.[ch]: (ev_document_misc_pixbuf_from_surface): Port dvi backend to cairo and fix a problem with colors. svn path=/trunk/; revision=2506
* Fix memory leaks.Carlos Garcia Campos2007-06-131-0/+4
| | | | | | | | 2007-06-13 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-document.c: (ev_document_info_free): Fix memory leaks. svn path=/trunk/; revision=2500
* Use cairo image surfaces instead of GDK pixbufs for drawing pages andCarlos Garcia Campos2007-06-136-85/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-13 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/dvi-document.c: (dvi_document_render), (dvi_document_render_pixbuf), (dvi_document_document_iface_init): * backend/impress/impress-document.c: (imp_render_get_from_drawable), (impress_document_render_pixbuf), (impress_document_render), (impress_document_document_iface_init), (impress_document_thumbnails_get_thumbnail): * backend/djvu/djvu-document-private.h: * backend/djvu/djvu-document.c: (djvu_document_render), (djvu_document_finalize), (djvu_document_document_iface_init), (djvu_document_thumbnails_get_thumbnail), (djvu_document_init): * backend/tiff/tiff-document.c: (tiff_document_render), (tiff_document_render_pixbuf), (tiff_document_document_iface_init): * backend/pdf/ev-poppler.cc: (pdf_document_render), (pdf_document_render_pixbuf), (pdf_document_document_iface_init), (pdf_selection_render_selection): * backend/comics/comics-document.c: (comics_document_render_pixbuf), (comics_document_render), (comics_document_document_iface_init): * backend/pixbuf/pixbuf-document.c: (pixbuf_document_render), (pixbuf_document_document_iface_init): * libdocument/ev-document-misc.[ch]: (ev_document_misc_surface_from_pixbuf), (ev_document_misc_surface_rotate_and_scale): * libdocument/ev-document.[ch]: (ev_document_render): * libdocument/ev-selection.[ch]: (ev_selection_render_selection): * shell/ev-pixbuf-cache.[ch]: (dispose_cache_job_info), (move_one_job), (copy_job_to_job_info), (add_job_if_needed), (ev_pixbuf_cache_get_surface), (new_selection_surface_needed), (clear_selection_if_needed), (ev_pixbuf_cache_style_changed), (ev_pixbuf_cache_get_selection_surface), (clear_job_selection): * shell/ev-jobs.[ch]: (ev_job_render_dispose), (render_finished_cb), (ev_job_render_run): * shell/ev-view.c: (draw_loading_text), (draw_one_page), (merge_selection_region): Use cairo image surfaces instead of GDK pixbufs for drawing pages and selections. svn path=/trunk/; revision=2499
* Add functions to delete temporary files created by evince in a safe way.Carlos Garcia Campos2007-05-255-10/+43
| | | | | | | | | | | | | | | | | | | | | | 2007-05-25 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-image.c: (ev_image_finalize): * libdocument/ev-document-factory.c: (free_uncompressed_uri): * libdocument/ev-attachment.c: (ev_attachment_finalize): * libdocument/ev-file-helpers.[ch]: (ev_tmp_filename_unlink), (ev_tmp_uri_unlink): Add functions to delete temporary files created by evince in a safe way. * shell/ev-window.c: (ev_window_clear_local_uri), (open_xfer_update_progress_callback), (save_xfer_update_progress_callback), (ev_window_save_remote), (file_save_dialog_response_cb), (ev_window_cmd_save_as), (image_save_dialog_response_cb), (ev_view_popup_cmd_save_image_as), (attachment_save_dialog_response_cb), (ev_attachment_popup_cmd_save_attachment_as): Allow saving a copy of a document, image or attachment to a remote location. Fixes bug #440754. svn path=/trunk/; revision=2478