Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Do not leak the fullscreen toolbarMarco Pesenti Gritti2005-07-111-6/+5
| | | | | | | | | 2005-07-11 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (update_chrome_visibility), (ev_window_create_fullscreen_popup), (ev_window_init): Do not leak the fullscreen toolbar
* These has a return value! Fix totally random focus issues we was seeing.Marco Pesenti Gritti2005-07-111-2/+6
| | | | | | | | | | 2005-07-11 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (view_actions_focus_in_cb), (view_actions_focus_out_cb): These has a return value! Fix totally random focus issues we was seeing.
* Use common toolbar and recent models for all windows. Patch by Nickolay V.Marco Pesenti Gritti2005-07-081-59/+12
| | | | | | | | | | | | | | | | | | 2005-07-08 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-application.c: (ev_application_shutdown), (ev_application_init), (ev_application_get_toolbars_model), (ev_application_get_recent_model), (ev_application_save_toolbars_model): * shell/ev-application.h: * shell/ev-window.c: (ev_window_add_recent), (ev_window_setup_recent), (ev_window_cmd_edit_toolbar_cb), (ev_window_cmd_edit_toolbar), (ev_window_dispose), (ev_window_init): Use common toolbar and recent models for all windows. Patch by Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* HIGification of toolbar editor dialogue.Christian Persch2005-07-071-8/+9
| | | | | | | | 2005-07-07 Christian Persch <chpe@cvs.gnome.org> * shell/ev-window.c: (ev_window_cmd_edit_toolbar): HIGification of toolbar editor dialogue.
* Add an _init functions that enabled metadata management at runtime.Marco Pesenti Gritti2005-07-071-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-07 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-metadata-manager.c: (ev_metadata_manager_init), (ev_metadata_manager_get), (ev_metadata_manager_set): * shell/ev-metadata-manager.h: Add an _init functions that enabled metadata management at runtime. * shell/ev-window.c: (page_changed_cb), (setup_document_from_metadata), (ev_window_setup_document), (setup_view_from_metadata), (ev_window_open_uri), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (save_sizing_mode), (ev_window_zoom_changed_cb), (ev_window_continuous_changed_cb), (ev_window_dual_mode_changed_cb), (window_state_event_cb), (window_configure_event_cb): Remove all ugly metadata define since we deal with it at runtime now. * shell/main.c: (load_files_remote), (main): Add support for dbus cvs head. Hopefully didnt break one of the other versions now! If we dont get a response from the dbus server just give up with it and not enable metadata.
* do not unnecessarily save zoomMarco Pesenti Gritti2005-07-071-2/+4
| | | | | | | | | | | | | | | 2005-07-07 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window: do not unnecessarily save zoom * configure.ac: * lib/ev-file-helpers.c: (ev_dot_dir): * shell/Makefile.am: * shell/dummy.cc: Some cleanups
* This should solve the circular dep without requiring dir reorg!Marco Pesenti Gritti2005-07-061-4/+9
| | | | | | | | | | | | | | | | | | 2005-07-07 Marco Pesenti Gritti <mpg@redhat.com> * Makefile.am: * backend/Makefile.am: * properties/Makefile.am: * shell/Makefile.am: * thumbnailer/Makefile.am: This should solve the circular dep without requiring dir reorg! * shell/ev-window.c: (setup_view_from_metadata): Never restore window size/position when the window is already visible.
* Remember window position and maximized stateMarco Pesenti Gritti2005-07-061-12/+50
| | | | | | | | | | 2005-07-06 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (setup_view_from_metadata), (window_state_event_cb), (window_configure_event_cb), (ev_window_init): Remember window position and maximized state
* Fix DBUS configure checks.Christian Persch2005-07-061-2/+18
| | | | | | | | | | | | | | | | | | | | | | 2005-07-06 Christian Persch <chpe@cvs.gnome.org> * configure.ac: Fix DBUS configure checks. * shell/ev-metadata-manager.c: (ev_metadata_manager_set_int), (ev_metadata_manager_set_double), (ev_metadata_manager_set_string), (ev_metadata_manager_set_boolean): Plug mem leaks. * shell/ev-window.c: (page_changed_cb), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (ev_window_zoom_changed_cb), (ev_window_continuous_changed_cb), (ev_window_dual_mode_changed_cb), (ev_window_new): Fix the build without DBUS.
* Add support for some more typesMarco Pesenti Gritti2005-07-061-9/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-06 Marco Pesenti Gritti <set EMAIL_ADDRESS environment variable> * shell/ev-metadata-manager.c: (parse_value), (save_values), (ev_metadata_manager_set_int), (ev_metadata_manager_set_double), (ev_metadata_manager_set_string), (ev_metadata_manager_set_boolean): * shell/ev-metadata-manager.h: Add support for some more types * shell/ev-view.c: (scroll_to_current_page), (ev_view_get_continuous), (ev_view_set_continuous), (ev_view_get_dual_page): * shell/ev-view.h: * shell/ev-window.c: (page_changed_cb), (setup_document_from_metadata), (ev_window_setup_document), (setup_view_from_metadata), (ev_window_open_uri), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (save_sizing_mode), (ev_window_sizing_mode_changed_cb), (ev_window_zoom_changed_cb), (ev_window_update_continuous_action), (ev_window_update_dual_page_action), (ev_window_continuous_changed_cb), (ev_window_dual_mode_changed_cb), (ev_window_init): Remember a bunch of view/document properties. Prolly some are still missing but it's getting interesting.
* Marco Pesenti Gritti <mpg@redhat.com>Carlos Garcia Campos2005-07-051-4/+3
| | | | | | | | | | | | | 2005-07-05 Carlos Garcia Campos <carlosgc@gnome.org> Marco Pesenti Gritti <mpg@redhat.com> * shell/Makefile.am: Add --prefix for dbus-binding-tool script * shell/ev-application.[ch], shell/ev-window.c: change dbus RPC functions to the format required by dbus * shell/main.c: use G_TYPE instead of DBUS_TYPE to fix compilation errors. Use the RPC parameters in the expected way
* Rework document types managing to avoid code duplication and actuallyMarco Pesenti Gritti2005-07-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-05 Marco Pesenti Gritti <mpg@redhat.com> * backend/Makefile.am: * backend/ev-document-factory.c: (mime_type_supported_by_gdk_pixbuf), (ev_document_type_get_from_mime), (ev_document_factory_get_document), (ev_document_factory_get_backend), (ev_document_factory_get_mime_types), (ev_document_factory_get_all_mime_types): * backend/ev-document-factory.h: * shell/Makefile.am: * shell/ev-document-types.c: (get_document_from_uri), (ev_document_types_get_document), (file_filter_add_mime_list_and_free), (ev_document_types_add_filters): * shell/ev-document-types.h: * shell/ev-job-xfer.c: (ev_job_xfer_run): * shell/ev-properties-dialog.c: (ev_properties_dialog_set_document): * shell/ev-window.c: (ev_window_cmd_file_open), (ev_window_cmd_save_as): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): Rework document types managing to avoid code duplication and actually abstract from backend implementations. Also provide a minimal factory api that can be used by thumbnailer/properties.
* disable File->Print if the document does not implement the ps exporterMatthew S. Wilson2005-07-041-0/+4
| | | | | | | | 2005-07-04 Matthew S. Wilson <msw@rpath.com> * shell/ev-window.c (update_action_sensitivity): disable File->Print if the document does not implement the ps exporter interface
* Split the properties pages in two different objects, depend only on theMarco Pesenti Gritti2005-07-041-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-04 Marco Pesenti Gritti <mpg@redhat.com> * Makefile.am: * configure.ac: * data/evince-properties.glade: * properties/.cvsignore: * properties/Makefile.am: * properties/ev-properties-view.c: (ev_properties_view_dispose), (ev_properties_view_class_init), (ev_properties_view_format_date), (make_valid_utf8), (set_property), (ev_properties_view_set_info), (ev_properties_view_init), (ev_properties_view_new): * properties/ev-properties-view.h: * shell/Makefile.am: * shell/ev-properties-dialog.c: (ev_properties_dialog_class_init), (ev_properties_dialog_init), (ev_properties_dialog_set_document), (ev_properties_dialog_new): * shell/ev-properties-dialog.h: * shell/ev-properties-fonts.c: (ev_properties_fonts_dispose), (ev_properties_fonts_class_init), (ev_properties_fonts_init), (update_progress_label), (job_fonts_finished_cb), (ev_properties_fonts_set_document), (ev_properties_fonts_new): * shell/ev-properties-fonts.h: * shell/ev-properties.c: * shell/ev-properties.h: * shell/ev-window.c: (ev_window_setup_document), (ev_window_cmd_file_properties): Split the properties pages in two different objects, depend only on the backend where possible, use widgets instead of gobject for the glade part, reimplement the dialog itself with gtk. I need this to implement nautilus properties page.
* Exit from fullscreen mode when switch to presentation. Fix for bug 309365Nickolay V. Shmyrev2005-07-031-9/+13
| | | | | | | | | | * shell/ev-window.c: (update_document_mode), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_cmd_view_fullscreen), (ev_window_stop_presentation), (ev_window_cmd_view_presentation), (ev_window_cmd_escape): Exit from fullscreen mode when switch to presentation. Fix for bug 309365
* Fix compilationAlex Duggan2005-06-301-1/+1
| | | | | | | | 2005-06-30 Alex Duggan <aldug@astrolinux.com> * shell/ev-window.c: (window_configure_event_cb): Fix compilation
* Metadata manager from gedit but modified to use GValue, so that we dontMarco Pesenti Gritti2005-06-301-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-30 Marco Pesenti Gritti <mpg@redhat.com> * shell/Makefile.am: * shell/ev-metadata-manager.c: (item_free), (ev_metadata_manager_init), (ev_metadata_manager_shutdown), (parse_value), (parseItem), (load_values), (ev_metadata_manager_get), (value_free), (ev_metadata_manager_set), (save_values), (save_item), (get_oldest), (resize_items), (ev_metadata_manager_save), (ev_metadata_manager_set_int): * shell/ev-metadata-manager.h: Metadata manager from gedit but modified to use GValue, so that we dont need to keep converting from strings. * configure.ac: ENABLE_METADATA conditional, on when dbus is on * shell/ev-application.c: (ev_application_open_uri): Show the window after load so that we can initialize window size before it's showed. * shell/ev-window.c: (ev_window_setup_from_metadata), (ev_window_open_uri), (window_configure_event_cb), (ev_window_init): Save and load metadata information about window size. Not yet keeping states in account. * shell/main.c: (main): Shutdown metadata manager.
* Add an optional dbus interface (--enable-dbus). Rework application code,Marco Pesenti Gritti2005-06-301-33/+73
| | | | | | | | | | | | | | | | | | | 2005-06-24 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-application-service.xml: * configure.ac: * shell/Makefile.am: * shell/ev-application.c: * shell/ev-application.h: * shell/ev-window.c: * shell/ev-window.h: * shell/main.c: Add an optional dbus interface (--enable-dbus). Rework application code, mainly to be easier to use "remotely". Do not open multiple windows with the same document, spatial evince!
* Make rotate menu entries unsensitive if there is not a document openCarlos Garcia Campos2005-06-241-0/+2
| | | | | | 2005-06-24 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: Make rotate menu entries unsensitive if there is not a document open
* Make properties unsensitive if document backend doesn't provide infoNickolay V. Shmyrev2005-06-231-1/+10
|
* Rename xmalloc to mdvi_malloc to avoid libtool conflict, update year inNickolay V. Shmyrev2005-06-231-1/+1
| | | | copyright.
* Fix fir bug 308265: Sidebar dissappears coming out of Presentation modeNickolay V. Shmyrev2005-06-231-5/+6
|
* Fix for bug 308402 - provide templates in Save dialogNickolay V. Shmyrev2005-06-231-13/+23
|
* Removed EggRecentViewGtkNickolay V. Shmyrev2005-06-191-14/+15
| | | | | | | | | | | | | | | | * cut-n-paste/recent-files/Makefile.am: * cut-n-paste/recent-files/egg-recent-view-gtk.c: * cut-n-paste/recent-files/egg-recent-view-gtk.h: Removed EggRecentViewGtk * cut-n-paste/recent-files/egg-recent-view-uimanager.c: * cut-n-paste/recent-files/egg-recent-view-uimanager.h: * shell/ev-window.c: (ev_window_cmd_recent_file_activate), (ev_window_setup_recent): Use ViewUIManager instead of ViewGtk. Less leaks, more compatibility with other projects
* Fix memory leakNickolay V. Shmyrev2005-06-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | * cut-n-paste/recent-files/egg-recent-view-gtk.c: (egg_recent_view_gtk_finalize): Fix memory leak * cut-n-paste/toolbar-editor/Makefile.am: Fix location of cursor icon. * pdf/ev-poppler.cc: * shell/ev-page-action.c: (build_new_tree_cb), (match_selected_cb), (display_completion_text), (match_completion): * shell/ev-sidebar-links.c: (ev_sidebar_links_dispose), (selection_changed_callback), (create_loading_model), (print_section_cb), (links_page_num_func), (update_page_callback_foreach): * shell/ev-window.c: (ev_window_dispose): Small memory fixes. Links model now store objects instead of pointers to improve memory management.
* Fix update of zoom control. Bug 308268Nickolay V. Shmyrev2005-06-191-1/+4
|
* Various small fixes, mostly memory leaks. Thanks to valgrind.Nickolay V. Shmyrev2005-06-191-0/+5
| | | | | | | | | | * 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.
* Fixed lot's of memory leaks, for example, memory leak on reload, describedNickolay V. Shmyrev2005-06-181-5/+8
| | | | | | | | | | | | | | | * shell/ev-page-action.c: (match_selected_cb), (display_completion_text), (match_completion), (update_model): * shell/ev-sidebar-links.c: (ev_sidebar_links_dispose), (expand_open_links): * shell/ev-sidebar.c: (ev_sidebar_destroy), (ev_sidebar_menu_item_activate_cb), (ev_sidebar_add_page), (ev_sidebar_set_document): * shell/ev-window.c: (ev_window_xfer_job_cb), (sidebar_widget_model_set), (sidebar_page_main_widget_update_cb): Fixed lot's of memory leaks, for example, memory leak on reload, described in bug 307793.
* Refresh thumbnails when changing orientation. Not fully working yetMarco Pesenti Gritti2005-06-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Shift + PageUp moves 10 Pages. Fix for 306125Nickolay V. Shmyrev2005-06-181-1/+34
| | | | | | | | * data/evince-ui.xml: * shell/ev-window.c: (ev_window_cmd_go_forward), (ev_window_cmd_go_backward): Shift + PageUp moves 10 Pages. Fix for 306125
* Prefer presentation mode when the document require fullscreen.Marco Pesenti Gritti2005-06-171-3/+4
| | | | | | | | | 2005-06-17 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window.c: (update_document_mode): Prefer presentation mode when the document require fullscreen.
* Add control-equal for zoomingMarco Pesenti Gritti2005-06-171-0/+3
| | | | | | | | | 2005-06-17 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-window.c: Add control-equal for zooming
* Add a get_orientation api. Improve set_orientation.Marco Pesenti Gritti2005-06-161-22/+10
| | | | | | | | | | | | | | | | | | | | | 2005-06-16 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.c: (ev_document_get_orientation): * backend/ev-document.h: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_get_orientation), (ps_document_set_orientation), (ps_document_document_iface_init): Add a get_orientation api. Improve set_orientation. * data/evince-ui.xml: * shell/ev-view.c: (ev_view_set_orientation), (ev_view_rotate_right), (ev_view_rotate_left): * shell/ev-view.h: * shell/ev-window.c: (ev_window_cmd_edit_rotate_left), (ev_window_cmd_edit_rotate_right): Better ui for changing document orientation
* Autoraise toolbar on GoToPage action and fix keyboard accelerators in sidebarNickolay V. Shmyrev2005-06-161-14/+40
| | | | thumbnailer page
* Make it an object, cleanup the code, api to show it as transient and toMarco Pesenti Gritti2005-06-151-8/+16
| | | | | | | | | | | | | | | | | | | | 2005-06-15 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-properties.c: (ev_properties_dispose), (ev_properties_class_init), (dialog_destroy_cb), (ev_properties_init), (job_fonts_finished_cb), (setup_fonts_view), (ev_properties_set_document), (ev_properties_new), (ev_properties_show): * shell/ev-properties.h: Make it an object, cleanup the code, api to show it as transient and to set the document. * shell/ev-window.c: (ev_window_setup_document), (ev_window_cmd_file_properties): Adapt to EvProperties changes, do not show multiple times, update it when document changes.
* Add orientation api. Currently poppler api is not optimal, we need to setMarco Pesenti Gritti2005-06-141-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-14 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.c: (ev_document_set_orientation): * backend/ev-document.h: * pdf/ev-poppler.cc: Add orientation api. Currently poppler api is not optimal, we need to set orientation every time we _get a page * data/evince-ui.xml: * shell/ev-window.c: (ev_window_cmd_edit_landscape), (ev_window_cmd_edit_portrait), (ev_window_cmd_edit_flip): Add orientation menu items * shell/ev-page-cache.c: (ev_page_cache_clear): * shell/ev-page-cache.h: Add api to clear the cache * shell/ev-view.c: (setup_caches), (clear_caches), (ev_view_set_document), (ev_view_zoom_out), (ev_view_set_orientation): * shell/ev-view.h: Implement orientation changing
* Make fonts model fill incrementally.Marco Pesenti Gritti2005-06-111-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-11 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-fonts.c: (ev_document_fonts_fill_model): * backend/ev-document-fonts.h: * pdf/ev-poppler.cc: Make fonts model fill incrementally. * shell/ev-job-queue.c: (handle_job), (search_for_jobs_unlocked), (no_jobs_available_unlocked), (ev_job_queue_init), (find_queue), (ev_job_queue_remove_job): * shell/ev-jobs.c: (ev_job_fonts_init), (ev_job_fonts_class_init), (ev_job_fonts_new), (ev_job_fonts_run): * shell/ev-jobs.h: New job for fonts scanning * shell/ev-properties.c: (job_fonts_finished_cb), (fill_fonts_treeview), (setup_fonts_view), (ev_properties_new): * shell/ev-properties.h: * shell/ev-window.c: (ev_window_cmd_file_properties): Incrementally feel the treeview using the new job. Show Loading... message until scanning is completed. Hopefully I didnt break the build without the poppler patch.