Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-metadata-manager.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't copy the string twice. Bug #569231.Christian Persch2009-01-261-1/+1
| | | | | | | * shell/ev-metadata-manager.c: (ev_metadata_manager_set_string): Don't copy the string twice. Bug #569231. svn path=/trunk/; revision=3384
* Move ev_dot_dir() from libdocument to shell, since it shouldn't be publicChristian Persch2009-01-261-2/+3
| | | | | | | | | | | | | | | | | | | * libdocument/ev-file-helpers.c: (ev_dir_ensure_exists), (ev_tmp_dir), (ev_file_helpers_init), (ev_file_helpers_shutdown): * libdocument/ev-file-helpers.h: * shell/ev-application.c: (ev_application_shutdown), (ev_application_init), (ev_application_screensaver_disable), (ev_application_save_print_settings), (ev_application_set_page_setup): * shell/ev-application.h: * shell/ev-metadata-manager.c: (load_values), (ev_metadata_manager_save): Move ev_dot_dir() from libdocument to shell, since it shouldn't be public API. Bug #569120. * libdocument/ev-file-helpers.c: (ev_tmp_filename): Use g_get_prgname() instead of hardcoding "evince" for the tmpdir name. svn path=/trunk/; revision=3383
* RemovedCarlos Garcia Campos2008-01-261-9/+1
| | | | | | | | | | | | | | | 2008-01-26 Carlos Garcia Campos <carlosgc@gnome.org> * cut-n-paste/totem-screensaver/totem-scrsaver.c: (screensaver_disable_x11): * shell/Makefile.am: * shell/xdg-user-dir-lookup.c: Removed * shell/ev-metadata-manager.c: (ev_metadata_arm_timeout): * shell/ev-view.c: (ev_view_presentation_transition_start): * shell/ev-window.c: (ev_window_cmd_file_open), (ev_window_cmd_save_as), (presentation_set_timeout): Remove #ifdefs that are no longer needed. svn path=/trunk/; revision=2861
* Use GSlice to allocate small amounts of memory. Bug #475972.Christian Persch2007-12-081-17/+13
| | | | | | | | | | | | | 2007-12-08 Christian Persch <chpe@gnome.org> * shell/ev-metadata-manager.c: (item_free), (ev_metadata_manager_init), (ev_metadata_manager_shutdown), (value_free), (parse_value), (parseItem), (ev_metadata_manager_set_last), (ev_metadata_manager_set), (save_values): Use GSlice to allocate small amounts of memory. Bug #475972. svn path=/trunk/; revision=2765
* Use g_timeout_add_seconds instead of g_timeout_add when available.Carlos Garcia Campos2007-07-291-0/+9
| | | | | | | | | | | | | 2007-07-29 Carlos Garcia Campos <carlosgc@gnome.org> * cut-n-paste/totem-screensaver/totem-scrsaver.c: (screensaver_disable_x11): * shell/ev-metadata-manager.c: (ev_metadata_arm_timeout): * shell/ev-window.c: (presentation_set_timeout): * shell/ev-view.c: (ev_view_presentation_transition_start): Use g_timeout_add_seconds instead of g_timeout_add when available. svn path=/trunk/; revision=2594
* Remove extraneous function (Closes: #444386)Bastien Nocera2007-06-051-11/+0
| | | | | | | | | | 2007-06-05 Bastien Nocera <hadess@hadess.net> * shell/ev-metadata-manager.c: Remove extraneous function (Closes: #444386) svn path=/trunk/; revision=2487
* Simplify the timeout, no need for modified anymoreBastien Nocera2007-06-051-15/+4
| | | | | | | | | | | | 2007-06-05 Bastien Nocera <hadess@hadess.net> * shell/ev-metadata-manager.c: (ev_metadata_manager_init), (ev_metadata_manager_shutdown), (ev_metadata_manager_set_last), (ev_metadata_manager_set), (ev_metadata_manager_save): Simplify the timeout, no need for modified anymore svn path=/trunk/; revision=2486
* Adapted patch from Arjan van de Ven (arjan@linux.intel.com) to avoid theBastien Nocera2007-06-051-10/+37
| | | | | | | | | | | | | | 2007-06-05 Bastien Nocera <hadess@hadess.net> * shell/ev-metadata-manager.c: (ev_metadata_arm_timeout), (ev_metadata_manager_init), (ev_metadata_manager_shutdown), (ev_metadata_manager_set_last), (ev_metadata_manager_set), (ev_metadata_manager_save): Adapted patch from Arjan van de Ven (arjan@linux.intel.com) to avoid the timeout running all the time, saves on power (Closes: #443851) svn path=/trunk/; revision=2484
* Developers documentation updated.Iñigo Martínez2007-04-201-1/+17
| | | | | | | | | | | | | | | | 2007-04-20 Iñigo Martínez <inigomartinez@gmail.com> * shell/ev-application.c: * shell/ev-job-queue.c: * shell/ev-metadata-manager.c: * shell/ev-stock-icons.c: * shell/ev-window.c: * shell/main.c: Developers documentation updated. svn path=/trunk/; revision=2410
* Set size according to the document size/page size ratio. That shouldNickolay V. Shmyrev2006-10-021-2/+6
| | | | | | | | | | | | | 2006-10-03 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-metadata-manager.c: (save_values): * shell/ev-window.c: (setup_size_from_metadata), (setup_view_from_metadata), (ev_window_setup_document), (ev_window_xfer_job_cb), (window_configure_event_cb): Set size according to the document size/page size ratio. That should correct rather wierd behaviour of the previous commit.
* Use consistent quoting style. Fix for the bug #320285.Nickolay V. Shmyrev2006-05-271-2/+2
| | | | | | | | | | | | | | | | | * backend/ev-attachment.c: (ev_attachment_save), (ev_attachment_launch_app), (ev_attachment_open): * backend/ev-document-factory.c: (get_document_from_uri): * cut-n-paste/recent-files/egg-recent-view-uimanager.c: (egg_recent_view_uimanager_set_list): * ps/ps-document.c: (check_filecompressed), (document_load), (ps_document_load): * shell/ev-metadata-manager.c: (load_values): * shell/ev-password.c: (ev_password_dialog_set_property): * shell/ev-view.c: (tip_from_link): * shell/ev-window.c: (file_save_dialog_response_cb), (ev_window_print_dialog_response_cb): Use consistent quoting style. Fix for the bug #320285.
* Fix memory leaks. Fixes bug #333945Carlos Garcia Campos2006-03-141-12/+13
| | | | | | 2006-03-14 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-metadata-manager.c (parseItem): Fix memory leaks. Fixes bug #333945
* Commit workaround Mozilla problem. Fix for the bug #325919Nickolay V. Shmyrev2006-01-061-7/+5
| | | | | | | | | | | * ps/ps.c: (psscan): Commit workaround Mozilla problem. Fix for the bug #325919 * shell/ev-metadata-manager.c: (parse_value), (parseItem), (save_item): Fix for year 2038 problem.
* Setting saving behaviour fixes.Nickolay V. Shmyrev2006-01-041-0/+19
| | | | | | | | | | | | | | | | | | | | | | | * shell/ev-metadata-manager.c: * shell/ev-utils.c: (using_pdf_printer), (using_postscript_printer), (load_print_config_from_file), (save_print_config_to_file): * shell/ev-utils.h: * shell/ev-window.c: (update_sizing_buttons), (page_changed_cb), (update_sidebar_visibility), (setup_sidebar_from_metadata), (setup_view_from_metadata), (ev_window_setup_document), (ev_window_load_job_cb), (ev_window_sidebar_position_change_cb), (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_rotation_changed_cb), (ev_window_dual_mode_changed_cb), (ev_window_sidebar_current_page_changed_cb), (ev_window_sidebar_visibility_changed_cb), (ev_window_dispose), (window_state_event_cb), (window_configure_event_cb), (ev_window_init): Setting saving behaviour fixes.
* Correct zoom setup and metadata save broken in some locales.Nickolay V. Shmyrev2005-12-251-1/+1
| | | | | | | | * shell/ev-metadata-manager.c: (parse_value): * shell/ev-view.c: (goto_xyz_link): Correct zoom setup and metadata save broken in some locales.
* Save last document settings and reuse them for new documents.Nickolay V. Shmyrev2005-11-141-18/+109
| | | | | | | | | | | | | | | | | | * data/evince.schemas.in: * shell/ev-metadata-manager.c: (value_free), (ev_metadata_manager_get_last), (ev_metadata_manager_set_last), (ev_metadata_manager_get), (ev_metadata_manager_set): * shell/ev-metadata-manager.h: * shell/ev-window.c: (update_chrome_flag), (ev_window_cmd_focus_page_selector), (update_sidebar_visibility), (setup_document_from_metadata), (setup_chrome_from_metadata), (setup_sidebar_from_metadata), (setup_view_from_metadata), (ev_window_cmd_edit_find), (ev_window_cmd_escape), (ev_window_view_toolbar_cb), (ev_window_sidebar_visibility_changed_cb), (find_bar_close_cb), (view_actions_focus_in_cb), (ev_window_init), (ev_window_new): Save last document settings and reuse them for new documents.
* * shell/ev-metadata-manager.c: (ev_metadata_manager_init): *Jonathan Blandford2005-08-151-4/+4
| | | | | | | | | | | | 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.
* Add an _init functions that enabled metadata management at runtime.Marco Pesenti Gritti2005-07-071-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Return a boolean from timeout func. Fix ported from gedit.Christian Persch2005-07-061-4/+6
| | | | | | | | 2005-07-06 Christian Persch <chpe@cvs.gnome.org> * shell/ev-metadata-manager.c: (ev_metadata_manager_save): Return a boolean from timeout func. Fix ported from gedit.
* (ev_metadata_manager_set_int) (ev_metadata_manager_set_double,Martin Kretzschmar2005-07-061-4/+4
| | | | | ev_metadata_manager_set_string) (ev_metadata_manager_set_boolean): fix value/val thinko.
* Fix DBUS configure checks.Christian Persch2005-07-061-0/+8
| | | | | | | | | | | | | | | | | | | | | | 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-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Metadata manager from gedit but modified to use GValue, so that we dontMarco Pesenti Gritti2005-06-301-0/+551
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.