Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not use popup dialogs to show error messages anymore, use the messageCarlos Garcia Campos2008-11-011-54/+17
| | | | | | | | | | | | | 2008-11-01 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (window_save_file_copy_ready_cb), (ev_window_print_finished), (ev_window_print_dialog_response_cb), (ev_window_preview_print_finished), (launch_action): Do not use popup dialogs to show error messages anymore, use the message area instead. svn path=/trunk/; revision=3246
* Use a message format (with printf()-style) in ev_window_error_message andCarlos Garcia Campos2008-11-011-37/+45
| | | | | | | | | | | | | | | | | | 2008-11-01 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_error_message), (ev_window_warning_message), (ev_window_set_document), (ev_window_load_job_cb), (ev_window_load_remote_failed), (ev_window_cmd_file_open_copy_at_dest), (ev_window_save_job_cb), (ev_window_cmd_help_contents), (launch_external_uri), (image_save_dialog_response_cb), (image_save_dialog_response_cb), (ev_attachment_popup_cmd_open_attachment), (attachment_save_dialog_response_cb): Use a message format (with printf()-style) in ev_window_error_message and ev_window_warning_message. svn path=/trunk/; revision=3245
* Change ev_window_error_message and ev_window_warning_message to receive aCarlos Garcia Campos2008-11-011-17/+17
| | | | | | | | | | | | | | | | | | | 2008-11-01 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_error_message), (ev_window_warning_message), (ev_window_set_document), (ev_window_load_job_cb), (ev_window_load_remote_failed), (ev_window_cmd_file_open_copy_at_dest), (ev_window_save_job_cb), (ev_window_cmd_help_contents), (launch_external_uri), (image_save_dialog_response_cb), (ev_attachment_popup_cmd_open_attachment), (attachment_save_dialog_response_cb): Change ev_window_error_message and ev_window_warning_message to receive a EvWindow instead of a GtkWindow. It's more consistent and avoids unneeded casts. svn path=/trunk/; revision=3244
* Use gtk_show_uri() when availale to display help contents.Carlos Garcia Campos2008-11-011-0/+19
| | | | | | | | | | 2008-11-01 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_cmd_help_contents): Use gtk_show_uri() when availale to display help contents. svn path=/trunk/; revision=3243
* Removed shell/ev-view-private.hCarlos Garcia Campos2008-10-311-14/+1
| | | | | | | | | | | | | | | | | | | | | 2008-10-31 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: * properties/ev-properties-view.c: * shell/Makefile.am: * shell/ev-tooltip.[ch]: Removed * shell/ev-view-private.h * shell/eggfindbar.c: * shell/ev-application.c: * shell/ev-open-recent-action.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-view.c: * shell/ev-window.c: Bump GTK+ requirement to 2.12. svn path=/trunk/; revision=3242
* Bug 558064 – build with single includesChristian Persch2008-10-271-1/+1
| | | | svn path=/trunk/; revision=3240
* Disable toggle function of F5 when in presentation mode. Patch by DaveCarlos Garcia Campos2008-10-171-2/+0
| | | | | | | | | | | 2008-10-17 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_cmd_view_presentation): Disable toggle function of F5 when in presentation mode. Patch by Dave Neary. Fixes bug #556162. svn path=/trunk/; revision=3224
* Do not consider mailto links as http uris. Fixes bug #555801.Carlos Garcia Campos2008-10-121-1/+2
| | | | | | | | | | 2008-10-12 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (launch_external_uri): Do not consider mailto links as http uris. Fixes bug #555801. svn path=/trunk/; revision=3218
* Use GdkAppLaunchContext when available to launch external applications.Carlos Garcia Campos2008-10-041-3/+9
| | | | | | | | | | | 2008-10-04 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (launch_action): Use GdkAppLaunchContext when available to launch external applications. svn path=/trunk/; revision=3214
* Fix launching external applications for launch actions which seems to beCarlos Garcia Campos2008-10-041-21/+21
| | | | | | | | | | | 2008-10-04 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (launch_action): Fix launching external applications for launch actions which seems to be broken since the gio port. Fixes bug #554500. svn path=/trunk/; revision=3213
* Use GdkAppLaunchContext when available to launch external uris.Carlos Garcia Campos2008-09-131-0/+9
| | | | | | | | | | 2008-09-13 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (launch_external_uri): Use GdkAppLaunchContext when available to launch external uris. svn path=/trunk/; revision=3178
* Use the message area to show errors when lauching external uris instead ofCarlos Garcia Campos2008-09-131-14/+4
| | | | | | | | | | | 2008-09-13 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (launch_external_uri): Use the message area to show errors when lauching external uris instead of a popup window. svn path=/trunk/; revision=3177
* Assume invalid uris are http uris. Fixes bug #552071.Carlos Garcia Campos2008-09-131-1/+11
| | | | | | | | | | 2008-09-13 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (launch_external_uri): Assume invalid uris are http uris. Fixes bug #552071. svn path=/trunk/; revision=3176
* Use GtkScrollType instead of EvScrollType.Carlos Garcia Campos2008-09-071-3/+5
| | | | | | | | | | | | | | | | 2008-09-07 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-view-private.h: * shell/ev-view.[ch]: (add_scroll_binding_keypad), (ev_view_scroll), (ev_view_class_init): * shell/ev-view-accessible.c: (ev_view_accessible_action_do_action): * shell/ev-window.c: (ev_window_cmd_scroll_forward), (ev_window_cmd_scroll_backward): Use GtkScrollType instead of EvScrollType. svn path=/trunk/; revision=3162
* Do not append the file extension twice when saving an image.Carlos Garcia Campos2008-09-071-2/+2
| | | | | | | | | | 2008-09-07 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (image_save_dialog_response_cb): Do not append the file extension twice when saving an image. svn path=/trunk/; revision=3159
* Use GdkAppLaunchContext when available to open attachments.Carlos Garcia Campos2008-09-051-2/+5
| | | | | | | | | | | | | | 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
* Clean up the media player keys stuff.Carlos Garcia Campos2008-09-041-42/+48
| | | | | | | | | | | | | | | | | | 2008-09-04 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.c: (ev_application_get_media_keys): * shell/ev-media-player-keys.[ch]: (ev_media_player_keys_class_init), (on_media_player_key_pressed), (ev_media_player_keys_grab_keys), (ev_media_player_keys_release_keys), (ev_media_player_keys_init), (ev_media_player_keys_focused), (ev_media_player_keys_finalize): * shell/ev-window.[ch]: (ev_window_dispose), (view_actions_focus_in_cb), (ev_window_media_player_key_pressed), (ev_window_init): Clean up the media player keys stuff. svn path=/trunk/; revision=3148
* 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