Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-sidebar-thumbnails.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not render thumbnails unless thumbnails page is active in the sidebar.Carlos Garcia Campos2006-08-151-2/+21
| | | | | | | 2006-08-14 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-sidebar-thumbnails.c: Do not render thumbnails unless thumbnails page is active in the sidebar.
* Update sidebar thumbnails after reloadNickolay V. Shmyrev2006-05-291-1/+2
|
* Bump requirements to gtk 2.8 and drop all idfefs used.Nickolay V. Shmyrev2006-05-131-11/+0
| | | | | | | | | | | | | | | | * configure.ac: * properties/ev-properties-main.c: (ev_properties_get_pages): * shell/ev-application.c: (ev_application_open_window), (ev_application_open_uri_at_dest): * shell/ev-sidebar-attachments.c: (ev_sidebar_attachments_init): * shell/ev-sidebar-thumbnails.c: (adjustment_changed_cb), (ev_sidebar_thumbnails_use_icon_view), (page_changed_cb): * shell/ev-utils.c: (save_print_config_to_file): * shell/ev-window.c: (ev_window_cmd_save_as), (ev_attachment_popup_cmd_save_attachment_as): * shell/main.c: (load_files_remote): Bump requirements to gtk 2.8 and drop all idfefs used.
* Fix crash on exit, described in the bug #336825.Nickolay V. Shmyrev2006-04-011-1/+1
| | | | | | | | 2006-04-02 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose): Fix crash on exit, described in the bug #336825.
* Redo rotation (again). prepare for 0.4.0Jonathan Blandford2005-08-251-14/+43
| | | | | | | | | | | | | | | | | | | | | | | | 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
* at Jul 30 19:09:34 2005 Jonathan Blandford <jrb@redhat.com>Jonathan Blandford2005-07-301-5/+7
| | | | | | | | | | | | * shell/ev-pixbuf-cache.c: (ev_pixbuf_cache_clear): * shell/ev-pixbuf-cache.h: * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_get_property), (add_range), (adjustment_changed_cb): * shell/ev-view.c: (ev_view_set_rotation): Fix rotation and the pixbuf cache. Make thumbnailing work again. Also, fix bug where we were thumbnailing the entire docment on startup, slowing us down hugely.
* Use rotation rather than orientation. It's easier and enough for ourMarco Pesenti Gritti2005-07-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-29 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-thumbnails.c: (ev_document_thumbnails_get_thumbnail): * backend/ev-document-thumbnails.h: * backend/ev-document.c: * backend/ev-document.h: * backend/ev-render-context.c: (ev_render_context_new), (ev_render_context_set_rotation): * backend/ev-render-context.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_document_iface_init): * shell/ev-jobs.c: (ev_job_thumbnail_new), (ev_job_thumbnail_run): * shell/ev-jobs.h: * shell/ev-page-cache.c: (build_height_to_page), (ev_page_cache_new), (ev_page_cache_get_size), (ev_page_cache_get_max_width), (ev_page_cache_get_max_height), (ev_page_cache_get_height_to_page): * shell/ev-page-cache.h: * shell/ev-pixbuf-cache.c: (check_job_size_and_unref), (add_job_if_needed), (ev_pixbuf_cache_add_jobs_if_needed), (ev_pixbuf_cache_set_page_range), (new_selection_pixbuf_needed), (ev_pixbuf_cache_get_selection_pixbuf): * shell/ev-pixbuf-cache.h: * shell/ev-print-job.c: (idle_print_handler): * shell/ev-sidebar-thumbnails.c: (add_range): * shell/ev-view.c: (view_update_range_and_current_page), (get_page_y_offset), (get_page_extents), (ev_view_size_request_continuous_dual_page), (ev_view_size_request_continuous), (ev_view_size_request_dual_page), (ev_view_size_request_single_page), (draw_one_page), (ev_view_set_rotation), (ev_view_rotate_right), (ev_view_rotate_left), (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), (compute_new_selection_text), (ev_view_select_all): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): * tiff/tiff-document.c: (tiff_document_render_pixbuf), (tiff_document_document_iface_init), (tiff_document_thumbnails_get_thumbnail): Use rotation rather than orientation. It's easier and enough for our needs.
* Really make use of the orientation bit of the render context. Use theMarco Pesenti Gritti2005-07-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-29 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-thumbnails.c: (ev_document_thumbnails_get_thumbnail): * backend/ev-document-thumbnails.h: * backend/ev-document.c: * backend/ev-document.h: * backend/ev-ps-exporter.c: (ev_ps_exporter_do_page): * backend/ev-ps-exporter.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_document_iface_init), (ps_document_ps_export_do_page): * shell/ev-jobs.c: (ev_job_thumbnail_new), (ev_job_thumbnail_run): * shell/ev-jobs.h: * shell/ev-page-cache.c: (ev_page_cache_get_size), (ev_page_cache_get): * shell/ev-page-cache.h: * shell/ev-pixbuf-cache.c: (check_job_size_and_unref), (add_job_if_needed), (ev_pixbuf_cache_add_jobs_if_needed), (ev_pixbuf_cache_set_page_range), (new_selection_pixbuf_needed): * shell/ev-pixbuf-cache.h: * shell/ev-print-job.c: (idle_print_handler): * shell/ev-sidebar-thumbnails.c: (add_range): * shell/ev-view.c: (view_update_range_and_current_page), (get_page_extents), (ev_view_size_request_dual_page), (ev_view_size_request_single_page), (draw_one_page), (clear_caches), (ev_view_set_orientation), (ev_view_rotate_right), (ev_view_rotate_left), (ev_view_zoom_for_size_presentation), (ev_view_zoom_for_size_dual_page), (ev_view_zoom_for_size_single_page), (compute_new_selection_text), (ev_view_select_all): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): * tiff/tiff-document.c: (tiff_document_get_page_size), (tiff_document_get_orientation), (rotate_pixbuf), (tiff_document_render_pixbuf), (tiff_document_document_iface_init), (tiff_document_thumbnails_get_thumbnail), (tiff_document_ps_export_do_page), (tiff_document_init): Really make use of the orientation bit of the render context. Use the render context in a few more places in the backend API. This regress orientation, but now it's done right. Will try to fix it up asap...
* Various small fixes, mostly memory leaks. Thanks to valgrind.Nickolay V. Shmyrev2005-06-191-3/+10
| | | | | | | | | | * lib/ev-file-helpers.c: (ev_file_helpers_shutdown): * shell/ev-sidebar-links.c: (create_loading_model): * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose): * shell/ev-view.c: (ev_view_set_document): * shell/ev-window.c: (ev_window_dispose): Various small fixes, mostly memory leaks. Thanks to valgrind.
* Refresh thumbnails when changing orientation. Not fully working yetMarco Pesenti Gritti2005-06-181-54/+48
| | | | | | | | | | | | | | | | | | | | | | | 2005-06-18 Marco Pesenti Gritti <mpg@redhat.com> * pdf/ev-poppler.cc: * shell/ev-sidebar-thumbnails.c: (clear_range), (add_range), (update_visible_range), (adjustment_changed_cb), (ev_sidebar_thumbnails_fill_model), (ev_sidebar_thumbnails_refresh), (ev_sidebar_tree_selection_changed), (ev_sidebar_icon_selection_changed), (ev_sidebar_thumbnails_use_icon_view), (ev_sidebar_thumbnails_set_document): * shell/ev-sidebar-thumbnails.h: * shell/ev-window.c: (ev_window_cmd_edit_rotate_left), (ev_window_cmd_edit_rotate_right), (ev_window_init): Refresh thumbnails when changing orientation. Not fully working yet becuase of a sidebar bug. Set page orientation to poppler page everywhere. This sucks really need to fix poppler.
* Autoraise toolbar on GoToPage action and fix keyboard accelerators in sidebarNickolay V. Shmyrev2005-06-161-13/+38
| | | | thumbnailer page
* Use a GtkIconView in certain situations. That situation is that you'reJonathan Blandford2005-06-081-36/+163
| | | | | | | | | | | | | | | | | | | | | | Wed Jun 8 01:04:22 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-sidebar-thumbnails.c: Use a GtkIconView in certain situations. That situation is that you're using GTK+-HEAD with the patch at #306726 is applied, and you have a document with < 1500 pages in it. It's not quite as uniformly nice as the TreeView, but should be better in the long run. I'm pretty sure I guarded against breaking compilation with HAVE_GTK_ICON_VIEW_GET_VISIBLE_RANGE gaurds, though it's possible I missed some. * shell/ev-window.c (ev_window_init): We don't have our tree/list widget yet, so I commented that code out enable_view_actions_for_widget() for now. Need to figure this out. * shell/ev-page-action.c (match_selected_cb): emit the right signals. Our cool C-l completion now works.
* PageCache and EvJobs are moved from backend to shell. Two new jobs toNickolay V. Shmyrev2005-06-071-2/+2
| | | | | load document in background and a statusbar to display this process. FileChooser now can select multiple uris.
* Slightly modified patch by Nickolay V. Shmyrev <nshmyrev@yandex.ru>. FixMarco Pesenti Gritti2005-05-311-2/+1
| | | | | | | | | | | | | | 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
* Free the EvDocumentInfo.Jonathan Blandford2005-05-171-39/+171
| | | | | | | | | | | | | | | | 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.
* This is evil... Make space/backspace global accelerators but enable themMarco Pesenti Gritti2005-05-101-0/+6
| | | | | | | | | | | | | | | | | | | | | | | 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... :/
* Use set_cursor instead of set_selection, so that the keyboard focus movesMarco Pesenti Gritti2005-05-091-7/+3
| | | | | | | | | 2005-05-09 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar-thumbnails.c: (page_changed_cb): Use set_cursor instead of set_selection, so that the keyboard focus moves too.
* actually remove the job.Jonathan Blandford2005-04-221-2/+2
| | | | | | | | | | 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.
* Small rework of sidebar pages handling. See bug #164811 for detailsNickolay V. Shmyrev2005-04-191-15/+50
|
* Remove unused files.Nickolay V. Shmyrev2005-04-151-1/+1
| | | | | | | | | | | | | | | | | | * shell/ev-page-view.c: * shell/ev-page-view.h: Remove unused files. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_document): * shell/ev-sidebar.c: (ev_sidebar_set_document), (ev_sidebar_supports_document): * shell/ev-sidebar.h: * shell/ev-window.c: (ev_window_setup_document): Doesn't show thumbnails if document has 1 page. Make sidebar menu entries sensitive only if if they have sense. Fix bug 164811.
* Fix for bugs 300233,173184,300094. Problems with page index started at 0Nickolay V. Shmyrev2005-04-121-1/+45
| | | | and scrolling up with Shift + Space
* Cr 31 13:27:50 2005 Jonathan Blandford <jrb@redhat.com>Jonathan Blandford2005-03-311-5/+8
| | | | | | | | | | | | | | | | | | | | | | | Cr 31 13:27:50 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-document.c: (ev_document_get_page_label): * backend/ev-document.h: * backend/ev-page-cache.c: (_ev_page_cache_new), (ev_page_cache_get_page_label): * backend/ev-page-cache.h: * pdf/ev-poppler.cc: * shell/ev-sidebar-links.c: (ev_sidebar_links_construct), (links_page_num_func): * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_document): * shell/ev-view.c: (status_message_from_link), (ev_view_motion_notify_event): * shell/ev-window.c: (document_supports_sidebar): Add in page label support. It's not perfect yet, but it's the first 'feature' in a while. Also, fix a bogus comment noticed by crispin. VS: Modified Files:
* Remove pixbuf backend for nowJonathan Blandford2005-03-311-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Mar 31 01:21:58 2005 Jonathan Blandford <jrb@redhat.com> * Makefile.am: Remove pixbuf backend for now * configure.ac: Require poppler-glib instead of just poppler. * backend/ev-document-thumbnails.h: Add a comment * backend/ev-document.h: * backend/ev-document.c: (ev_document_class_init), (ev_document_load), (ev_document_get_link), (ev_document_get_links): Remove 3 methods and add get_links. Also, made 0 based. * backend/ev-jobs.c: (ev_job_render_new), (ev_job_render_run): * backend/ev-jobs.h: now EvJobRender can grab the links for a document. * backend/ev-link.c: (ev_link_set_title), (ev_link_mapping_free_foreach), (ev_link_mapping_free), (ev_link_mapping_find): * backend/ev-link.h: Allow NULL titles. Also, introduce a mapping link. * backend/ev-page-cache.c: (ev_page_cache_init), (_ev_page_cache_new), (ev_page_cache_set_current_page), (ev_page_cache_get_size), (ev_page_cache_next_page), (ev_page_cache_prev_page): Fix to be 0 based. * pdf/Makefile.am: * pdf/ev-poppler.h: * pdf/ev-poppler.cc: New backend. * ps/ps-document.c: (ps_document_init), (ps_document_set_page), (ps_document_get_page), (ps_document_document_iface_init): * shell/ev-pixbuf-cache.h: * shell/ev-pixbuf-cache.c: (ev_pixbuf_cache_init), (dispose_cache_job_info), (job_finished_cb), (move_one_job), (ev_pixbuf_cache_update_range), (copy_job_to_job_info), (add_job_if_needed), (ev_pixbuf_cache_set_page_range), (ev_pixbuf_cache_get_pixbuf), (ev_pixbuf_cache_get_link_mapping): Fix up code to grab a page cache per each doc. Also, fix to be 0 based. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_tree_selection_changed), (page_changed_cb), (ev_sidebar_thumbnails_set_document): Fix to be 0 based. * shell/ev-view.c: (status_message_from_link), (find_page_at_location), (get_link_at_location), (ev_view_motion_notify_event), (ev_view_button_release_event), (ev_view_init): Use the new link code. Fix to be 0 based. * shell/ev-window.c: (update_action_sensitivity), (document_supports_sidebar): 0 based.
* merge evince-threads branchMarco Pesenti Gritti2005-03-231-162/+58
|
* Fix the mess we did with thumbnails and 1-basednessMarco Pesenti Gritti2005-03-121-5/+5
| | | | | | | | | | 2005-03-12 Marco Pesenti Gritti <marco@gnome.org> * pdf/pdf-document.cc: * shell/ev-sidebar-thumbnails.c: (adjustment_changed_cb), (do_one_iteration), (ev_sidebar_thumbnails_set_document): Fix the mess we did with thumbnails and 1-basedness
* Rework API a bit. Add a border flag and change sizing logic (now the sizeMarco Pesenti Gritti2005-03-071-3/+5
| | | | | | | | | | | | | | | | | | | | | 2005-03-07 Marco Pesenti Gritti <marco@gnome.org> * backend/ev-document-thumbnails.c: (ev_document_thumbnails_get_thumbnail): * backend/ev-document-thumbnails.h: Rework API a bit. Add a border flag and change sizing logic (now the size we specify applies to the bigger dimension). * pdf/pdf-document.cc: * pixbuf/pixbuf-document.c: (pixbuf_document_thumbnails_get_thumbnail): * shell/ev-sidebar-thumbnails.c: (do_one_iteration): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): Adapt to the new API and do not draw a border for nautilus thumbnailer.
* Clear the list store when setting documentMarco Pesenti Gritti2005-02-281-0/+2
| | | | | | | | | 2005-02-28 Marco Pesenti Gritti <marco@gnome.org> * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_document): Clear the list store when setting document
* Ensure that after we have created a thumbnail, the list store is updatedCrispin Flowerday2005-02-141-0/+1
| | | | | | | | 2005-02-14 Crispin Flowerday <gnome@flowerday.cx> * shell/ev-sidebar-thumbnails.c: Ensure that after we have created a thumbnail, the list store is updated to know that the thumbnail is set. Fixes bug #166792
* (ev_sidebar_thumbnails_select_page): do nothing unless we have aMartin Kretzschmar2005-02-041-0/+4
| | | | document. Prevents warning from scroll_to_cell.
* New file with some random thoughts.Jonathan Blandford2005-02-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Feb 2 21:13:11 2005 Jonathan Blandford <jrb@redhat.com> * NOTES: New file with some random thoughts. * TODO: Update. * backend/ev-document-misc.c: (ev_document_misc_get_page_border_size): New function to canonicalize shadow drawing sizes. Possibly goofy. * shell/ev-view.c: (ev_view_size_request), (set_document_page), (ev_view_best_fit), (ev_view_fit_width): * pdf/xpdf/pdf-document.cc: * pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size): * ps/ps-document.c: (ps_document_get_page_size): * backend/ev-document-misc.h: * backend/ev-document.c: (ev_document_get_page_size): * backend/ev-document.h: get_page_size now takes a page number parameter. Made all the backends/frontends honor it. * data/evince-ui.xml: Added a multiple-page mode. Uncomment to see. Doesn't work yet. * shell/Makefile.am: * shell/ev-page-view.[ch]: New multi-page view. Really rough. Doesn't do anything yet. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_document): [1..n_pages] instead of [0..n_pages-1] * shell/ev-window.c: (update_action_sensitivity), (ev_window_setup_document), (ev_window_set_page_mode), (ev_window_page_mode_cb), (ev_window_init): Clean up the view-swapping code a bit so we can have multiple views on a document. Add the multi-page view, though it can't be turned on yet.
* use G_DEFINE_TYPE-supplied ev_sidebar_thumbnails_parent_class variable,Martin Kretzschmar2005-01-281-5/+1
| | | | | | | | | | | | | | | | * shell/ev-sidebar-thumbnails.c (ev_sidebar_thumbnails_destroy) (ev_sidebar_thumbnails_class_init): use G_DEFINE_TYPE-supplied ev_sidebar_thumbnails_parent_class variable, don't define another parent_class variable. * shell/ev-page-action.c (connect_proxy, ev_page_action_finalize) (ev_page_action_class_init): ditto. * pixbuf/pixbuf-document.c (pixbuf_document_finalize) (pixbuf_document_class_init): ditto. * backend/ev-link.c (ev_window_dispose, ev_link_class_init): ditto.
* (ev_sidebar_thumbnails_select_page): make sure the selected thumbnailMartin Kretzschmar2005-01-261-0/+2
| | | | stays visible.
* Ensure thumbnails selection, toolbar page control and current page are inMarco Pesenti Gritti2005-01-201-1/+25
| | | | | | | | | | | | | | | | | | 2005-01-20 Marco Pesenti Gritti <marco@gnome.org> * shell/ev-sidebar-thumbnails.c: (ev_sidebar_tree_selection_changed), (ev_sidebar_thumbnails_select_page): * shell/ev-sidebar-thumbnails.h: * shell/ev-view.c: (ev_view_set_document), (ev_view_can_go_back), (ev_view_can_go_forward): * shell/ev-window.c: (ev_window_open_page), (ev_window_setup_document), (update_current_page), (view_page_changed_cb), (ev_window_init): * shell/ev-window.h: Ensure thumbnails selection, toolbar page control and current page are in sync.
* Set the spin button limits correctly.Anders Carlsson2005-01-131-3/+31
| | | | | | | | | | | | 2005-01-13 Anders Carlsson <andersca@gnome.org> * shell/ev-page-action.c: (update_spin), (total_pages_changed_cb), (create_tool_item): Set the spin button limits correctly. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_tree_selection_changed), (ev_sidebar_thumbnails_init): Support changing pages by clicking on the thumbnails.
* forgot to unref the loading_icon.Jonathan Blandford2005-01-071-0/+1
| | | | | | | | Fri Jan 7 01:28:58 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-sidebar-thumbnails.c (ev_sidebar_thumbnails_set_document): forgot to unref the loading_icon.
* fill in the thumbnails starting at the visible page, not just linearly.Jonathan Blandford2005-01-071-30/+89
| | | | | | | Fri Jan 7 01:22:48 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-sidebar-thumbnails.c: fill in the thumbnails starting at the visible page, not just linearly. This makes it look fast.
* fill in the thumbnail with white. New interface to get the size of a page.Jonathan Blandford2005-01-061-18/+18
| | | | | | | | | | Thu Jan 6 18:48:11 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-document-misc.c (ev_document_misc_get_thumbnail_frame): fill in the thumbnail with white. * backend/ev-document-thumbnails.h: New interface to get the size of a page.
* bypass GDKSplashOutputDev and just use a normal SplashOutputDev. SpeedsJonathan Blandford2005-01-051-6/+25
| | | | | | | | | | Wed Jan 5 15:38:28 2005 Jonathan Blandford <jrb@redhat.com> * pdf/xpdf/pdf-document.cc (bitmap_to_pixbuf): bypass GDKSplashOutputDev and just use a normal SplashOutputDev. Speeds things up a bit. * shell/ev-sidebar-thumbnail.c: start of some profiling code.
* New misc file to do simple drop shadows.Jonathan Blandford2005-01-051-16/+14
| | | | | | | | | | Wed Jan 5 02:33:06 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-document-misc.[ch]: New misc file to do simple drop shadows. * pdf/xpdf/pdf-document.cc: use the drop shadows in both types of thumbnails..
* Do real thumbnailing of PDF files. It's slow, but I'll speed it up next!Jonathan Blandford2005-01-051-2/+2
| | | | | | | Tue Jan 4 21:25:05 2005 Jonathan Blandford <jrb@redhat.com> * pdf/xpdf/pdf-document.cc: Do real thumbnailing of PDF files. It's slow, but I'll speed it up next!
* initial stab at implementing thumbnail support for pdfs. It only doesJonathan Blandford2005-01-041-1/+1
| | | | | | | | | Tue Jan 4 03:22:56 2005 Jonathan Blandford <jrb@redhat.com> * pdf/xpdf/pdf-document.cc (pdf_document_thumbnails_get_thumbnail): initial stab at implementing thumbnail support for pdfs. It only does documents with precached pdfs now.
* move the thumbnail code into a time-based idle as well. Also, turn off theJonathan Blandford2005-01-031-6/+42
| | | | | | | | Mon Jan 3 17:22:25 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-sidebar-thumbnails.c (do_one_iteration): move the thumbnail code into a time-based idle as well. Also, turn off the shadow temporarily as it's really slow.
* Add thumbnail support.Anders Carlsson2004-12-221-11/+150
| | | | | | | | | | | | | | | | | | | | | | | | 2004-12-22 Anders Carlsson <andersca@gnome.org> * backend/Makefile.am: * backend/ev-document-thumbnails.c: (ev_document_thumbnails_get_type), (ev_document_thumbnails_get_thumbnail): * backend/ev-document-thumbnails.h: * pixbuf/pixbuf-document.c: (G_DEFINE_TYPE_WITH_CODE), (pixbuf_document_thumbnails_get_thumbnail), (pixbuf_document_document_thumbnails_iface_init): * shell/Makefile.am: * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_destroy), (ev_sidebar_thumbnails_class_init), (ev_sidebar_thumbnails_init), (populate_thumbnails), (ev_sidebar_thumbnails_set_document): * shell/ev-sidebar-thumbnails.h: * shell/ev-sidebar.c: (ev_sidebar_init), (ev_sidebar_add_page), (ev_sidebar_set_document): * shell/ev-utils.c: (gaussian), (create_blur_filter), (create_shadow), (ev_pixbuf_add_shadow): * shell/ev-utils.h: Add thumbnail support.
* Construct an actual sidebar.Jonathan Blandford2004-12-221-0/+73
Tue Dec 21 23:20:35 2004 Jonathan Blandford <jrb@redhat.com> * shell/ev-sidebar.c: Construct an actual sidebar. * shell/ev-sidebar-bookmarks.[ch]: * shell/ev-sidebar-thumbnails.[ch]: Stub out sidebars.