Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
Commit message (Collapse)AuthorAgeFilesLines
* Use document info from page cache instead of document itself. fix for crashNickolay V. Shmyrev2005-06-073-5/+4
| | | | 306545
* Cleanup links job on exitNickolay V. Shmyrev2005-06-061-0/+10
|
* Use a const to return title so that we dont double free it. Small cleanupMarco Pesenti Gritti2005-06-061-2/+1
| | | | | | | | | | | | | | 2005-06-06 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-page-cache.c: (_ev_page_cache_new): * backend/ev-page-cache.h: Use a const to return title so that we dont double free it. Small cleanup and fix a leak. * shell/ev-window.c: (update_window_title): strdup value from get_title.
* Cleanup the old job when changing documentMarco Pesenti Gritti2005-06-061-1/+8
| | | | | | | | | 2005-06-06 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar-links.c: (job_finished_callback), (ev_sidebar_links_set_document): Cleanup the old job when changing document
* second part of commitNickolay V. Shmyrev2005-06-053-3/+7
|
* More compact EvView layout in documents with different page sizesNickolay V. Shmyrev2005-06-051-123/+91
|
* fix compilation.Jonathan Blandford2005-06-041-1/+1
| | | | | * shell/ev-window.c (ev_window_cmd_file_properties): fix compilation.
* A bit different fix for rounding problem but it has noNickolay V. Shmyrev2005-06-042-6/+8
| | | | problems on startup. Make properties window transient to parent.
* Set the column title. Show the dialog only once everything is setup.Marco Pesenti Gritti2005-06-041-0/+1
| | | | | | | | | | | | | 2005-06-04 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-properties.glade: * pdf/ev-poppler.cc: * shell/ev-properties.c: (setup_fonts_view): Set the column title. Show the dialog only once everything is setup. Getting font info can be very slow... will prolly need to make this threaded too.
* Implement fonts list. Defined out for now, since it depends on a not yetMarco Pesenti Gritti2005-06-043-5/+41
| | | | | | | | | | | | | | | | | 2005-06-04 Marco Pesenti Gritti <mpg@redhat.com> * backend/Makefile.am: * backend/ev-document-fonts.c: (ev_document_fonts_get_type), (ev_document_fonts_get_fonts_model): * backend/ev-document-fonts.h: * data/evince-properties.glade: * pdf/ev-poppler.cc: * shell/ev-properties.c: (setup_fonts_view), (ev_properties_new): * shell/ev-properties.h: * shell/ev-window.c: (ev_window_cmd_file_properties): Implement fonts list. Defined out for now, since it depends on a not yet committed poppler patch.
* other_page isn't necessarily page + 1.Jonathan Blandford2005-06-042-12/+29
| | | | | | | | | | | | | | | 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.
* Labels don't expand when the dialogue is resizedNickolay V. Shmyrev2005-06-041-11/+15
| | | | strftime result needs to be converted to UTF-8. Thanks to chpe.
* Rework properties code to take only EvPropertyInfo in the constructor soMarco Pesenti Gritti2005-06-043-115/+119
| | | | | | | | | | | | | | | | | | | | | 2005-06-04 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-info.h: * backend/ev-document.c: (ev_document_info_free): * data/evince-properties.glade: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_get_info): * shell/ev-properties.c: (ev_properties_format_date), (set_property), (ev_properties_new): * shell/ev-properties.h: * shell/ev-window.c: (ev_window_cmd_file_properties): Rework properties code to take only EvPropertyInfo in the constructor so that it can be useful for nautilus plugin too. Deal with backends that doesnt support some properties. Make set property code generic.
* Initial go at file properties. Patch by Emil Soleyman-ZomalanMarco Pesenti Gritti2005-06-034-1/+210
| | | | | | | | | | | | | | | | 2005-06-03 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-info.h: * data/Makefile.am: * data/evince-ui.xml: * pdf/ev-poppler.cc: * shell/Makefile.am: * shell/ev-window.c: (update_action_sensitivity), (ev_window_cmd_file_properties): Initial go at file properties. Patch by Emil Soleyman-Zomalan <emil@soleyman.com>. Needs love see #169583
* Correctly manage our reference on document. Finally the reload huge leakMarco Pesenti Gritti2005-05-311-34/+19
| | | | | | | | | | 2005-05-31 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar-links.c: (ev_sidebar_links_dispose), (ev_sidebar_links_class_init), (ev_sidebar_links_set_document): Correctly manage our reference on document. Finally the reload huge leak is gone...
* 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.
* Set page action entry width depending on labels width. Fix for 305202Nickolay V. Shmyrev2005-05-311-0/+6
|
* Slightly modified patch by Nickolay V. Shmyrev <nshmyrev@yandex.ru>. FixMarco Pesenti Gritti2005-05-312-115/+72
| | | | | | | | | | | | | | 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-294-39/+49
| | | | | | | | | | | | | | 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.
* Cleanup tiff configure checks. Fix for bug 305218.Nickolay V. Shmyrev2005-05-242-2/+8
|
* Fix minor points related to moving best fit up. IntroduceNickolay V. Shmyrev2005-05-222-13/+46
| | | | | "zoom" property and make zoom control change it's value on notify::zoom signals. Fix for 305080.
* Second part of commit, broken pipe somehowNickolay V. Shmyrev2005-05-221-0/+9
|
* Rough TIFF backend.Jonathan Blandford2005-05-222-0/+7
| | | | | | Sat May 21 23:18:30 2005 Jonathan Blandford <jrb@redhat.com> * tiff/tiff-document.c: Rough TIFF backend.
* 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-203-65/+159
| | | | | | | | | | | | | | | | | | | | | | | | | 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-182-32/+31
| | | | | | | | | | 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
* Adapt to new poppler apiMarco Pesenti Gritti2005-05-181-1/+2
| | | | | | | | | | | | 2005-05-18 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-ps-exporter.c: (ev_ps_exporter_begin): * backend/ev-ps-exporter.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_ps_export_begin): * shell/ev-print-job.c: (idle_print_handler): Adapt to new poppler api
* Give focus to the ev-view, rather than the scrolled_window that it's in.James Bowes2005-05-181-2/+2
| | | | | | | 2005-05-18 James Bowes <bowes@cs.dal.ca> * shell/ev-window.c: (ev_window_init): Give focus to the ev-view, rather than the scrolled_window that it's in. Fixes bug #304655.
* Massive code clean up from Nickolay Shmyrev. Keep page offset whenJonathan Blandford2005-05-185-1032/+1163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-173-21/+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
* Free the EvDocumentInfo.Jonathan Blandford2005-05-172-40/+172
| | | | | | | | | | | | | | | | Tue May 17 00:51:21 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-document-info.h: * backend/ev-document.c: (ev_document_info_free): Free the EvDocumentInfo. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose), (clear_range), (add_range), (update_visible_range), (adjustment_changed_cb), (ev_sidebar_thumbnails_init), (ev_sidebar_thumbnails_set_document): * shell/ev-window.c: (ev_window_setup_document): Only render the visible thumbnails. It takes an instant to render, but it uses much less memory.
* Select first itemMarco Pesenti Gritti2005-05-161-1/+4
| | | | | | | | 2005-05-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar-links.c: (popup_menu_cb): Select first item
* Show the popup menu also on keybindingsMarco Pesenti Gritti2005-05-161-16/+33
| | | | | | | | | | 2005-05-16 Marco Pesenti Gritti <mpg@redhat.com> * lib/Makefile.am: * shell/ev-sidebar-links.c: (build_popup_menu), (popup_menu_cb), (button_press_cb), (ev_sidebar_links_construct): Show the popup menu also on keybindings
* Expose api to print a range (with dialog). Make private _print use it.Marco Pesenti Gritti2005-05-163-7/+106
| | | | | | | | | | | | | | | | 2005-05-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (ev_window_print), (ev_window_print_range): * shell/ev-window.h: Expose api to print a range (with dialog). Make private _print use it. * shell/ev-sidebar-links.c: (print_section_cb), (button_press_cb), (ev_sidebar_links_construct): Show a print context menu on linkx, it prints the selected section.
* make the drop down menu as width as the toggle button.Carlos Garcia Campos2005-05-151-0/+9
| | | | | | 2005-05-15 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-sidebar.c: make the drop down menu as width as the toggle button.
* UpdateMarco Pesenti Gritti2005-05-121-3/+37
| | | | | | | | | | | | | 2005-05-12 Marco Pesenti Gritti <mpg@redhat.com> * AUTHORS: Update * shell/ev-window.c: (build_comments_string), (ev_window_cmd_help_about): Show poppler version/backend and authors
* Use signals to notify action activation. Hopefully I did not breakMarco Pesenti Gritti2005-05-114-4/+91
| | | | | | | | | | | | | | | | | | | 2005-05-11 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-marshal.list: * shell/ev-page-action.c: (ev_page_action_widget_class_init), (activate_cb), (match_selected_cb), (activate_link_cb), (connect_proxy), (ev_page_action_class_init): * shell/ev-page-action.h: Use signals to notify action activation. Hopefully I did not break completion since I cant test... * shell/ev-window.c: (activate_link_cb), (activate_label_cb), (register_custom_actions): Connect to page selector actions and also grab focus on the view when activated.
* 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.
* Remove some leftover code from jrb first continous attempt. Use the newMarco Pesenti Gritti2005-05-101-47/+5
| | | | | | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-toolbar.xml: * shell/ev-window.c: (update_action_sensitivity), (ev_window_setup_document), (ev_window_set_page_mode), (ev_window_init): Remove some leftover code from jrb first continous attempt. Use the new actions, we still need good icons though...
* Update label when connecting proxy. Fix a warning with NULL page_cache.Marco Pesenti Gritti2005-05-101-1/+3
| | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-page-action.c: (update_pages_label), (connect_proxy): Update label when connecting proxy. Fix a warning with NULL page_cache.
* Add mnemonic for edit toolbar. ctrl+l focus the page entry.Marco Pesenti Gritti2005-05-103-9/+36
| | | | | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-page-action.c: (ev_page_action_grab_focus): * shell/ev-page-action.h: * shell/ev-window.c: (ev_window_cmd_focus_page_selector): Add mnemonic for edit toolbar. ctrl+l focus the page entry.
* Put the toolbar xml in evince own dot dirMarco Pesenti Gritti2005-05-102-6/+11
| | | | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * lib/Makefile.am: * shell/ev-window.c: (ev_window_cmd_edit_toolbar_cb), (ev_window_init): * shell/main.c: (main): Put the toolbar xml in evince own dot dir
* Make the toolbar not removableMarco Pesenti Gritti2005-05-101-0/+3
| | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (ev_window_init): Make the toolbar not removable
* This is evil... Make space/backspace global accelerators but enable themMarco Pesenti Gritti2005-05-107-84/+140
| | | | | | | | | | | | | | | | | | | | | | | 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... :/
* Keep a weak reference on proxy->page_cache so that we dont try toMarco Pesenti Gritti2005-05-101-2/+31
| | | | | | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-page-action.c: (ev_page_action_widget_set_page_cache), (ev_page_action_widget_finalize), (ev_page_action_widget_class_init), (update_page_cache): Keep a weak reference on proxy->page_cache so that we dont try to disconnect the signal if the object is already gone. Maybe there is a better way to cleanup reference handling in page action though...