Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
Commit message (Collapse)AuthorAgeFilesLines
* 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
* *** empty log message ***Marco Pesenti Gritti2005-07-044-0/+388
|
* Split the properties pages in two different objects, depend only on theMarco Pesenti Gritti2005-07-044-446/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Scroll to current page when exit from presentation.Nickolay V. Shmyrev2005-07-031-6/+9
|
* 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
* return NULL if the document does not implement the selection interface.Matthew S. Wilson2005-07-021-0/+4
| | | | | | | | 2005-07-02 Matthew S. Wilson <msw@rpath.com> * shell/ev-pixbuf-cache.c (ev_pixbuf_cache_get_selection_pixbuf): return NULL if the document does not implement the selection interface.
* Add I-Beam support to EvView. Now we can see where we can select! Sweet!Jonathan Blandford2005-07-015-7/+72
| | | | | | | | | | | | | | | | | | Fri Jul 1 00:10:15 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-selection.c: (ev_selection_get_selection_region), (ev_selection_get_selection_map): * backend/ev-selection.h: * pdf/ev-poppler.cc: * shell/ev-jobs.c: (ev_job_render_new), (ev_job_render_run): * shell/ev-jobs.h: * shell/ev-pixbuf-cache.c: (dispose_cache_job_info), (job_finished_cb), (copy_job_to_job_info), (add_job_if_needed), (ev_pixbuf_cache_get_text_mapping): * shell/ev-pixbuf-cache.h: * shell/ev-view.c: (location_in_text), (ev_view_motion_notify_event), (ev_view_set_cursor): Add I-Beam support to EvView. Now we can see where we can select! Sweet!
* Fix event->y + view->scroll_x typo.Kristian Høgsberg2005-06-301-1/+1
| | | | | | | 2005-06-30 Kristian Høgsberg <krh@redhat.com> * shell/ev-view.c (ev_view_button_press_event): Fix event->y + view->scroll_x typo.
* Adjust to poppler API changes; use a sub-GdkPixbuf instead of passingKristian Høgsberg2005-06-301-74/+101
| | | | | | | | | | | | | | | 2005-06-30 Kristian Høgsberg <krh@redhat.com> * pdf/ev-poppler.cc: Adjust to poppler API changes; use a sub-GdkPixbuf instead of passing dest_x and dest_y. * shell/ev-view.c: (view_point_to_doc_point), (view_rect_to_doc_rect), (ev_view_button_press_event), (ev_view_motion_notify_event), (compute_new_selection_rect), (gdk_rectangle_point_in), (compute_new_selection_text), (compute_selections): Update selection code to keep the selection around as two points and not as a normalized rectangle, and fix page level selection in two-column mode.
* 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-307-2/+652
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-307-168/+332
| | | | | | | | | | | | | | | | | | | 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!
* unref the pixbuf iff it exists.Jonathan Blandford2005-06-301-1/+2
| | | | | | | Thu Jun 30 01:50:14 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-pixbuf-cache.c (clear_selection_if_needed): unref the pixbuf iff it exists.
* Massive changes. We now support text selection of pdfs, and not justJonathan Blandford2005-06-306-156/+637
| | | | | | | | | | | | Thu Jun 30 01:43:00 2005 Jonathan Blandford <jrb@redhat.com> * shell/*: * backend/ev-render-context.[ch]: * backend/ev-selection.[ch]: Massive changes. We now support text selection of pdfs, and not just rectangular selection. This is pretty broken still, but I want to get something into CVS.
* Fix for Bug 309080: crash on window close.Nickolay V. Shmyrev2005-06-281-2/+3
| | | | | | | | | | | * pdf/ev-poppler.cc: Fix for Bug 309080: crash on window close. * shell/ev-page-action.c: (page_changed_cb): Fix for Bug 309168: Fix build with gcc 2.95. Thanks to jensgr@gmx.net (Jens Granseuer).
* 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 for 170874 - arrow keys switch pages in presentation modeNickolay V. Shmyrev2005-06-231-12/+27
|
* 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-234-83/+191
|
* Some leaks fixedNickolay V. Shmyrev2005-06-192-2/+4
| | | | | | | | * pdf/ev-poppler.cc: * shell/ev-sidebar-links.c: (job_finished_callback): * shell/ev-view.c: (update_find_status_message): Some leaks fixed
* 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-193-2/+38
| | | | | | | | | | | | | | | | | | | | | | | * 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
|
* escape the text correctly. Handles non-UTF-8 properties and escapedJonathan Blandford2005-06-191-1/+58
| | | | | | | | | | | Sat Jun 18 22:46:42 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-properties.c (set_property): escape the text correctly. Handles non-UTF-8 properties and escaped properties. Also, sets the text to "<i>None</i>" if the property isn't set. * data/evince-properties.glade: Change the label to be ellipsized, and give it a minimum size.
* Various small fixes, mostly memory leaks. Thanks to valgrind.Nickolay V. Shmyrev2005-06-194-6/+18
| | | | | | | | | | * 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.
* Include locale.h to fix buildNickolay V. Shmyrev2005-06-181-2/+0
| | | | | | | | | | | | * ps/ps-document.c: Include locale.h to fix build * shell/ev-sidebar.c: Remove unnecessary includes Thanks to jaap@haitsma.org (Jaap A. Haitsma)
* Fixed lot's of memory leaks, for example, memory leak on reload, describedNickolay V. Shmyrev2005-06-184-14/+36
| | | | | | | | | | | | | | | * 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-183-54/+53
| | | | | | | | | | | | | | | | | | | | | | | 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
* s/PDF Version/FormatMarco Pesenti Gritti2005-06-171-6/+1
| | | | | | | | | 2005-06-17 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-properties.glade: * shell/ev-properties.c: (ev_properties_set_document): s/PDF Version/Format
* Remove unnecessary translationsMarco Pesenti Gritti2005-06-171-2/+2
| | | | | | | | 2005-06-17 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-properties.c: (ev_properties_set_document): Remove unnecessary translations
* 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-163-25/+49
| | | | | | | | | | | | | | | | | | | | | 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-168-39/+105
| | | | thumbnailer page
* Hide the progress label when finished; bug #307697.Christian Persch2005-06-151-1/+2
| | | | | | | | 2005-06-15 Christian Persch <chpe@cvs.gnome.org> * shell/ev-properties.c: (update_progress_label): Hide the progress label when finished; bug #307697.
* Enable is_open for links, you will need poppler cvsMarco Pesenti Gritti2005-06-151-0/+2
| | | | | | | | | | | | 2005-06-15 Marco Pesenti Gritti <mpg@redhat.com> * pdf/ev-poppler.cc: Enable is_open for links, you will need poppler cvs * shell/ev-properties.c: (job_fonts_finished_cb): Get a lock on the document when filling the tree view
* Expand links when specified by the document. Depend on a poppler apiMarco Pesenti Gritti2005-06-151-15/+32
| | | | | | | | | | | | 2005-06-15 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-links.h: * pdf/ev-poppler.cc: * shell/ev-sidebar-links.c: (create_loading_model), (expand_open_links), (job_finished_callback): Expand links when specified by the document. Depend on a poppler api (defined out for now)
* Make it an object, cleanup the code, api to show it as transient and toMarco Pesenti Gritti2005-06-153-58/+157
| | | | | | | | | | | | | | | | | | | | 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.
* Implement orientation here tooMarco Pesenti Gritti2005-06-141-1/+5
| | | | | | | | | | | | | | | | | 2005-06-14 Marco Pesenti Gritti <mpg@redhat.com> * ps/gstypes.h: * ps/ps-document.c: (ps_document_init), (get_page_orientation), (ps_document_set_orientation), (ps_document_document_iface_init): * ps/ps-document.h: Implement orientation here too * shell/ev-properties.c: (ev_properties_new): * data/evince-properties.glade: Hide the fonts page for backends that doesnt support it.
* Add orientation api. Currently poppler api is not optimal, we need to setMarco Pesenti Gritti2005-06-145-14/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Separate scan and fill so that we can incrementally fill from the mainMarco Pesenti Gritti2005-06-133-41/+47
| | | | | | | | | | | | | | | | | | | | | 2005-06-13 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-fonts.c: (ev_document_fonts_get_progress), (ev_document_fonts_scan), (ev_document_fonts_fill_model): * backend/ev-document-fonts.h: Separate scan and fill so that we can incrementally fill from the main thread. Add a progress api. * data/evince-properties.glade: * pdf/ev-poppler.cc: * shell/ev-jobs.c: (ev_job_fonts_new), (ev_job_fonts_run): * shell/ev-jobs.h: * shell/ev-properties.c: (update_progress_label), (job_fonts_finished_cb), (setup_fonts_view): Incrementally feel the list and show the progress percentage in a label like acrobat does.
* Make fonts model fill incrementally.Marco Pesenti Gritti2005-06-116-17/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Transfer remote documents to tmp directory to display them laterNickolay V. Shmyrev2005-06-106-84/+151
|
* s/GTime*/GTime. Not sure why we was using a pointer at all there!Marco Pesenti Gritti2005-06-101-2/+2
| | | | | | | | | | 2005-06-10 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-info.h: * shell/ev-properties.c: (ev_properties_new): s/GTime*/GTime. Not sure why we was using a pointer at all there!
* Use a GtkIconView in certain situations. That situation is that you'reJonathan Blandford2005-06-083-38/+165
| | | | | | | | | | | | | | | | | | | | | | 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-0722-156/+2226
| | | | | load document in background and a statusbar to display this process. FileChooser now can select multiple uris.
* Use document info from page cache instead of document itself. fix for crashNickolay V. Shmyrev2005-06-073-5/+4
| | | | 306545