Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
Commit message (Collapse)AuthorAgeFilesLines
* PageCache and EvJobs are moved from backend to shell. Two new jobs toNickolay V. Shmyrev2005-06-071-3/+3
| | | | | load document in background and a statusbar to display this process. FileChooser now can select multiple uris.
* More compact EvView layout in documents with different page sizesNickolay V. Shmyrev2005-06-051-123/+91
|
* A bit different fix for rounding problem but it has noNickolay V. Shmyrev2005-06-041-6/+7
| | | | problems on startup. Make properties window transient to parent.
* other_page isn't necessarily page + 1.Jonathan Blandford2005-06-041-3/+5
| | | | | | | | | | | | | | | Fri Jun 3 21:07:57 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c (get_page_extents): other_page isn't necessarily page + 1. * shell/ev-window.c: Make sure we add the timeout when we get a focus-in event. * shell/ev-view.c (view_set_adjustment_values): Add 0.5 to adjustment->value before calculating the zoom factor to average out all of our rounding errors. The page no longer 'drifts' when resizing.
* Release ref on the pixbuf cache when changing document.Marco Pesenti Gritti2005-05-311-0/+5
| | | | | | | | | 2005-05-31 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (ev_view_set_document): Release ref on the pixbuf cache when changing document.
* Slightly modified patch by Nickolay V. Shmyrev <nshmyrev@yandex.ru>. FixMarco Pesenti Gritti2005-05-311-113/+71
| | | | | | | | | | | | | | 2005-05-31 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_document): * shell/ev-view.c: (scroll_to_current_page), (view_set_adjustment_values), (ev_view_set_scroll_adjustments), (page_changed_cb), (on_adjustment_value_changed), (ev_view_set_document): Slightly modified patch by Nickolay V. Shmyrev <nshmyrev@yandex.ru>. Fix bug 305377
* modify the expose handling to get the shadows.Jonathan Blandford2005-05-291-31/+31
| | | | | | | | | | | | | | Sat May 28 07:38:03 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c (draw_one_page): modify the expose handling to get the shadows. * shell/ev-window.c (update_action_sensitivity): Respect permissions field. Kowtow to the man. * pdf/ev-poppler.cc: Get the permissions field. * tiff/*c: Make a tiny bit more robust.
* Fix minor points related to moving best fit up. IntroduceNickolay V. Shmyrev2005-05-221-10/+32
| | | | | "zoom" property and make zoom control change it's value on notify::zoom signals. Fix for 305080.
* Remove the locks around get_n_resultsMarco Pesenti Gritti2005-05-211-12/+0
| | | | | | | | | | | | | | | 2005-05-21 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (jump_to_find_result), (ev_view_can_find_next), (ev_view_find_next), (ev_view_find_previous): Remove the locks around get_n_results 2005-05-21 Juerg Billeter <j@bitron.ch> * pdf/ev-poppler.c: (pdf_document_ps_exporter_begin): Pass correct number of pages to poppler.
* cast adjustmen->value to (int) before using it. Otherwise, we get off by aJonathan Blandford2005-05-211-9/+8
| | | | | | | | | | | Sat May 21 00:21:30 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c: (view_update_adjustments), (view_set_adjustment_values): cast adjustmen->value to (int) before using it. Otherwise, we get off by a pixel in some situations. (draw_one_page): Draw the border on expose.
* Patch from Nickolay V. Shmyrev to reset the adjustment when the modeJonathan Blandford2005-05-211-21/+31
| | | | | | | Fri May 20 22:05:25 2005 Jonathan Blandford <jrb@redhat.com> * *shell/ev-view.c: Patch from Nickolay V. Shmyrev to reset the adjustment when the mode changes, #304923
* Fix flickering on resizingNickolay V. Shmyrev2005-05-201-3/+9
|
* Patch from Nickolay Shmyrev to fix the -p option, #170458Jonathan Blandford2005-05-201-13/+7
| | | | | | | Fri May 20 01:46:57 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c: Patch from Nickolay Shmyrev to fix the -p option, #170458
* Patch from Nickolay Shmyrev to to scroll to second page on page_changed ifJonathan Blandford2005-05-201-4/+18
| | | | | | | Fri May 20 01:27:01 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c: Patch from Nickolay Shmyrev to to scroll to second page on page_changed if possible, #304669
* Use gdk_window_scroll instead of gtk_widget_queue_draw. Massive speedupsJonathan Blandford2005-05-201-65/+111
| | | | | | | | | | | | | | | | | | | | | | | | | Fri May 20 01:07:15 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c (view_update_adjustments): Use gdk_window_scroll instead of gtk_widget_queue_draw. Massive speedups in scrolling. Fri May 20 01:05:10 2005 Jonathan Blandford <jrb@redhat.com> * .cvsignore: * shell/ev-view.c:(ev_view_size_allocate), (ev_view_class_init), (zoom_for_size_fit_width), (zoom_for_size_best_fit), (ev_view_zoom_for_size_presentation), (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): * shell/ev-view.h: * shell/ev-window.c: (update_view_size), (ev_window_sizing_mode_changed_cb): Patch from Nickolay Shmyrev <nshmyrev@yandex.ru> to handle the scrollbars. It's not 100% right, but it's much closer. Kills an infinite loop, #304769
* Make PgUp/Down behave like SpaceMarco Pesenti Gritti2005-05-181-30/+21
| | | | | | | | | | 2005-05-18 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-view.c: (ev_view_scroll_view), (ev_view_class_init): * shell/ev-window.c: (set_view_actions_sensitivity): Make PgUp/Down behave like Space
* Massive code clean up from Nickolay Shmyrev. Keep page offset whenJonathan Blandford2005-05-181-968/+1143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue May 17 22:54:17 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c: (view_update_adjustments), (view_set_adjustment_values), (view_update_range_and_current_page), (view_scroll_to_page), (set_scroll_adjustment), (ev_view_set_scroll_adjustments), (add_scroll_binding_keypad), (ev_view_scroll), (ev_view_scroll_view), (ensure_rectangle_is_visible), (find_page_at_location), (get_link_at_location), (go_to_link), (status_message_from_link), (ev_view_size_request_continuous_dual_page), (ev_view_size_request), (ev_view_size_allocate), (ev_view_realize), (ev_view_unrealize), (ev_view_expose_event), (ev_view_button_press_event), (ev_view_motion_notify_event), (ev_view_button_release_event), (ev_gdk_color_to_rgb), (draw_rubberband), (highlight_find_results), (draw_one_page), (ev_view_finalize), (ev_view_destroy), (ev_view_class_init), (ev_view_init), (find_changed_cb), (page_changed_cb), (on_adjustment_value_changed), (ev_view_new), (ev_view_set_document), (ev_view_set_zoom), (ev_view_set_continuous), (ev_view_set_dual_page), (ev_view_set_presentation), (ev_view_zoom_in), (ev_view_zoom_out), (zoom_for_size_fit_width), (zoom_for_size_best_fit), (ev_view_zoom_for_size_presentation), (ev_view_zoom_for_size_continuous_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_view_get_status), (ev_view_set_status), (update_find_status_message), (ev_view_get_find_status), (ev_view_set_find_status), (jump_to_find_result), (jump_to_find_page), (compute_selections), (clear_selection), (ev_view_select_all), (get_selected_text), (ev_view_copy), (ev_view_primary_get_cb), (ev_view_primary_clear_cb), (ev_view_update_primary_selection), (ev_view_create_invisible_cursor), (ev_view_set_cursor): * shell/ev-view.h: * shell/ev-window.c: (ev_window_open_page_label), (ev_window_cmd_view_reload), (ev_window_sizing_mode_changed_cb), (ev_window_init): * shell/ev-window.h: * shell/main.c: (load_files): Massive code clean up from Nickolay Shmyrev. Keep page offset when resizing. Remove the bin_window(). Also, patch from James Bowes to fix command line page, #300641
* Get rid of View->Normal Size, it's just confusingMarco Pesenti Gritti2005-05-171-7/+0
| | | | | | | | | | | 2005-05-17 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-view.c: * shell/ev-view.h: * shell/ev-window.c: (update_action_sensitivity): Get rid of View->Normal Size, it's just confusing
* make page size calculation consistent and set it to (int)( width * scale +Jonathan Blandford2005-05-111-4/+6
| | | | | | | | | | | | Wed May 11 01:18:29 2005 Jonathan Blandford <jrb@redhat.com> * pdf/ev-poppler.cc: * backend/ev-page-cache.c: make page size calculation consistent and set it to (int)( width * scale + 0.5). This makes the weird line going through the middle of the page go away. * shell/ev-view.c: move painting the background page after checking the expose area covers us.
* This is evil... Make space/backspace global accelerators but enable themMarco Pesenti Gritti2005-05-101-30/+3
| | | | | | | | | | | | | | | | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-sidebar-links.c: (ev_sidebar_links_get_treeview): * shell/ev-sidebar-links.h: * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_get_treeview): * shell/ev-sidebar-thumbnails.h: * shell/ev-view.c: (ev_view_scroll), (ev_view_scroll_view), (ev_view_class_init): * shell/ev-view.h: * shell/ev-window.c: (update_action_sensitivity), (ev_window_cmd_scroll_forward), (ev_window_cmd_scroll_backward), (set_view_actions_sensitivity), (view_actions_focus_in_cb), (view_actions_focus_out_cb), (enable_view_actions_for_widget), (ev_window_init): This is evil... Make space/backspace global accelerators but enable them only for some widgets (sidebars and view). I dont like it, but I dont know a better way... :/
* Implement middle button scrolling. Based on a patch by Tommi KomulainenMarco Pesenti Gritti2005-05-091-59/+125
| | | | | | | | | | | | 2005-05-09 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (ev_view_create_invisible_cursor), (ev_view_set_cursor), (ev_view_button_press_event), (ev_view_motion_notify_event), (ev_view_button_release_event), (ev_view_init): Implement middle button scrolling. Based on a patch by Tommi Komulainen <tommi.komulainen@iki.fi>.
* Release 0.3.0Marco Pesenti Gritti2005-05-071-1/+6
| | | | | | | | | | | | | | | | | 2005-05-07 Marco Pesenti Gritti <mpg@redhat.com> * NEWS: * configure.ac: Release 0.3.0 * data/evince-ui.xml: Hide presentation mode for now * shell/ev-view.c: (highlight_find_results): Show current find selection only on current page
* Compute size of the actual page, not of the current one.Marco Pesenti Gritti2005-05-071-4/+1
| | | | | | | | | 2005-05-07 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (ev_view_select_all): Compute size of the actual page, not of the current one.
* Fix text selectionMarco Pesenti Gritti2005-05-071-58/+116
| | | | | | | | | | | | | | 2005-05-07 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (clear_selection), (ev_view_finalize), (view_rect_to_doc_rect), (compute_selections), (ev_view_bin_expose), (ev_view_select_all), (get_selected_text), (ev_view_copy), (ev_view_primary_get_cb), (ev_view_primary_clear_cb), (ev_view_update_primary_selection), (ev_view_button_press_event), (ev_view_motion_notify_event), (ev_view_button_release_event), (page_changed_cb): Fix text selection
* First go at fixing search, still buggyMarco Pesenti Gritti2005-05-071-164/+149
| | | | | | | | | | | | 2005-05-07 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (compute_border), (get_page_extents), (doc_rect_to_view_rect), (highlight_find_results), (ev_view_bin_expose), (ev_view_select_all), (ev_view_motion_notify_event), (update_find_status_message), (jump_to_find_result), (jump_to_find_page): First go at fixing search, still buggy
* Output zoom-control Makefile. build zoom-control subdir.James Bowes2005-05-021-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-02 James Bowes <bowes@cs.dal.ca> * configure.ac: Output zoom-control Makefile. * cut-n-paste/Makefile.am: build zoom-control subdir. * cut-n-paste/zoom-control/ephy-zoom-action.c: * cut-n-paste/zoom-control/ephy-zoom-action.h: * cut-n-paste/zoom-control/ephy-zoom-control.c: * cut-n-paste/zoom-control/ephy-zoom-control.h: * cut-n-paste/zoom-control/ephy-zoom.c: * cut-n-paste/zoom-control/ephy-zoom.h: New files imported from epiphany, and modified to add a separator into the menu. * cut-n-paste/zoom-control/Makefile.am: Build zoom-control. * data/evince-ui.xml: Replace old zoom toolbar actions with new zoom-control action. * shell/Makefile.am: Include zoom-control flags. * shell/ev-view.c: (ev_view_set_zoom), (ev_view_get_zoom), (ev_view_get_sizing_mode), (ev_view_zoom_in), (ev_view_zoom_out), (ev_view_zoom_for_size_presentation), (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_zoom_normal): s/ev_view_zoom/ev_view_set_zoom/ and make public, add ev_view_get_zoom and ev_view_get_sizing_mode. * shell/ev-view.h: * shell/ev-window.c: (update_action_sensitivity), (update_sizing_buttons), (zoom_control_changed_cb), (register_custom_actions): Initialize and use the zoom-control widget.
* Change the preview cache back to 1. Don't know when it got set to 0.Jonathan Blandford2005-05-011-35/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun May 1 00:46:47 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-pixbuf-cache.c: (ev_pixbuf_cache_init): Change the preview cache back to 1. Don't know when it got set to 0. * shell/ev-view.c: (compute_border), (ev_view_realize), (draw_one_page), (ev_view_set_property), (ev_view_get_property), (ev_view_class_init), (ev_view_init), (ev_view_set_fullscreen), (ev_view_get_fullscreen), (ev_view_set_presentation), (ev_view_get_presentation), (ev_view_set_sizing_mode), (ev_view_zoom_for_size_presentation), (ev_view_set_zoom_for_size): * shell/ev-view.h: * shell/ev-window.c: (update_chrome_visibility), (ev_window_cmd_continuous), (ev_window_cmd_dual), (ev_window_cmd_view_best_fit), (ev_window_cmd_view_page_width), (update_document_mode), (ev_window_update_fullscreen_action), (ev_window_fullscreen), (ev_window_unfullscreen), (ev_window_cmd_view_fullscreen), (ev_window_update_presentation_action), (ev_window_run_presentation), (ev_window_stop_presentation), (ev_window_cmd_view_presentation), (ev_window_state_event), (ev_window_focus_in_event), (ev_window_focus_out_event), (ev_window_cmd_escape), (ev_window_sidebar_visibility_changed_cb): * data/evince-ui.xml: Initial presentation mode. We should probably hide this until it's done, as it's quite rough. Also, change full-screen to fullscreen and add two getters to EvView.
* Update current page while scrolling in continuous modeNickolay V. Shmyrev2005-04-271-2/+15
| | | | CVSr ----------------------------------------------------------------------
* Scroll up increase zoomNickolay V. Shmyrev2005-04-241-1/+1
|
* Horizontal scroll and zooming with mouse wheelNickolay V. Shmyrev2005-04-241-3/+34
|
* forgot to set this.Jonathan Blandford2005-04-241-1/+1
| | | | | | Sun Apr 24 01:37:39 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c (ev_view_init): forgot to set this.
* Fix links for dual/continuous. Also, add a quick fix measuring of widths.Jonathan Blandford2005-04-241-44/+38
| | | | | | | | | | | | | | | Sun Apr 24 01:07:27 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c: (find_page_at_location), (get_link_at_location), (ev_view_set_show_border), (ev_view_set_spacing), (ev_view_zoom_for_size_continuous_and_dual_page), (ev_view_zoom_for_size_continuous): Fix links for dual/continuous. Also, add a quick fix measuring of widths. Also, removed ev_view_set_spacing and ev_view_set_show_border. * shell/ev-window.c: (ev_window_unfullscreen), (ev_window_cmd_view_fullscreen): Don't adjust the border/spacing.
* Fix crash on exit and scrolling to pageNickolay V. Shmyrev2005-04-231-9/+33
|
* Add Continuous and Dual page modes.Jonathan Blandford2005-04-231-133/+802
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Apr 23 13:13:04 2005 Jonathan Blandford <jrb@redhat.com> * TODO: * backend/ev-page-cache.c: (_ev_page_cache_new), (ev_page_cache_get_max_width_size), (ev_page_cache_get_max_height_size): * backend/ev-page-cache.h: * data/evince-ui.xml: * shell/ev-pixbuf-cache.c: (ev_pixbuf_cache_init): * shell/ev-view.c: (view_update_adjustments), (view_update_range_and_current_page), (get_bounding_box_size), (ev_view_size_request_continuous_and_dual_page), (ev_view_size_request_continuous), (ev_view_size_request_dual_page), (ev_view_size_request_single_page), (ev_view_size_request), (ev_view_size_allocate), (get_page_extents), (draw_one_page), (ev_view_bin_expose), (ev_view_expose_event), (ev_view_set_property), (ev_view_get_property), (ev_view_class_init), (ev_view_init), (ev_view_new), (page_changed_cb), (ev_view_zoom), (ev_view_set_continuous), (ev_view_set_dual_page), (ev_view_set_full_screen), (ev_view_set_presentation), (ev_view_set_sizing_mode), (ev_view_can_zoom_in), (ev_view_can_zoom_out), (ev_view_zoom_in), (ev_view_zoom_out), (zoom_for_size_fit_width), (zoom_for_size_best_fit), (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_view_show_cursor), (ev_sizing_mode_get_type): * shell/ev-view.h: * shell/ev-window.c: (update_action_sensitivity), (ev_window_cmd_continuous), (ev_window_cmd_dual), (ev_window_cmd_view_best_fit), (ev_window_cmd_view_page_width), (update_sizing_buttons), (ev_window_cmd_view_zoom_in), (ev_window_cmd_view_zoom_out), (update_view_size), (ev_window_set_sizing_mode), (ev_window_init): Add Continuous and Dual page modes.
* Remove unnecessary locking.Kristian Høgsberg2005-04-221-4/+0
| | | | | | | 2005-04-22 Kristian Høgsberg <krh@redhat.com> * shell/ev-view.c (highlight_find_results): Remove unnecessary locking.
* Fix find on single page documentsMarco Pesenti Gritti2005-04-221-2/+2
| | | | | | | | | 2005-04-22 Marco Pesenti Gritti <mpg@redhat.com> * pdf/ev-poppler.cc: * shell/ev-view.c: (highlight_find_results): Fix find on single page documents
* Fix normal size zoom. Make zoom in/zoom out unsensitive when they areMarco Pesenti Gritti2005-04-221-1/+27
| | | | | | | | | | | | | | | | 2005-04-22 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (ev_view_can_zoom_in), (ev_view_can_zoom_out), (ev_view_zoom_out), (ev_view_zoom_normal): * shell/ev-view.h: * shell/ev-window.c: (update_action_sensitivity), (ev_window_cmd_view_best_fit), (ev_window_cmd_view_page_width), (ev_window_cmd_view_zoom_in), (ev_window_cmd_view_zoom_out), (ev_window_cmd_view_normal_size): Fix normal size zoom. Make zoom in/zoom out unsensitive when they are behyond the limits. Tweak MAX_ZOOM to 6, sucks but better than oom.
* actually remove the job.Jonathan Blandford2005-04-221-27/+27
| | | | | | | | | | Thu Apr 21 23:37:52 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-pixbuf-cache.c (dispose_cache_job_info): actually remove the job. * backend/ev-document.h: Remove EV_DOC_MUTEX in favor of a locking function. This helps debugging.
* Minor cleanups removing some dead code.Jonathan Blandford2005-04-161-38/+28
| | | | | | | | | | | Sat Apr 16 18:53:47 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-sidebar-links.c: (selection_changed_cb): * shell/ev-view.c: (ev_view_finalize), (go_to_link), (ev_view_button_release_event), (ev_view_set_document): * shell/ev-view.h: * shell/ev-window.c: (find_bar_search_changed_cb): * shell/ev-window.h: Minor cleanups removing some dead code.
* Allow setting view spacing, default to 0Marco Pesenti Gritti2005-04-161-1/+14
| | | | | | | | | | | | | | 2005-04-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (ev_view_set_spacing), (ev_view_init): * shell/ev-view.h: Allow setting view spacing, default to 0 * shell/ev-window.c: (ev_window_unfullscreen), (ev_window_cmd_view_fullscreen), (ev_window_init): Remove spacing in fullscreen mode
* Do not draw the border in fulscreenMarco Pesenti Gritti2005-04-161-6/+34
| | | | | | | | | | | | | 2005-04-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (compute_border), (compute_zoom_factor), (ev_view_size_request), (expose_bin_window), (ev_view_set_show_border), (ev_view_init), (page_changed_cb): * shell/ev-view.h: * shell/ev-window.c: (ev_window_unfullscreen), (ev_window_cmd_view_fullscreen): Do not draw the border in fulscreen
* Rework border calculation, so that I can more easily disable it. CodeMarco Pesenti Gritti2005-04-161-39/+32
| | | | | | | | | | | 2005-04-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (ev_view_get_offsets), (compute_zoom_factor), (ev_view_size_request), (expose_bin_window), (ev_view_select_all), (find_page_at_location), (page_changed_cb): Rework border calculation, so that I can more easily disable it. Code somewhat cleaner too.
* Rework sizing to deal with documents with not uniform page size.Marco Pesenti Gritti2005-04-151-53/+55
| | | | | | | | | | | 2005-04-15 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (compute_zoom_factor), (ev_view_size_request), (page_changed_cb), (ev_view_zoom), (ev_view_zoom_in), (ev_view_zoom_out), (ev_view_set_size): Rework sizing to deal with documents with not uniform page size.
* Fix the crash when trying to copy in backends that doesnt support it. WeMarco Pesenti Gritti2005-04-141-0/+8
| | | | | | | | | | | | | | | | | | | | | 2005-04-14 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.h: * djvu/djvu-document.c: (djvu_document_can_get_text), (djvu_document_document_iface_init): * dvi/dvi-document.c: (dvi_document_can_get_text), (dvi_document_document_iface_init): * pdf/ev-poppler.cc: * pixbuf/pixbuf-document.c: (pixbuf_document_can_get_text), (pixbuf_document_document_iface_init): * ps/ps-document.c: (ps_document_can_get_text), (ps_document_document_iface_init): * shell/ev-view.c: (ev_view_copy), (ev_view_primary_get_cb): * shell/ev-window.c: (update_action_sensitivity): Fix the crash when trying to copy in backends that doesnt support it. We can implement a better solution once we do real text selection.
* Fix for bugs 300233,173184,300094. Problems with page index started at 0Nickolay V. Shmyrev2005-04-121-12/+29
| | | | and scrolling up with Shift + Space
* Check that the document supports findMarco Pesenti Gritti2005-04-081-1/+1
| | | | | | | | | 2005-04-08 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-view.c: (ev_view_can_find_next): * shell/ev-window.c: (ev_window_setup_document): Check that the document supports find
* Add Edit->Find NextMarco Pesenti Gritti2005-04-081-0/+16
| | | | | | | | | | | | | 2005-04-08 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-view.c: (ev_view_can_find_next): * shell/ev-view.h: * shell/ev-window.c: (update_action_sensitivity), (find_changed_cb), (ev_window_setup_document), (ev_window_cmd_edit_find_next): Add Edit->Find Next
* Make searching work again.Kristian Høgsberg2005-04-051-39/+45
| | | | | | | | | | | | | | | | | | | 2005-04-04 Kristian Høgsberg <krh@redhat.com> Make searching work again. * backend/ev-document.c: * backend/ev-document.h: * backend/ev-document-find.c: * backend/ev-document-find.h: Change EvDocumentIface so we no longer store the current page or zoom level in the document. The consequence is that all calls that operate on the current page now instead take the page number as an extra argument, and all coordinates are now doubles in document coordinate system. * pdf/ev-poppler.cc: * pixbuf/pixbuf-document.c: * ps/ps-document.c: Update backends accordingly.
* Patch from Alberto Mesas <amesas@gmail.com> to make F1 bring upJonathan Blandford2005-04-031-41/+105
| | | | | | | | | | | | | | | | | | | | | Sat Apr 2 18:57:00 2005 Jonathan Blandford <jrb@redhat.com> * shell/evwindow.c: Patch from Alberto Mesas <amesas@gmail.com> to make F1 bring up non-existent help. * shell/eggfindbar.c: Patch from Christian Persch to sync to epiphany's find bar, #167477 * shell/ev-view.c (ev_view_jump): Patch from Emil Soleyman-Zomalan <emil@nishra.com> to add space-bar scrolling, * shell/ev-window.c (static GtkActionEntry entries): add default keybinding for Help (F1) Fixes #171068 * shell/ev-view.c (ev_view_show_cursor): Fix from Yuval Tanny changing EV_VIEW_CURSOR_LINK to EV_VIEW_CURSOR_NORMAL resolves bug 170110
* Implement search based on poppler_page_find_text(). Currently a bit crudeKristian Høgsberg2005-04-011-12/+13
| | | | | | | | | | | | | | | 2005-04-01 Kristian Høgsberg <krh@redhat.com> * pdf/ev-poppler.cc: Implement search based on poppler_page_find_text(). Currently a bit crude since we remember all matches from all pages. Also, we grab the big document lock when we search since searching changes the underlying stream and thus conflicts with the rendering thread. * shell/ev-view.c: (draw_rubberband), (highlight_find_results), (jump_to_find_page), (ev_view_set_document), (ev_view_find_next), (ev_view_find_previous): Fix some page indexes to be 0 based, offset rubber band by view offset,