Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
Commit message (Collapse)AuthorAgeFilesLines
* Add shortcut for "save a copy" menu entry. Fix for the bug #324582.Nickolay V. Shmyrev2005-12-201-1/+2
| | | | | | | * shell/ev-window.c: Add shortcut for "save a copy" menu entry. Fix for the bug #324582.
* Enter as shortcut key for next page. Fix for the bug #321394.Nickolay V. Shmyrev2005-11-271-0/+6
| | | | | | | | * data/evince-ui.xml: * shell/ev-window.c: (ev_window_set_view_accels_sensitivity): Enter as shortcut key for next page. Fix for the bug #321394.
* Save last document settings and reuse them for new documents.Nickolay V. Shmyrev2005-11-141-76/+61
| | | | | | | | | | | | | | | | | | * data/evince.schemas.in: * shell/ev-metadata-manager.c: (value_free), (ev_metadata_manager_get_last), (ev_metadata_manager_set_last), (ev_metadata_manager_get), (ev_metadata_manager_set): * shell/ev-metadata-manager.h: * shell/ev-window.c: (update_chrome_flag), (ev_window_cmd_focus_page_selector), (update_sidebar_visibility), (setup_document_from_metadata), (setup_chrome_from_metadata), (setup_sidebar_from_metadata), (setup_view_from_metadata), (ev_window_cmd_edit_find), (ev_window_cmd_escape), (ev_window_view_toolbar_cb), (ev_window_sidebar_visibility_changed_cb), (find_bar_close_cb), (view_actions_focus_in_cb), (ev_window_init), (ev_window_new): Save last document settings and reuse them for new documents.
* Fix double free that cause crash.Nickolay V. Shmyrev2005-10-301-1/+0
| | | | | | * shell/ev-window.c: (ev_window_finalize): Fix double free that cause crash.
* Fixed warnings on reload and probably crash reason.Nickolay V. Shmyrev2005-10-111-1/+1
| | | | | | * shell/ev-window.c: (ev_window_setup_document): Fixed warnings on reload and probably crash reason.
* Add control+keypad bindings to zoom.Nickolay V. Shmyrev2005-10-021-0/+7
|
* URL-escape link before passing it to gnome_vfs_url_show.Christian Persch2005-09-271-6/+16
| | | | | | | | | 2005-09-27 Christian Persch <chpe@cvs.gnome.org> * shell/ev-window.c: (launch_link), (launch_external_uri), (view_external_link_cb): URL-escape link before passing it to gnome_vfs_url_show.
* Disable copy action when there isn't text selected.Carlos Garcia Campos2005-09-271-2/+19
| | | | | | 2005-09-27 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-view.[ch], shell/ev-window.c: Disable copy action when there isn't text selected.
* *** empty log message ***Marco Pesenti Gritti2005-09-261-2/+2
|
* Implement launch links. Delegate external link opening to the window.Marco Pesenti Gritti2005-09-261-0/+55
| | | | | | | | | | | | | | | | | 2005-09-26 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-link.c: (ev_link_type_get_type), (ev_link_get_filename), (ev_link_get_params), (ev_link_get_property), (ev_link_set_property), (ev_window_dispose), (ev_link_class_init), (ev_link_new_launch): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (ev_view_goto_link), (ev_view_class_init): * shell/ev-window.c: (launch_link), (view_external_link_cb), (ev_window_init): Implement launch links. Delegate external link opening to the window.
* Do not use modes for link, we need to calculate size ad hoc. Still notMarco Pesenti Gritti2005-09-241-9/+0
| | | | | | | | | | | | | | | | | | | | | 2005-09-24 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (ev_view_get_width), (ev_view_get_height), (goto_fitv_link), (goto_fith_link), (goto_fit_link), (ev_view_goto_link), (ev_view_size_request_continuous_dual_page), (ev_view_size_request_continuous), (ev_view_size_request_dual_page), (ev_view_size_request_single_page), (ev_view_size_allocate), (ev_view_zoom_for_size_continuous_and_dual_page), (ev_view_zoom_for_size_continuous), (ev_view_zoom_for_size_dual_page), (ev_view_zoom_for_size_single_page), (ev_view_set_zoom_for_size), (ev_sizing_mode_get_type): * shell/ev-view.h: * shell/ev-window.c: (ev_window_sizing_mode_changed_cb): Do not use modes for link, we need to calculate size ad hoc. Still not perfect because of the usual scrollbar issues grrr.
* Implement FIT_HEIGHT mode (only for links). Implement FITH linksMarco Pesenti Gritti2005-09-241-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-09-24 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-link.c: (ev_link_type_get_type), (ev_link_new_page_fith), (ev_link_new_page_fitv): * backend/ev-link.h: * pdf/ev-poppler.cc: * shell/ev-view.c: (goto_fitv_link), (goto_fith_link), (ev_view_goto_link), (ev_view_size_request_continuous_dual_page), (ev_view_size_request_continuous), (ev_view_size_request_dual_page), (ev_view_size_request_single_page), (ev_view_size_allocate), (zoom_for_size_fit_height), (ev_view_zoom_for_size_continuous_and_dual_page), (ev_view_zoom_for_size_continuous), (ev_view_zoom_for_size_dual_page), (ev_view_zoom_for_size_single_page), (ev_view_set_zoom_for_size), (ev_sizing_mode_get_type): * shell/ev-view.h: * shell/ev-window.c: (ev_window_sizing_mode_changed_cb): Implement FIT_HEIGHT mode (only for links). Implement FITH links
* Refactor window title building while fixing it for password documents.Marco Pesenti Gritti2005-09-241-1/+3
| | | | | | | | | | | | | | | 2005-09-24 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window-title.c: (get_filename_from_uri), (ev_window_title_sanitize_extension), (ev_window_title_update), (ev_window_title_set_document), (ev_window_title_set_uri), (ev_window_title_free): * shell/ev-window-title.h: * shell/ev-window.c: (ev_window_setup_document), (ev_window_popup_password_dialog): Refactor window title building while fixing it for password documents.
* Add a function to retrieve window list and share it where necessary.Marco Pesenti Gritti2005-09-231-13/+5
| | | | | | | | | | | | | | | 2005-09-23 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-application.c: (removed_from_session), (save_session), (init_session), (ev_application_get_empty_window), (ev_application_init), (ev_application_get_windows): * shell/ev-application.h: * shell/ev-window.c: (ev_window_finalize): Add a function to retrieve window list and share it where necessary. Implement session handling, works pretty well thanks to the metadata system.
* Return 0 results when search is not in progress.Marco Pesenti Gritti2005-09-191-2/+3
| | | | | | | | | | | | | 2005-09-19 Marco Pesenti Gritti <mpg@redhat.com> * pdf/ev-poppler.cc: Return 0 results when search is not in progress. * shell/ev-window.c: (ev_window_cmd_go_previous_page), (ev_window_cmd_go_next_page), (find_bar_search_changed_cb): Update menu sensitivity when cancelling search
* Move page next/previous functions from page chace to view and change it toMarco Pesenti Gritti2005-09-191-2/+2
| | | | | | | | | | | | | | | | 2005-09-19 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-page-cache.c: * shell/ev-page-cache.h: * shell/ev-view.c: (ev_view_binding_activated), (ev_view_next_page), (ev_view_previous_page), (ev_sizing_mode_get_type): * shell/ev-view.h: * shell/ev-window.c: (ev_window_cmd_go_previous_page), (ev_window_cmd_go_next_page): Move page next/previous functions from page chace to view and change it to move by 2 page steps in dual mode.
* Show the index by default when there is oneMarco Pesenti Gritti2005-09-191-34/+47
| | | | | | | | | | 2005-09-19 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (update_sidebar_visibility), (setup_sidebar_from_metadata), (ev_window_setup_document), (setup_view_from_metadata): Show the index by default when there is one
* Make close button in toolbar editor default.Nickolay V. Shmyrev2005-09-171-0/+1
|
* Remove a bunch of strings that was used only by the statusbar.Marco Pesenti Gritti2005-09-161-52/+26
| | | | | | | | | 2005-09-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: Remove a bunch of strings that was used only by the statusbar.
* Factor out and cleanup window title codeMarco Pesenti Gritti2005-09-161-66/+16
| | | | | | | | | | | | | | | 2005-09-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/Makefile.am: * shell/ev-window-title.c: (ev_window_title_new), (ev_window_title_update), (ev_window_title_set_type), (ev_window_title_set_document), (ev_window_title_free): * shell/ev-window-title.h: * shell/ev-window.c: (ev_window_setup_document), (password_dialog_response), (ev_window_popup_password_dialog), (ev_window_dispose), (ev_window_init): Factor out and cleanup window title code
* Make dialog transient so it doesnt block other windowsMarco Pesenti Gritti2005-09-161-2/+12
| | | | | | | | | 2005-09-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (unable_to_load_dialog_response_cb), (unable_to_load): Make dialog transient so it doesnt block other windows
* Increase timeout to hide full screen popup. Bug 316123.Wouter Bolsterlee2005-09-131-1/+3
| | | | | | | | | 2005-09-13 Wouter Bolsterlee <uws+gnome@xs4all.nl> * shell/ev-window.c: (fullscreen_set_timeout): Increase timeout to hide full screen popup. Bug 316123.
* Allow the user to override document restrictions. Fix for bug 305818.Nickolay V. Shmyrev2005-09-131-6/+12
| | | | | | | | * data/evince.schemas.in: * shell/ev-window.c: (update_action_sensitivity): Allow the user to override document restrictions. Fix for bug 305818.
* Fix multihead behaviour of fullscreen toolbar popup. Fixes bug #315451.Christian Persch2005-09-131-5/+37
| | | | | | | | | 2005-09-13 Christian Persch <chpe@cvs.gnome.org> * shell/ev-window.c: (ev_window_update_fullscreen_popup), (ev_window_create_fullscreen_popup), (ev_window_screen_changed), (ev_window_class_init): Fix multihead behaviour of fullscreen toolbar popup. Fixes bug #315451.
* Support for gnome-keyring for encrypted PDF's.Nickolay V. Shmyrev2005-09-131-9/+6
| | | | | | | | | | | | | | | | | | * configure.ac: * data/evince-password.glade: * shell/ev-password.c: (ev_password_dialog_set_property), (ev_password_dialog_finalize), (ev_password_dialog_class_init), (ev_password_dialog_init), (ev_password_set_bad_password_label), (ev_password_dialog_entry_changed_cb), (ev_password_dialog_entry_activated_cb), (ev_password_dialog_save_password), (ev_password_keyring_found_cb), (ev_password_search_in_keyring), (ev_password_dialog_get_password), (ev_password_dialog_set_bad_pass): * shell/ev-password.h: * shell/ev-window.c: (password_dialog_response), (ev_window_popup_password_dialog): Support for gnome-keyring for encrypted PDF's.
* leak fix: unref fullscreen_timeout_source before clearing itChristopher Aillon2005-09-081-2/+8
| | | | | | | | | | 2005-09-08 Christopher Aillon <caillon@redhat.com> * shell/ev-window.c: (fullscreen_timeout_cb), (fullscreen_set_timeout), (fullscreen_clear_timeout), (ev_window_dispose): leak fix: unref fullscreen_timeout_source before clearing it
* null check uri before setting and getting metadataMarco Pesenti Gritti2005-09-081-12/+32
| | | | | | | | | | | | | | 2005-09-08 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (page_changed_cb), (setup_document_from_metadata), (update_sidebar_visibility), (setup_view_from_metadata), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (ev_window_continuous_changed_cb), (ev_window_dual_mode_changed_cb), (ev_window_sidebar_current_page_changed_cb): null check uri before setting and getting metadata
* Add a signal for link activation.Marco Pesenti Gritti2005-09-081-1/+11
| | | | | | | | | | | | | | | | | | | | | | 2005-09-08 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar-links.c: (ev_sidebar_links_class_init), (selection_changed_callback): * shell/ev-sidebar-links.h: Add a signal for link activation. * shell/ev-view.c: (ev_view_goto_link), (ev_view_button_release_event): * shell/ev-view.h: * shell/ev-window.c: (sidebar_links_link_activated_cb), (ev_window_init): Implement the signal so that we can handle all link types. * shell/ev-page-cache.c: Remove unused set_link function
* Remove the statusbar. This regress loading feedback, need to check withMarco Pesenti Gritti2005-09-051-158/+3
| | | | | | | | | | | | | | | | 2005-09-05 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * data/evince.schemas.in: * shell/Makefile.am: * shell/ev-window.c: (update_chrome_visibility), (password_dialog_response), (ev_window_load_job_cb), (ev_window_xfer_job_cb), (ev_window_open_uri), (ev_window_class_init), (set_chrome_actions), (load_chrome), (ev_window_init): Remove the statusbar. This regress loading feedback, need to check with Bryan what we want to do there...
* HIG fixes, thanks to Dennis CranstonNickolay V. Shmyrev2005-09-021-2/+2
|
* Make file pickers not modal and refactor code someMarco Pesenti Gritti2005-09-021-63/+52
| | | | | | | | | | 2005-09-02 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (file_open_dialog_response_cb), (ev_window_cmd_file_open), (file_save_dialog_response_cb), (ev_window_cmd_save_as): Make file pickers not modal and refactor code some
* Add a current page property and allow to get/set itMarco Pesenti Gritti2005-09-021-1/+45
| | | | | | | | | | | | | | | | | | 2005-09-02 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar.h: * shell/ev-sidebar.c: (ev_sidebar_set_property), (ev_sidebar_get_current_page), (ev_sidebar_get_property), (ev_sidebar_class_init), (ev_sidebar_select_page), (ev_sidebar_menu_item_activate_cb), (ev_sidebar_new), (ev_sidebar_set_page): Add a current page property and allow to get/set it * shell/ev-window.c: (setup_view_from_metadata), (ev_window_sidebar_current_page_changed_cb), (ev_window_init): Persist current sidebar page per document
* Persist size/visibility of sidebar per documentMarco Pesenti Gritti2005-09-021-68/+45
| | | | | | | | | | | | | | | | 2005-09-02 Marco Pesenti Gritti <mpg@redhat.com> * data/evince.schemas.in: * shell/ev-window.c: (update_chrome_visibility), (setup_document_from_metadata), (update_sidebar_visibility), (setup_view_from_metadata), (ev_window_sidebar_position_change_cb), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (ev_window_view_sidebar_cb), (ev_window_sidebar_visibility_changed_cb), (set_chrome_actions), (load_chrome), (ev_window_init): Persist size/visibility of sidebar per document
* Plug some memory leaksHiroyuki Ikezoe2005-08-311-0/+7
| | | | | | | | | 2005-08-31 Hiroyuki Ikezoe <poincare@ikezoe.net> * shell/ev-pixbuf-cache.c: (dispose_cache_job_info): * shell/ev-window.c: (ev_window_print_range), (ev_window_dispose): Plug some memory leaks
* Add 'timestamp' argument to ev_application_open_window andRyan Lortie2005-08-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-25 Ryan Lortie <desrt@desrt.ca> * shell/ev-application-service.xml: Add 'timestamp' argument to ev_application_open_window and ev_application_open_uri methods. * shell/ev-application.h: Add 'timestamp' argument to ev_application_open_window, ev_application_open_uri, and ev_application_open_uri_list functions. * shell/ev-application.c (ev_application_open_window, ev_application_open_uri, ev_application_open_uri_list): Change functions that show/present windows to use a timestamp if one is passed in. * shell/ev-window.c (ev_window_cmd_file_open, ev_window_cmd_recent_file_activate, drag_data_received_cb): * shell/main.c (load_files): Modify calls to ev_application to include GDK_CURRENT_TIME as timestamp. * shell/main.c (load_files_remote): Obtain timestamp for client instance from GDK and pass to server instance so new windows are focused properly. Fix dbus_g_proxy_call() calls by including second G_TYPE_INVALID. Closes bug #314475.
* Check for avail. EvWindows when quiting to handle the finalize better,Jonathan Blandford2005-08-261-6/+15
| | | | | | | | Thu Aug 25 22:13:08 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-window.c (ev_window_finalize): Check for avail. EvWindows when quiting to handle the finalize better, #314497
* Redo rotation (again). prepare for 0.4.0Jonathan Blandford2005-08-251-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | Thu Aug 25 02:32:32 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-document-misc.c: (ev_document_misc_get_thumbnail_frame): * backend/ev-document-misc.h: * configure.ac: * pdf/ev-poppler.cc: * shell/Makefile.am: * shell/ev-sidebar-thumbnails.c: (add_range), (ev_sidebar_thumbnails_set_loading_icon), (ev_sidebar_thumbnails_refresh), (ev_sidebar_thumbnails_set_document): * shell/ev-sidebar-thumbnails.h: * shell/ev-view.c: (ev_view_motion_notify_event), (ev_view_set_property), (ev_view_get_property), (ev_view_class_init), (ev_view_set_rotation): * shell/ev-window.c: (ev_window_cmd_edit_rotate_left), (ev_window_cmd_edit_rotate_right), (ev_window_rotation_changed_cb), (ev_window_init): * tiff/tiff-document.c: (tiff_document_thumbnails_get_thumbnail): Redo rotation (again). prepare for 0.4.0
* Fix build warnings and compilation with dbus 0.35.2Nickolay V. Shmyrev2005-08-161-0/+1
|
* Return focus back to view on escape. Fix for bug 313295.Nickolay V. Shmyrev2005-08-161-0/+1
|
* Correct conversion from uri to displayable string. Fix for bug 313296.Nickolay V. Shmyrev2005-08-161-18/+21
| | | | | | | | | * shell/ev-window.c: (update_window_title), (ev_window_popup_password_dialog), (ev_window_load_job_cb), (ev_window_cmd_save_as): Correct conversion from uri to displayable string. Fix for bug 313296.
* HIG fixes: add a couple missing mnemonics to menu items, use titleDennis Cranston2005-08-151-5/+5
| | | | | | | | | 2005-08-14 Dennis Cranston <dennis_cranston@yahoo.com> * shell/ev-window.c: (ev_window_cmd_file_open): HIG fixes: add a couple missing mnemonics to menu items, use title capitalization for menu items and window titles, and add ellipsis to open menu item.
* * shell/ev-metadata-manager.c: (ev_metadata_manager_init): *Jonathan Blandford2005-08-151-0/+37
| | | | | | | | | | | | Mon Aug 15 00:40:21 2005 Jonathan Blandford <jrb@redhat.com> * pdf/ev-poppler.cc: * shell/ev-metadata-manager.c: (ev_metadata_manager_init): * shell/ev-view.c: (ev_view_rotate_left), (ev_view_set_rotation), (ev_view_get_rotation): * shell/ev-view.h: * shell/ev-window.c: (setup_view_from_metadata), (save_rotation_to_file), (ev_window_cmd_edit_rotate_left), (ev_window_cmd_edit_rotate_right): Fix rotation. Save it to disk.
* Clean up selection to be much smoother!Jonathan Blandford2005-08-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Aug 6 01:12:44 2005 Jonathan Blandford <jrb@redhat.com> * NOTES: * backend/ev-selection.c: (ev_selection_render_selection): * backend/ev-selection.h: * pdf/ev-poppler.cc: * shell/ev-jobs.c: (ev_job_render_dispose), (ev_job_render_new), (ev_job_render_run): * shell/ev-jobs.h: * shell/ev-pixbuf-cache.c: (dispose_cache_job_info), (ev_pixbuf_cache_new), (job_finished_cb), (add_job_if_needed), (convert_gdk_color_to_uint), (ev_pixbuf_cache_get_text_mapping), (ev_pixbuf_cache_style_changed), (ev_pixbuf_cache_get_selection_pixbuf), (ev_pixbuf_cache_set_selection_list), (ev_pixbuf_cache_get_selection_list): * shell/ev-pixbuf-cache.h: * shell/ev-utils.c: (ev_print_region_contents): * shell/ev-utils.h: * shell/ev-view.c: (ev_view_queue_draw_page), (selection_update_idle_cb), (ev_view_motion_notify_event), (ev_view_style_set), (draw_one_page), (ev_view_class_init), (setup_caches), (ev_view_find_next), (merge_selection_region), (selection_free): * shell/ev-window.c: (ev_window_update_fullscreen_popup): Clean up selection to be much smoother!
* Disable save and print respect to lockdown gconf keysNickolay V. Shmyrev2005-08-031-1/+13
|
* Copy-paste g_file_set_contents to keep compatibility with gtk 2.6Nickolay V. Shmyrev2005-08-031-1/+6
| | | | Fix for bug 312228
* Persist the print settings. Fixes bug #311578.Christian Persch2005-07-311-2/+51
| | | | | | | | | 2005-07-31 Christian Persch <chpe@cvs.gnome.org> * shell/ev-window.c: (load_print_config_from_file), (save_print_config_to_file), (ev_window_print_range): Persist the print settings. Fixes bug #311578.
* Handle n_pages == 0, fixes #310306.Jonathan Blandford2005-07-301-2/+2
| | | | | | | | Fri Jul 29 23:14:28 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-page-cache.c: (ev_page_cache_new): * shell/ev-window.c: (update_action_sensitivity): Handle n_pages == 0, fixes #310306.
* (using_pdf_printer): new function.Martin Kretzschmar2005-07-251-2/+31
| | | | | (ev_window_print_range): print a less techy message if someone tries to print to PDF.
* Add keypad accelerators for zooming. Fix for bug 308128.Nickolay V. Shmyrev2005-07-121-4/+12
| | | | | | | | 2005-07-12 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * data/evince-ui.xml, shell/ev-window.c: Add keypad accelerators for zooming. Fix for bug 308128.
* Use F5 as presentation accellMarco Pesenti Gritti2005-07-111-1/+1
| | | | | | | | 2005-07-11 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: Use F5 as presentation accell