Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
Commit message (Collapse)AuthorAgeFilesLines
* RemovedCarlos Garcia Campos2008-08-271-53/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove the idle function for setting the document up when the window isCarlos Garcia Campos2008-08-241-1/+11
| | | | | | | | | | | | 2008-08-24 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_setup_document), (ev_window_set_document), (ev_window_dispose): Remove the idle function for setting the document up when the window is destroyed. Fixes bug #549163. svn path=/trunk/; revision=3117
* Fix loading encrypted documents since I broke it with the jobs rework.Carlos Garcia Campos2008-08-061-27/+8
| | | | | | | | | | | | | | | 2008-08-06 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-jobs.[ch]: (ev_job_load_dispose), (ev_job_load_run), (ev_job_load_set_password): * shell/ev-password.[ch]: (ev_password_dialog_get_password): * shell/ev-window.c: (password_dialog_response), (ev_window_load_job_cb): Fix loading encrypted documents since I broke it with the jobs rework. svn path=/trunk/; revision=3099
* More #include cleanups. Again: reordering, single gtk.h includes and otherWouter Bolsterlee2008-08-031-31/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Cleanup many #include statements: reorder so that a generic-to-specificWouter Bolsterlee2008-08-031-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-03 Wouter Bolsterlee <wbolster@svn.gnome.org> * shell/eggfindbar.c: * shell/ev-application.c: * shell/ev-message-area.c: * shell/ev-navigation-action.c: * shell/ev-open-recent-action.c: * shell/ev-page-action-widget.c: * shell/ev-page-action.c: * shell/ev-password-view.c: * shell/ev-properties-dialog.c: * shell/ev-properties-fonts.c: * shell/ev-sidebar-attachments.c: * shell/ev-sidebar-page.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-stock-icons.c: * shell/ev-tooltip.c: * shell/ev-view.c: * shell/ev-window.c: * shell/main.c: Cleanup many #include statements: reorder so that a generic-to-specific order is used, use single gtk.h includes, and some other cleanups. svn path=/trunk/; revision=3094
* Rework the jobs system in order to make it simpler and more extensible. ItCarlos Garcia Campos2008-08-031-49/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Intercept window manager's fullscreen request in order to run/stopCarlos Garcia Campos2008-07-201-0/+30
| | | | | | | | | | | | 2008-07-20 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_state_event), (ev_window_class_init): Intercept window manager's fullscreen request in order to run/stop fullscreen mode. Fixes bug #493541. svn path=/trunk/; revision=3078
* Restart the job search when the find bar is opened for the second time.Carlos Garcia Campos2008-07-201-3/+5
| | | | | | | | | | | 2008-07-20 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (find_bar_visibility_changed_cb): Restart the job search when the find bar is opened for the second time. Fixes bug #531956. svn path=/trunk/; revision=3077
* Use Alt+Left to rotate left, and Alt+Right to rotate right. Ctrl+R (as EOGBastien Nocera2008-06-241-2/+2
| | | | | | | | | | | 2008-06-24 Bastien Nocera <hadess@hadess.net> * shell/ev-window.c: Use Alt+Left to rotate left, and Alt+Right to rotate right. Ctrl+R (as EOG uses) is already used for reload. Fixes bug #539972. svn path=/trunk/; revision=3060
* When building with D-Bus support, listen for multimedia key events fromBastien Nocera2008-06-241-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-24 Bastien Nocera <hadess@hadess.net> * shell/Makefile.am: * shell/ev-application.c (ev_application_init), (ev_application_get_media_keys): * shell/ev-application.h: * shell/ev-marshal.list: * shell/ev-media-player-keys.c (ev_media_player_keys_class_init), (proxy_destroy), (on_media_player_key_pressed), (ev_media_player_keys_init), (ev_media_player_keys_focused), (ev_media_player_keys_finalize), (ev_media_player_keys_new): * shell/ev-media-player-keys.h: * shell/ev-window.c (ev_window_go_previous_page), (ev_window_go_next_page), (ev_window_go_first_page), (ev_window_go_last_page), (ev_window_start_presentation), (ev_window_dispose), (view_actions_focus_in_cb): * shell/ev-window.h: When building with D-Bus support, listen for multimedia key events from gnome-settings-daemon. This allows to go to the next/previous/first/last pages using, respectively, Next/Previous/Rewing/Fast Forward. The Play button is used to start a presentation. Fixes bug #539971. svn path=/trunk/; revision=3059
* Do not crash opening documents with no pages and show a warning message inCarlos Garcia Campos2008-06-161-5/+30
| | | | | | | | | | | | | | | | | 2008-06-16 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_get_info): * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_loading_icon), (ev_sidebar_thumbnails_refresh): * shell/ev-window.c: (ev_window_error_message), (ev_window_warning_message), (ev_window_refresh_window_thumbnail), (ev_window_set_document): Do not crash opening documents with no pages and show a warning message in the message area. Fixes bugs #537574 and #171588. svn path=/trunk/; revision=3052
* Automaticly reload the document when the file has changed on disk. BugCarlos Garcia Campos2008-06-151-20/+94
| | | | | | | | | | | | | | | | | 2008-06-15 Carlos Garcia Campos <carlosgc@gnome.org> * shell/Makefile.am: * shell/ev-file-monitor.[ch]: * shell/ev-window.c: (ev_window_document_changed), (ev_window_clear_reload_job), (ev_window_load_job_cb), (ev_window_reload_job_cb), (ev_window_open_uri), (ev_window_reload_document), (ev_window_cmd_view_reload), (ev_window_dispose): Automaticly reload the document when the file has changed on disk. Bug #304249. svn path=/trunk/; revision=3051
* Fix some build warnings under GCC 4.3.0. (#537535).Cosimo Cecchi2008-06-101-8/+8
| | | | | | | | | | | | | | | | | | | | | | 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
* Add Ctrl+N keybinding for Open a Copy. Fixes bug #532239.Carlos Garcia Campos2008-05-251-1/+1
| | | | | | | | | | 2008-05-25 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: Add Ctrl+N keybinding for Open a Copy. Fixes bug #532239. svn path=/trunk/; revision=3043
* Use the window title as print job name instead of just "evince-print".Carlos Garcia Campos2008-05-251-2/+2
| | | | | | | | | | | | 2008-05-25 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_print_send), (ev_window_do_preview_print): Use the window title as print job name instead of just "evince-print". Fixes bug #534493. svn path=/trunk/; revision=3042
* Update also the primary selection when copying a link address. Fixes bugCarlos Garcia Campos2008-04-201-7/+2
| | | | | | | | | | | | | | | | | 2008-04-20 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-view-private.h: * shell/ev-view.[ch]: (ev_view_button_release_event), (ev_view_finalize), (ev_view_clipboard_copy), (ev_view_copy), (ev_view_primary_get_cb), (ev_view_primary_clear_cb), (ev_view_update_primary_selection), (clear_link_selected), (ev_view_copy_link_address): * shell/ev-window.c: (ev_view_popup_cmd_copy_link_address): Update also the primary selection when copying a link address. Fixes bug #520855. svn path=/trunk/; revision=3017
* Add GtkMountOperation (renamed to avoid conflicts) to be able to openCarlos Garcia Campos2008-04-161-10/+48
| | | | | | | | | | | | | | | 2008-04-16 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * cut-n-paste/evmountoperation/ev-mount-operation.[ch]: * shell/Makefile.am: * shell/ev-window.c: (ev_window_load_remote_failed), (mount_volume_ready_cb), (window_open_file_copy_ready_cb): Add GtkMountOperation (renamed to avoid conflicts) to be able to open documents in remote locations that are not mounted. svn path=/trunk/; revision=3007
* Add EvPage so that we can hold a reference to the backend page. FormCarlos Garcia Campos2008-04-141-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add Ctrl-Insert keybinding for copying text. Fixes bug #526523.Carlos Garcia Campos2008-04-121-0/+2
| | | | | | | | | | | 2008-04-12 Carlos Garcia Campos <carlosgc@gnome.org> * data/evince-ui.xml: * shell/ev-window.c: Add Ctrl-Insert keybinding for copying text. Fixes bug #526523. svn path=/trunk/; revision=3003
* Do not unfullscreen and fullscreen again the window when changing fromCarlos Garcia Campos2008-04-021-29/+54
| | | | | | | | | | | | | | | | | | | 2008-04-02 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_cmd_continuous), (ev_window_cmd_dual), (ev_window_cmd_view_best_fit), (ev_window_cmd_view_page_width), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_cmd_view_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (ev_window_cmd_view_presentation), (ev_window_cmd_leave_fullscreen), (ev_window_cmd_start_presentation), (ev_window_cmd_escape): Do not unfullscreen and fullscreen again the window when changing from fullscreen to presentation mode and vice versa. Fixes bug #524112. svn path=/trunk/; revision=2987
* Handle errors when opening remote files.Carlos Garcia Campos2008-03-311-29/+59
| | | | | | | | | | | 2008-03-31 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (window_open_file_copy_ready_cb), (ev_window_load_file_remote), (ev_window_open_uri): Handle errors when opening remote files. svn path=/trunk/; revision=2985
* Reuse g_app_info_launch_default_for_uri to save some code and fix bugEmil Soleyman2008-03-291-25/+4
| | | | | | | | | | | | 2008-03-30 Emil Soleyman <emil@nishra.com> * shell/ev-window.c: (launch_external_uri): Reuse g_app_info_launch_default_for_uri to save some code and fix bug #525009. svn path=/trunk/; revision=2983
* Use g_str_has_suffix. See bug #523069.Wouter Bolsterlee2008-03-241-1/+1
| | | | | | | | | | | 2008-03-24 Wouter Bolsterlee <wbolster@svn.gnome.org> * shell/ev-window.c (image_save_dialog_response_cb): Use g_str_has_suffix. See bug #523069. svn path=/trunk/; revision=2979
* Do not append the extension to filename when saving an image if theCarlos Garcia Campos2008-03-191-9/+12
| | | | | | | | | | | 2008-03-19 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (image_save_dialog_response_cb): Do not append the extension to filename when saving an image if the filename alredy contains the extension. Fixes bug #523069. svn path=/trunk/; revision=2972
* Cancel the find operation when the find bar is closed. Fixes bug #508845.Carlos Garcia Campos2008-03-181-0/+1
| | | | | | | | | | | | 2008-03-18 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-view.[ch]: (ev_view_find_cancel): * shell/ev-window.c: (find_bar_close_cb): Cancel the find operation when the find bar is closed. Fixes bug #508845. svn path=/trunk/; revision=2971
* Bug 495107 – Handle print dialog responses correctlyWouter Bolsterlee2008-03-091-1/+1
| | | | | | | | | | | | | 2008-03-09 Wouter Bolsterlee <wbolster@svn.gnome.org> * shell/ev-window.c (ev_window_print_dialog_response_cb): Bug 495107 – Handle print dialog responses correctly Correctly handle print dialog response. Properly fixes the above mentioned bug. svn path=/trunk/; revision=2958
* Make sure print job is only run when the print button is clicked. Based onCarlos Garcia Campos2008-03-081-1/+2
| | | | | | | | | | | 2008-03-08 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_print_dialog_response_cb): Make sure print job is only run when the print button is clicked. Based on patch by Eugen Dedu. Fixes bug #495107. svn path=/trunk/; revision=2956
* Use g_file_has_prefix instead of renamed g_file_contains_file.Alexander Larsson2008-02-251-1/+1
| | | | | | | | | | | | | | 2008-02-25 Alexander Larsson <alexl@redhat.com> * shell/ev-window.c (ev_window_clear_temp_file): Use g_file_has_prefix instead of renamed g_file_contains_file. * configure.ac: Require new glib for above change. svn path=/trunk/; revision=2929
* Remove libgnomeprint support. Fixes bug #512370.Carlos Garcia Campos2008-02-081-177/+8
| | | | | | | | | | | | | 2008-02-08 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * shell/Makefile.am: * shell/ev-application.[ch]: * shell/ev-sidebar-links.c: * shell/ev-utils.[ch]: * shell/ev-window.[ch]: Remove libgnomeprint support. Fixes bug #512370. svn path=/trunk/; revision=2895
* Fix compile warning.Carlos Garcia Campos2008-01-271-1/+1
| | | | | | | | 2008-01-27 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_cmd_escape): Fix compile warning. svn path=/trunk/; revision=2866
* RemovedCarlos Garcia Campos2008-01-261-29/+0
| | | | | | | | | | | | | | | 2008-01-26 Carlos Garcia Campos <carlosgc@gnome.org> * cut-n-paste/totem-screensaver/totem-scrsaver.c: (screensaver_disable_x11): * shell/Makefile.am: * shell/xdg-user-dir-lookup.c: Removed * shell/ev-metadata-manager.c: (ev_metadata_arm_timeout): * shell/ev-view.c: (ev_view_presentation_transition_start): * shell/ev-window.c: (ev_window_cmd_file_open), (ev_window_cmd_save_as), (presentation_set_timeout): Remove #ifdefs that are no longer needed. svn path=/trunk/; revision=2861
* Stop autoscroll when Escape key is pressed. Fixes bug #511635.Carlos Garcia Campos2008-01-261-1/+3
| | | | | | | | | | | 2008-01-26 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-view.[ch]: (ev_view_button_release_event), (ev_view_autoscroll_start), (ev_view_autoscroll_stop): * shell/ev-window.c: (ev_window_cmd_view_autoscroll), (ev_window_cmd_escape): Stop autoscroll when Escape key is pressed. Fixes bug #511635. svn path=/trunk/; revision=2860
* Port to gio and drop gnome-vfs dependency. Fixes bug #510401. Based onCarlos Garcia Campos2008-01-251-234/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use top/up/bottom/down arrows instead of first/left/last/right in theWouter Bolsterlee2008-01-241-4/+4
| | | | | | | | | | | | | 2008-01-24 Wouter Bolsterlee <wbolster@svn.gnome.org> * shell/ev-window.c: Use top/up/bottom/down arrows instead of first/left/last/right in the toolbar and menu actions. This fixes issues with RTL languages and is visually consistent with the page view. Fixes bug #170081. svn path=/trunk/; revision=2853
* Override PDF restrictions by default. Fixes bug #382700.Wouter Bolsterlee2008-01-241-1/+1
| | | | | | | | | | | | 2008-01-24 Wouter Bolsterlee <wbolster@svn.gnome.org> * NEWS: * data/evince.schemas.in: * shell/ev-window.c: (ev_window_setup_action_sensitivity): Override PDF restrictions by default. Fixes bug #382700. svn path=/trunk/; revision=2851
* Added comment for translatorsGil Forcada2008-01-231-0/+1
| | | | | | | | | | | 2008-01-23 Gil Forcada <gilforcada@guifi.net> * shell/ev-window.c: (register_custom_actions): Added comment for translators svn path=/trunk/; revision=2841
* Do not render images when rendering the page but on demand. It reduces theCarlos Garcia Campos2008-01-191-15/+27
| | | | | | | | | | | | | | | | | | | | | | 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
* Simplify image format selection on save.Nickolay V. Shmyrev2008-01-151-27/+39
| | | | | | | | | | | | | | | | | | | | | | | 2008-01-15 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * configure.ac: * cut-n-paste/Makefile.am: * cut-n-paste/fileformatchooser/Makefile.am: * cut-n-paste/fileformatchooser/egg-macros.h: * cut-n-paste/fileformatchooser/eggfileformatchooser.c: * cut-n-paste/fileformatchooser/eggfileformatchooser.h: * shell/Makefile.am: * shell/ev-utils.c: (file_chooser_dialog_add_writable_pixbuf_formats), (get_gdk_pixbuf_format_by_extension): * shell/ev-utils.h: * shell/ev-window.c: (ev_window_error_message), (image_save_dialog_response_cb), (ev_view_popup_cmd_save_image_as): Simplify image format selection on save. svn path=/trunk/; revision=2827
* RTL marker in recent file list. See bug #509076.Djihed Afifi2008-01-131-2/+5
| | | | | | | | | | | 2008-01-13 Djihed Afifi <djihed@gmail.com> * shell/ev-window.c: (ev_window_get_recent_file_label): RTL marker in recent file list. See bug #509076. svn path=/trunk/; revision=2818
* Fix compile warnings due to unused variables.Carlos Garcia Campos2008-01-131-2/+1
| | | | | | | | | 2008-01-13 Carlos Garcia Campos <carlosgc@gnome.org> * backend/djvu/djvu-text-page.c: (djvu_text_page_limits): * shell/ev-window.c: (image_save_dialog_response_cb): Fix compile warnings due to unused variables. svn path=/trunk/; revision=2817
* Allow exporting images in any format supported by GdkPixbuf. Fixes bugCarl-Anton Ingmarsson2007-12-301-10/+24
| | | | | | | | | | | | | | | | 2007-12-30 Carl-Anton Ingmarsson <c-a.ingmarsson@oktv.se> * configure.ac: * cut-n-paste/Makefile.am: * cut-n-paste/fileformatchooser/Makefile.am: * cut-n-paste/fileformatchooser/egg-macros.h: * cut-n-paste/fileformatchooser/eggfileformatchooser.[ch]: * shell/Makefile.am: * shell/ev-window.c: (image_save_dialog_response_cb), (ev_view_popup_cmd_save_image_as): Allow exporting images in any format supported by GdkPixbuf. Fixes bug #500209. svn path=/trunk/; revision=2791
* Autoscroll feature with the context menu. Fixes bug #323670. Thanks toNickolay V. Shmyrev2007-12-231-0/+10
| | | | | | | | | | | | | | | | | | | | | | 2007-12-23 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * data/evince-toolbar.xml: * data/evince-ui.xml: * shell/ev-view-private.h: * shell/ev-view.c: (ev_view_handle_cursor_over_xy), (ev_view_button_press_event), (ev_view_motion_notify_event), (ev_view_button_release_event), (ev_view_init), (ev_view_autoscroll_cb), (ev_view_autoscroll), (ev_view_set_cursor): * shell/ev-view.h: * shell/ev-window.c: (ev_window_setup_action_sensitivity), (ev_window_cmd_view_autoscroll): Autoscroll feature with the context menu. Fixes bug #323670. Thanks to David Turner <cillian64@googlemail.com>. svn path=/trunk/; revision=2781
* Use a message area instead of a popup dialog for error notifications.Carlos Garcia Campos2007-12-021-34/+71
| | | | | | | | | | | | | | | | | | | | 2007-12-02 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * cut-n-paste/gedit-message-area/Makefile.am: * cut-n-paste/gedit-message-area/gedit-message-area.[ch]: * shell/Makefile.am: * shell/ev-message-area.[ch]: * shell/ev-window.c: (ev_window_set_message_area), (ev_window_error_message_response_cb), (ev_window_error_message), (ev_window_load_job_cb), (ev_window_cmd_file_open_copy_at_dest), (ev_window_save_job_cb), (image_save_dialog_response_cb), (ev_attachment_popup_cmd_open_attachment), (attachment_save_dialog_response_cb), (ev_window_set_document), (ev_window_init): Use a message area instead of a popup dialog for error notifications. Fixes bug #337495. svn path=/trunk/; revision=2757
* Remove the shadow of the fullscreen toolbar. Fixes bug #500702.Carlos Garcia Campos2007-12-021-0/+22
| | | | | | | | | 2007-12-02 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (fullscreen_toolbar_remove_shadow), (ev_window_run_fullscreen): Remove the shadow of the fullscreen toolbar. Fixes bug #500702. svn path=/trunk/; revision=2756
* Print settings that are specific to the document are now saved perCarlos Garcia Campos2007-12-011-1/+50
| | | | | | | | | | | | 2007-12-01 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_load_print_settings_from_metadata), (ev_window_save_print_settings), (ev_window_print_finished), (ev_window_print_range): Print settings that are specific to the document are now saved per document in the metadata file. Fixes bug #488806. svn path=/trunk/; revision=2754
* Add a command line option for search. Fixes bug #497710.Carlos Garcia Campos2007-11-251-4/+14
| | | | | | | | | | | | | | | | | 2007-11-25 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.[ch]: (get_find_string_from_args), (ev_application_open_uri_at_dest), (ev_application_open_uri), (ev_application_open_uri_list): * shell/ev-jobs.[ch]: (ev_job_load_dispose), (ev_job_load_new): * shell/ev-window.[ch]: (ev_window_load_job_cb), (ev_window_open_uri), (ev_window_cmd_file_open_copy_at_dest), (ev_window_cmd_recent_file_activate), (ev_window_open_recent_action_item_activated), (ev_window_print_send), (open_remote_link): * shell/main.c: (arguments_parse): Add a command line option for search. Fixes bug #497710. svn path=/trunk/; revision=2746
* Add an expander to the open toolbar item which pops up a dropdown menuCarlos Garcia Campos2007-10-281-4/+29
| | | | | | | | | | | | | | | 2007-10-29 Carlos Garcia Campos <carlosgc@gnome.org> * data/evince-toolbar.xml: * shell/Makefile.am: * shell/ev-application.c: (ev_application_init): * shell/ev-open-recent-action.[ch]: * shell/ev-window.c: (ev_window_open_recent_action_item_activated), (register_custom_actions): Add an expander to the open toolbar item which pops up a dropdown menu with the recently used documents. Fixes bug #487215. svn path=/trunk/; revision=2731
* Do not jump to the first page when reloading by running evince from theCarlos Garcia Campos2007-10-281-2/+5
| | | | | | | | | | 2007-10-29 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_open_uri), (ev_window_cmd_view_reload): Do not jump to the first page when reloading by running evince from the command line. Fixes bug #490847. svn path=/trunk/; revision=2728
* Plugged memory leak when help file is not found. Fixes bug #490762.Hiroyuki Ikezoe2007-10-271-0/+2
| | | | | | | | | 2007-10-27 Hiroyuki Ikezoe <poincare@ikezoe.net> * shell/ev-window.c: (ev_window_cmd_help_contents): Plugged memory leak when help file is not found. Fixes bug #490762. svn path=/trunk/; revision=2725
* RemovedCarlos Garcia Campos2007-10-261-74/+0
| | | | | | | | | | | | | | | | 2007-10-26 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * cut-n-paste/Makefile.am: * cut-n-paste/recent-files/*: Removed * help/reference/Makefile.am: * shell/Makefile.am: * shell/ev-application.[ch]: (ev_application_shutdown), (ev_application_init): * shell/ev-window.c: (ev_window_add_recent), (ev_window_setup_recent), (ev_window_dispose), (ev_window_init): Bump requirements to gtk+ 2.10.0 and remove egg-recent code. svn path=/trunk/; revision=2722