Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-application.c
Commit message (Collapse)AuthorAgeFilesLines
* Do no use gdk_x11_* when not available. Based on patch by Hib Eris, seeCarlos Garcia Campos2009-01-161-0/+10
| | | | | | | | | | | | 2009-01-16 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.c: (ev_application_open_window), (ev_application_open_uri_at_dest): Do no use gdk_x11_* when not available. Based on patch by Hib Eris, see bug #339172. svn path=/trunk/; revision=3340
* Remember page setup options too. Paper size is globally remembered whileCarlos Garcia Campos2008-12-291-33/+130
| | | | | | | | | | | | | | | | | | | | | | 2008-12-29 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.[ch]: (ev_application_shutdown), (ev_application_get_print_settings_file), (ev_application_save_print_settings), (ev_application_get_print_settings), (ev_application_set_print_settings), (ev_application_get_page_setup), (ev_application_set_page_setup): * shell/ev-window.c: (ev_window_save_print_page_setup), (ev_window_load_print_page_setup_from_metadata), (ev_window_print_page_setup_done_cb), (ev_window_cmd_file_print_setup), (ev_window_do_preview_print), (ev_window_cmd_preview_print): Remember page setup options too. Paper size is globally remembered while page margins are stored per document in metadata file. Fixes bugs #525185 and #349102. svn path=/trunk/; revision=3313
* Move the egg_set_desktop_file() call to main and removeCarlos Garcia Campos2008-11-021-3/+0
| | | | | | | | | | | | | 2008-11-02 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.c: (ev_application_init_session): * shell/main.c: (main): Move the egg_set_desktop_file() call to main and remove gtk_window_set_default_icon_name() since it's already called by egg_set_desktop_file() svn path=/trunk/; revision=3250
* Removed shell/ev-view-private.hCarlos Garcia Campos2008-10-311-11/+0
| | | | | | | | | | | | | | | | | | | | | 2008-10-31 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: * properties/ev-properties-view.c: * shell/Makefile.am: * shell/ev-tooltip.[ch]: Removed * shell/ev-view-private.h * shell/eggfindbar.c: * shell/ev-application.c: * shell/ev-open-recent-action.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-view.c: * shell/ev-window.c: Bump GTK+ requirement to 2.12. svn path=/trunk/; revision=3242
* Clean up the media player keys stuff.Carlos Garcia Campos2008-09-041-5/+10
| | | | | | | | | | | | | | | | | | 2008-09-04 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.c: (ev_application_get_media_keys): * shell/ev-media-player-keys.[ch]: (ev_media_player_keys_class_init), (on_media_player_key_pressed), (ev_media_player_keys_grab_keys), (ev_media_player_keys_release_keys), (ev_media_player_keys_init), (ev_media_player_keys_focused), (ev_media_player_keys_finalize): * shell/ev-window.[ch]: (ev_window_dispose), (view_actions_focus_in_cb), (ev_window_media_player_key_pressed), (ev_window_init): Clean up the media player keys stuff. svn path=/trunk/; revision=3148
* Make sure evince starts up in the right workspace when resuming a previousCarlos Garcia Campos2008-08-311-5/+7
| | | | | | | | | | | | 2008-08-31 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.c: (ev_application_open_window), (ev_application_open_uri_at_dest): Make sure evince starts up in the right workspace when resuming a previous session. svn path=/trunk/; revision=3132
* Fix window manager warnings shown in ~/.xsession-errorsCarlos Garcia Campos2008-08-311-6/+14
| | | | | | | | | | | | 2008-08-31 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.[ch]: (ev_application_open_window), (ev_application_add_icon_path_for_screen), (ev_application_open_uri_at_dest): Fix window manager warnings shown in ~/.xsession-errors svn path=/trunk/; revision=3131
* EggSMClient copied from libeggCarlos Garcia Campos2008-08-311-40/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-31 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * cut-n-paste/Makefile.am: * cut-n-paste/smclient/Makefile.am: * cut-n-paste/smclient/eggdesktopfile.[ch]: * cut-n-paste/smclient/eggsmclient-private.h: * cut-n-paste/smclient/eggsmclient-xsmp.c: * cut-n-paste/smclient/eggsmclient.[ch]: EggSMClient copied from libegg * libdocument/ev-file-helpers.c: (ev_dot_dir): * shell/Makefile.am: * shell/ev-application.[ch]: (ev_application_load_session), (smclient_save_state_cb), (smclient_quit_cb), (ev_application_init_session), (ev_application_shutdown), (ev_application_init): * shell/main.c: (main): Use EggSMClient instead of gnome-client and remove libgnome and libgnomeui dependencies. svn path=/trunk/; revision=3130
* More #include cleanups. Again: reordering, single gtk.h includes and otherWouter Bolsterlee2008-08-031-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-03 Wouter Bolsterlee <wbolster@svn.gnome.org> * backend/impress/impress-document.c: * backend/impress/render.h: * libdocument/ev-document-factory.c: * libdocument/ev-document-factory.h: * libdocument/ev-document-links.h: * libdocument/ev-document-misc.c: * libdocument/ev-document-misc.h: * properties/ev-properties-main.c: * properties/ev-properties-view.c: * properties/ev-properties-view.h: * shell/eggfindbar.c: * shell/eggfindbar.h: * shell/ev-application.c: * shell/ev-application.h: * shell/ev-jobs.h: * shell/ev-message-area.h: * shell/ev-navigation-action.c: * shell/ev-navigation-action.h: * shell/ev-open-recent-action.c: * shell/ev-open-recent-action.h: * shell/ev-page-action-widget.c: * shell/ev-page-action.c: * shell/ev-page-action.h: * shell/ev-page-cache.h: * shell/ev-password-view.h: * shell/ev-password.h: * shell/ev-pixbuf-cache.h: * shell/ev-properties-fonts.c: * shell/ev-sidebar-attachments.c: * shell/ev-sidebar-links.c: * shell/ev-sidebar-links.h: * shell/ev-sidebar-thumbnails.c: * shell/ev-sidebar-thumbnails.h: * shell/ev-sidebar.c: * shell/ev-sidebar.h: * shell/ev-stock-icons.c: * shell/ev-tooltip.h: * shell/ev-view.c: * shell/ev-view.h: * shell/ev-window.c: * shell/ev-window.h: * shell/main.c: More #include cleanups. Again: reordering, single gtk.h includes and other stuff. svn path=/trunk/; revision=3095
* Cleanup many #include statements: reorder so that a generic-to-specificWouter Bolsterlee2008-08-031-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-03 Wouter Bolsterlee <wbolster@svn.gnome.org> * shell/eggfindbar.c: * shell/ev-application.c: * shell/ev-message-area.c: * shell/ev-navigation-action.c: * shell/ev-open-recent-action.c: * shell/ev-page-action-widget.c: * shell/ev-page-action.c: * shell/ev-password-view.c: * shell/ev-properties-dialog.c: * shell/ev-properties-fonts.c: * shell/ev-sidebar-attachments.c: * shell/ev-sidebar-page.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-stock-icons.c: * shell/ev-tooltip.c: * shell/ev-view.c: * shell/ev-window.c: * shell/main.c: Cleanup many #include statements: reorder so that a generic-to-specific order is used, use single gtk.h includes, and some other cleanups. svn path=/trunk/; revision=3094
* When building with D-Bus support, listen for multimedia key events fromBastien Nocera2008-06-241-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-24 Bastien Nocera <hadess@hadess.net> * shell/Makefile.am: * shell/ev-application.c (ev_application_init), (ev_application_get_media_keys): * shell/ev-application.h: * shell/ev-marshal.list: * shell/ev-media-player-keys.c (ev_media_player_keys_class_init), (proxy_destroy), (on_media_player_key_pressed), (ev_media_player_keys_init), (ev_media_player_keys_focused), (ev_media_player_keys_finalize), (ev_media_player_keys_new): * shell/ev-media-player-keys.h: * shell/ev-window.c (ev_window_go_previous_page), (ev_window_go_next_page), (ev_window_go_first_page), (ev_window_go_last_page), (ev_window_start_presentation), (ev_window_dispose), (view_actions_focus_in_cb): * shell/ev-window.h: When building with D-Bus support, listen for multimedia key events from gnome-settings-daemon. This allows to go to the next/previous/first/last pages using, respectively, Next/Previous/Rewing/Fast Forward. The Play button is used to start a presentation. Fixes bug #539971. svn path=/trunk/; revision=3059
* Fix some build warnings under GCC 4.3.0. (#537535).Cosimo Cecchi2008-06-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | 2008-06-10 Cosimo Cecchi <cosimoc@gnome.org> * libdocument/ev-backends-manager.c: (ev_backends_manager_load): * libdocument/ev-image.c: (ev_image_save_tmp): * libdocument/ev-module.c: (ev_module_load): * shell/ev-application.c: (ev_application_shutdown), (ev_application_get_print_settings): * shell/ev-sidebar-attachments.c: (ev_sidebar_attachments_button_press), (ev_sidebar_attachments_drag_data_get): * shell/ev-window.c: (window_save_file_copy_ready_cb), (ev_window_print_finished), (ev_window_print_send), (ev_window_print_job_cb), (ev_window_cmd_help_contents), (ev_window_preview_print_finished), (ev_window_do_preview_print), (ev_window_cmd_preview_print): * shell/main.c: (load_files_remote): Fix some build warnings under GCC 4.3.0. (#537535). svn path=/trunk/; revision=3049
* Remove libgnomeprint support. Fixes bug #512370.Carlos Garcia Campos2008-02-081-6/+1
| | | | | | | | | | | | | 2008-02-08 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * shell/Makefile.am: * shell/ev-application.[ch]: * shell/ev-sidebar-links.c: * shell/ev-utils.[ch]: * shell/ev-window.[ch]: Remove libgnomeprint support. Fixes bug #512370. svn path=/trunk/; revision=2895
* Include config.h. Bug #504721.Christian Persch2007-12-281-0/+1
| | | | | | | | 2007-12-28 Christian Persch <chpe@gnome.org> * **/*.c: Include config.h. Bug #504721. svn path=/trunk/; revision=2787
* Add a command line option for search. Fixes bug #497710.Carlos Garcia Campos2007-11-251-4/+20
| | | | | | | | | | | | | | | | | 2007-11-25 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.[ch]: (get_find_string_from_args), (ev_application_open_uri_at_dest), (ev_application_open_uri), (ev_application_open_uri_list): * shell/ev-jobs.[ch]: (ev_job_load_dispose), (ev_job_load_new): * shell/ev-window.[ch]: (ev_window_load_job_cb), (ev_window_open_uri), (ev_window_cmd_file_open_copy_at_dest), (ev_window_cmd_recent_file_activate), (ev_window_open_recent_action_item_activated), (ev_window_print_send), (open_remote_link): * shell/main.c: (arguments_parse): Add a command line option for search. Fixes bug #497710. svn path=/trunk/; revision=2746
* Add an expander to the open toolbar item which pops up a dropdown menuCarlos Garcia Campos2007-10-281-1/+19
| | | | | | | | | | | | | | | 2007-10-29 Carlos Garcia Campos <carlosgc@gnome.org> * data/evince-toolbar.xml: * shell/Makefile.am: * shell/ev-application.c: (ev_application_init): * shell/ev-open-recent-action.[ch]: * shell/ev-window.c: (ev_window_open_recent_action_item_activated), (register_custom_actions): Add an expander to the open toolbar item which pops up a dropdown menu with the recently used documents. Fixes bug #487215. svn path=/trunk/; revision=2731
* RemovedCarlos Garcia Campos2007-10-261-29/+0
| | | | | | | | | | | | | | | | 2007-10-26 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * cut-n-paste/Makefile.am: * cut-n-paste/recent-files/*: Removed * help/reference/Makefile.am: * shell/Makefile.am: * shell/ev-application.[ch]: (ev_application_shutdown), (ev_application_init): * shell/ev-window.c: (ev_window_add_recent), (ev_window_setup_recent), (ev_window_dispose), (ev_window_init): Bump requirements to gtk+ 2.10.0 and remove egg-recent code. svn path=/trunk/; revision=2722
* Add functions to delete temporary files created by evince in a safe way.Carlos Garcia Campos2007-05-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2007-05-25 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-image.c: (ev_image_finalize): * libdocument/ev-document-factory.c: (free_uncompressed_uri): * libdocument/ev-attachment.c: (ev_attachment_finalize): * libdocument/ev-file-helpers.[ch]: (ev_tmp_filename_unlink), (ev_tmp_uri_unlink): Add functions to delete temporary files created by evince in a safe way. * shell/ev-window.c: (ev_window_clear_local_uri), (open_xfer_update_progress_callback), (save_xfer_update_progress_callback), (ev_window_save_remote), (file_save_dialog_response_cb), (ev_window_cmd_save_as), (image_save_dialog_response_cb), (ev_view_popup_cmd_save_image_as), (attachment_save_dialog_response_cb), (ev_attachment_popup_cmd_save_attachment_as): Allow saving a copy of a document, image or attachment to a remote location. Fixes bug #440754. svn path=/trunk/; revision=2478
* Add print button in preview mode. Fixes bug #396475.Carlos Garcia Campos2007-05-111-6/+26
| | | | | | | | | | | | | | | | | | 2007-05-11 Carlos Garcia Campos <carlosgc@gnome.org> * data/evince-ui.xml: * shell/ev-application.[ch]: (get_print_settings_from_args), (ev_application_open_uri_at_dest), (ev_application_open_uri), (ev_application_open_uri_list): * shell/ev-window.[ch]: (ev_window_clear_print_settings_file), (ev_window_open_uri), (ev_window_cmd_file_open_copy_at_dest), (ev_window_cmd_recent_file_activate), (ev_window_run_preview), (ev_window_cmd_view_reload), (lookup_printer_from_name), (ev_window_preview_print_finished), (ev_window_cmd_preview_print), (ev_window_dispose): * shell/main.c: (arguments_parse): Add print button in preview mode. Fixes bug #396475. svn path=/trunk/; revision=2450
* Add app-specific icons to our icon theme. Fixes bug #425508.Nickolay V. Shmyrev2007-05-091-21/+31
| | | | | | | | | | | | | | | | 2007-05-09 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-application.c: (ev_application_open_window), (ev_application_add_icon_path_for_screen), (ev_application_open_uri_at_dest): * shell/ev-navigation-action-widget.c: (popup_menu_under_arrow): * shell/ev-navigation-action.c: (build_menu): Add app-specific icons to our icon theme. Fixes bug #425508. svn path=/trunk/; revision=2444
* Remember print settings. Fixes bug #349102.Carlos Garcia Campos2007-05-081-1/+86
| | | | | | | | | | | 2007-05-08 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.[ch]: (ev_application_shutdown), (ev_application_get_print_settings), (ev_application_set_print_settings): * shell/ev-window.c: Remember print settings. Fixes bug #349102. svn path=/trunk/; revision=2442
* Add --without-libgnome, check for libgnome and libgnomeui separately, andRoss Burton2007-05-041-1/+9
| | | | | | | | | | | | | | | | | | | | | | | 2007-05-04 Ross Burton <ross@openedhand.com> * configure.ac: Add --without-libgnome, check for libgnome and libgnomeui separately, and add them to the symbols as required. * libdocument/ev-file-helpers.c: When building without libgnome, use g_get_user_config_dir instead of gnome_user_dir_get. * shell/ev-application.c: When building without libgnome, don't use session management. * shell/main.c: When building without libgnome, don't use GnomeProgram or initialise the authentication manager. This fixes #328842. svn path=/trunk/; revision=2436
* Make fullscreen toolbar always visible. Do not use egg toolbars forCarlos Garcia Campos2007-04-201-24/+36
| | | | | | | | | | | | | | | | | | | | | 2007-04-20 Carlos Garcia Campos <carlosgc@gnome.org> * data/Makefile.am: * data/evince-ui.xml: * shell/ev-stock-icons.[ch]: * shell/ev-application.[ch]: (ev_application_shutdown), (ev_application_init), (ev_application_get_toolbars_model): * shell/ev-window.c: (update_chrome_visibility), (fullscreen_toolbar_setup_item_properties), (ev_window_run_fullscreen), (ev_window_stop_fullscreen), (ev_window_run_presentation), (ev_window_stop_presentation), (ev_window_run_preview), (ev_window_screen_changed), (ev_window_cmd_leave_fullscreen), (ev_window_cmd_start_presentation), (ev_window_dispose), (ev_window_init): Make fullscreen toolbar always visible. Do not use egg toolbars for fullscreen and preview modes since such toolbars are not editables. Fixes bugs #300278, #338910 and #316188. svn path=/trunk/; revision=2412
* Developers documentation updated.Iñigo Martínez2007-04-201-0/+118
| | | | | | | | | | | | | | | | 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
* Use icon theme associated with the window screen rather than default.Carlos Garcia Campos2007-01-191-1/+27
| | | | | | | | | 2007-01-19 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-stock-icons.c: (ev_stock_icons_init): * shell/ev-application.c: (ev_application_open_uri_at_dest): Use icon theme associated with the window screen rather than default. svn path=/trunk/; revision=2238
* Show main window and load document with the font-config lock held.Carlos Garcia Campos2007-01-091-0/+2
| | | | | | | | | 2007-01-09 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-jobs.c: (ev_job_xfer_run): * shell/ev-application.c: (ev_application_open_uri_at_dest): Show main window and load document with the font-config lock held. svn path=/trunk/; revision=2203
* Bump requirements to dbus-glib 0.71 and drop all ifdefs used.Carlos Garcia Campos2007-01-081-15/+0
| | | | | | | | | | 2007-01-08 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * shell/ev-application.c: (ev_application_register_service): * shell/main.c: (load_files_remote): Bump requirements to dbus-glib 0.71 and drop all ifdefs used. svn path=/trunk/; revision=2201
* Move screensaver handling to application. No more message on startup.Nickolay V. Shmyrev2006-12-031-1/+14
| | | | | | | | | | | | | | | | | | | 2006-12-03 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * cut-n-paste/totem-screensaver/totem-scrsaver.c: (screensaver_init_dbus), (totem_scrsaver_new), (totem_scrsaver_init): * cut-n-paste/totem-screensaver/totem-scrsaver.h: * shell/ev-application.c: (ev_application_register_service), (ev_application_screensaver_enable), (ev_application_screensaver_disable): * shell/ev-application.h: * shell/ev-window.c: (ev_window_run_presentation), (ev_window_stop_presentation), (build_comments_string), (ev_window_init): Move screensaver handling to application. No more message on startup.
* Remove temp file created when evince is used by GTK+ in preview mode.Carlos Garcia Campos2006-11-101-3/+25
| | | | | | | | | | | 2006-11-10 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.[ch]: (get_unlink_temp_file_from_args), (ev_application_open_uri_at_dest), (ev_application_open_uri): * shell/ev-window.[ch]: (ev_window_clear_temp_file), (ev_window_open_uri): * shell/main.c: (arguments_parse): Remove temp file created when evince is used by GTK+ in preview mode. Fixes bug #365282.
* Fixes bug #364364 - toolbar editor shows zoom actions again.Nickolay V. Shmyrev2006-11-101-2/+14
| | | | | | | | | | | | | | | | | 2006-11-10 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * cut-n-paste/toolbar-editor/egg-toolbar-editor.c: (setup_editor): * data/Makefile.am: * data/evince-preview-toolbar.xml: * data/evince-toolbar.xml: * shell/ev-application.c: (ev_application_shutdown), (ev_application_init), (ev_application_get_toolbars_model): * shell/ev-application.h: * shell/ev-window.c: (update_chrome_visibility), (ev_window_create_fullscreen_popup), (ev_window_run_preview), (ev_window_cmd_edit_toolbar), (ev_window_init): Fixes bug #364364 - toolbar editor shows zoom actions again.
* Add support for multiscreen systems. Fixes bug #316206.Carlos Garcia Campos2006-10-311-20/+114
| | | | | | | | | | | | | 2006-10-31 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application-service.xml: * shell/ev-application.[ch]: (ev_application_open_window), (ev_application_get_empty_window), (ev_application_open_uri_at_dest), (ev_application_open_uri), (ev_application_open_uri_list): * shell/ev-window.c: (file_open_dialog_response_cb), (ev_window_cmd_recent_file_activate), (ev_window_setup_recent), (drag_data_received_cb), (open_remote_link): * shell/main.c: (arguments_parse), (load_files), (load_files_remote): Add support for multiscreen systems. Fixes bug #316206.
* Reopen should reload document. Fixes bug 327951.Nickolay V. Shmyrev2006-09-141-9/+3
| | | | | | | | | 2006-09-14 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-application.c: (ev_application_open_uri_at_dest): Reopen should reload document. Fixes bug 327951.
* Use GtkRecent instead of EggRecent when it's available. Fixes bug #349273Carlos Garcia Campos2006-08-051-1/+7
| | | | | | | | | | | | 2006-08-05 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * cut-n-paste/Makefile.am: * data/evince-ui.xml: * shell/Makefile.am: * shell/ev-application.[ch]: * shell/ev-window.c: Use GtkRecent instead of EggRecent when it's available. Fixes bug #349273
* Add preview toolbar (hidden by default)Carlos Garcia Campos2006-07-171-12/+26
| | | | | | | | | | | | | 2006-07-17 Carlos Garcia Campos <carlosgc@gnome.org> * data/evince-toolbar.xml: Add preview toolbar (hidden by default) * shell/ev-application-service.xml: * shell/ev-application.[ch]: * shell/ev-jobs.[ch]: * shell/ev-window.[ch]: (ev_window_run_preview): * shell/main.c: Add preview mode to use evince as a printing previewer. It also adds other command line options for fullscreen and presentation modes. Fixes bugs #347822, #317031
* Fix page-label command line option. Bug #342070.Nickolay V. Shmyrev2006-05-271-5/+8
| | | | | | | | | | | | | | | * backend/ev-link-dest.c: (ev_link_dest_type_get_type), (ev_link_dest_get_page_label), (ev_link_dest_get_property), (ev_link_dest_set_property), (ev_link_dest_finalize), (ev_link_dest_class_init), (ev_link_dest_new_named), (ev_link_dest_new_page_label): * backend/ev-link-dest.h: * shell/ev-application.c: (ev_application_open_uri): * shell/ev-view.c: (goto_dest): * shell/ev-window.c: * shell/ev-window.h: Fix page-label command line option. Bug #342070.
* Sync toolbareditor with epiphany and libeggNickolay V. Shmyrev2006-05-261-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cut-n-paste/toolbar-editor/Makefile.am: * cut-n-paste/toolbar-editor/egg-editable-toolbar.c: (get_dock_position), (get_toolbar_position), (get_toolbar_nth), (find_action), (drag_data_delete_cb), (drag_begin_cb), (drag_end_cb), (drag_data_get_cb), (move_item_cb), (remove_item_cb), (remove_toolbar_cb), (popup_context_deactivate), (popup_context_menu_cb), (button_press_event_cb), (configure_item_sensitivity), (configure_item_cursor), (configure_item_tooltip), (connect_widget_signals), (action_sensitive_cb), (create_item_from_action), (create_item_from_position), (toolbar_drag_data_received_cb), (toolbar_drag_drop_cb), (toolbar_drag_motion_cb), (toolbar_drag_leave_cb), (configure_drag_dest), (toggled_visibility_cb), (toolbar_visibility_refresh), (create_dock), (toolbar_changed_cb), (unparent_fixed), (update_fixed), (toolbar_added_cb), (toolbar_removed_cb), (item_added_cb), (item_removed_cb), (egg_editable_toolbar_build), (egg_editable_toolbar_set_model), (egg_editable_toolbar_init), (egg_editable_toolbar_dispose), (egg_editable_toolbar_set_ui_manager), (egg_editable_toolbar_get_selected), (egg_editable_toolbar_set_selected), (set_edit_mode), (egg_editable_toolbar_set_property), (egg_editable_toolbar_get_property), (egg_editable_toolbar_class_init), (egg_editable_toolbar_new), (egg_editable_toolbar_new_with_model), (egg_editable_toolbar_get_edit_mode), (egg_editable_toolbar_set_edit_mode), (egg_editable_toolbar_add_visibility), (egg_editable_toolbar_show), (egg_editable_toolbar_hide), (egg_editable_toolbar_set_fixed): * cut-n-paste/toolbar-editor/egg-editable-toolbar.h: * cut-n-paste/toolbar-editor/egg-toolbar-editor.c: (compare_items), (item_added_or_removed_cb), (toolbar_removed_cb), (egg_toolbar_editor_set_model), (egg_toolbar_editor_class_init), (egg_toolbar_editor_finalize), (drag_begin_cb), (drag_end_cb), (drag_data_get_cb), (set_drag_cursor), (editor_create_item), (editor_create_item_from_name), (append_table), (update_editor_sheet), (egg_toolbar_editor_init): * cut-n-paste/toolbar-editor/egg-toolbar-editor.h: * cut-n-paste/toolbar-editor/egg-toolbars-model.c: (egg_toolbars_model_to_xml), (egg_toolbars_model_save_toolbars), (is_unique), (toolbar_node_new), (item_node_new), (item_node_free), (toolbar_node_free), (egg_toolbars_model_get_flags), (egg_toolbars_model_set_flags), (egg_toolbars_model_get_data), (egg_toolbars_model_get_name), (impl_add_item), (egg_toolbars_model_add_item), (egg_toolbars_model_add_toolbar), (parse_data_list), (parse_item_list), (parse_toolbars), (egg_toolbars_model_load_toolbars), (parse_available_list), (parse_names), (egg_toolbars_model_load_names), (egg_toolbars_model_class_init), (egg_toolbars_model_init), (egg_toolbars_model_finalize), (egg_toolbars_model_remove_toolbar), (egg_toolbars_model_remove_item), (egg_toolbars_model_move_item), (egg_toolbars_model_delete_item), (egg_toolbars_model_n_items), (egg_toolbars_model_item_nth), (egg_toolbars_model_n_toolbars), (egg_toolbars_model_toolbar_nth), (egg_toolbars_model_get_types), (egg_toolbars_model_set_types), (fill_avail_array), (egg_toolbars_model_get_name_avail), (egg_toolbars_model_get_name_flags), (egg_toolbars_model_set_name_flags): * cut-n-paste/toolbar-editor/egg-toolbars-model.h: * cut-n-paste/toolbar-editor/eggintl.h: * cut-n-paste/toolbar-editor/eggtreemultidnd.c: (egg_tree_multi_drag_source_get_type), (egg_tree_multi_drag_source_row_draggable), (egg_tree_multi_drag_source_drag_data_delete), (egg_tree_multi_drag_source_drag_data_get), (stop_drag_check), (egg_tree_multi_drag_button_release_event), (selection_foreach), (path_list_free), (set_context_data), (get_context_data), (get_info), (egg_tree_multi_drag_drag_data_get), (egg_tree_multi_drag_motion_event), (egg_tree_multi_drag_button_press_event), (egg_tree_multi_drag_add_drag_support): * cut-n-paste/toolbar-editor/eggtreemultidnd.h: * shell/ev-application.c: (ev_application_init), (ev_application_save_toolbars_model): * shell/ev-window.c: (ev_window_create_fullscreen_popup), (ev_window_cmd_edit_toolbar), (ev_window_init): Sync toolbareditor with epiphany and libegg
* Bump requirements to gtk 2.8 and drop all idfefs used.Nickolay V. Shmyrev2006-05-131-12/+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 some memory leaks.Carlos Garcia Campos2006-05-091-5/+9
| | | | | | | | 2006-05-09 Carlos Garcia Campos <carlosgc@gnome.org> * pdf/ev-poppler.cc: * shell/ev-application.[ch]: * shell/main.c: Fix some memory leaks.
* Rework links system, it adds support for remote links now and it makesCarlos Garcia Campos2006-05-021-17/+29
| | | | | | | | | | | | | | | | | | | | | | | | 2006-05-02 Carlos Garcia Campos <carlosgc@gnome.org> * backend/Makefile.am: * backend/ev-document-links.[ch]: * backend/ev-document.[ch]: * backend/ev-link-action.[ch]: * backend/ev-link-dest.[ch]: * backend/ev-link.[ch]: * pdf/ev-poppler.cc: (pdf_document_find_link_dest), (ev_link_dest_from_dest), (ev_link_from_action), (build_tree): * shell/ev-page-action.c: (build_new_tree_cb): * shell/ev-sidebar-links.c: (get_page_from_dest), (print_section_cb), (links_page_num_func), (update_page_callback): * shell/ev-view.[ch]: (ev_view_goto_dest), (ev_view_handle_link), (tip_from_link): * shell/ev-jobs.c: * shell/ev-window.[ch]: (ev_window_open_uri), (sidebar_links_link_activated_cb), (ev_view_popup_cmd_open_link): * shell/ev-application.[ch]: (ev_application_open_window), (ev_application_open_uri): Rework links system, it adds support for remote links now and it makes easier to add new kinds of actions and destinations. Fixes bug #317292
* Rework factory functions so they are placed now in a single fileNickolay V. Shmyrev2006-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | * backend/ev-document-factory.c: (ev_document_factory_get_from_mime), (ev_document_factory_get_all_mime_types), (get_document_from_uri), (ev_document_factory_get_document), (file_filter_add_mime_list_and_free), (ev_document_factory_add_filters): * backend/ev-document-factory.h: * properties/ev-properties-main.c: (ev_properties_get_pages): * shell/Makefile.am: * shell/ev-application.c: * shell/ev-job-xfer.c: (ev_job_xfer_run): * shell/ev-window.c: (ev_window_cmd_file_open), (ev_window_cmd_save_as): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): Rework factory functions so they are placed now in a single file ev-document-factory.c
* Use DBUS_NAME_FLAG_DO_NOT_QUEUE flag in RequestName method whenCarlos Garcia Campos2006-02-121-0/+10
| | | | | | | 2006-02-12 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.c: Use DBUS_NAME_FLAG_DO_NOT_QUEUE flag in RequestName method when dbus>=0.60, so that the request is not queued.
* Save last uri in file chooser dialog. Fix for the bug #327950.Nickolay V. Shmyrev2006-01-211-0/+12
| | | | | | | | | | * shell/ev-application.c: (ev_application_shutdown), (ev_application_set_chooser_uri), (ev_application_get_chooser_uri): * shell/ev-application.h: * shell/ev-window.c: (file_open_dialog_response_cb), (ev_window_cmd_file_open): Save last uri in file chooser dialog. Fix for the bug #327950.
* Don't add pixbuf mime types if pixbuf backend is disabled.Nickolay V. Shmyrev2006-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * backend/ev-document-factory.c: (gdk_pixbuf_mime_type_list), (mime_type_supported_by_gdk_pixbuf), (ev_document_factory_get_mime_types), (ev_document_factory_get_all_mime_types): Don't add pixbuf mime types if pixbuf backend is disabled. * shell/ev-application.c: (ev_application_get_uri_window): Fix for the bug 325815 - unhandled MIME type message doesn't appear a second time. * shell/ev-document-types.c: (ev_document_types_add_filters): * shell/ev-window.c: (page_changed_cb), (ev_window_setup_document), (password_dialog_response), (ev_window_popup_password_dialog), (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): Cleanup additional uris holded by EvWindow.
* Correct zoom setup and metadata save broken in some locales.Nickolay V. Shmyrev2005-12-251-3/+0
| | | | | | | | * shell/ev-metadata-manager.c: (parse_value): * shell/ev-view.c: (goto_xyz_link): Correct zoom setup and metadata save broken in some locales.
* New CBR/CBZ backend for comic books.Nickolay V. Shmyrev2005-11-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-14 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * Makefile.am: * backend/Makefile.am: * backend/ev-document-factory.c: * backend/ev-document-factory.h: * comics/Makefile.am: * comics/comics-document.c: (G_DEFINE_TYPE_WITH_CODE), (comics_document_load), (comics_document_save), (comics_document_get_n_pages), (comics_document_get_page_size), (get_page_size_area_prepared_cb), (comics_document_render_pixbuf) (render_pixbuf_size_prepared_cb), (comics_document_finalize), (comics_document_class_init), (comics_document_can_get_text), (comics_document_get_info), (comics_document_document_iface_init), (comics_document_init), (get_supported_image_extensions), (comics_document_thumbnails_get_geometry), (comics_document_thumbnails_get_thumbnail), (comics_document_thumbnails_get_dimensions), (comics_document_document_thumbnails_iface_init), (extract_argv): * comics/comics-document.h: * comics/ev-cbr-mime.xml: * configure.ac: * po/POTFILES.in: * shell/ev-application.c: (ev_application_register_service): * shell/ev-document-types.c: (ev_document_types_add_filters): * thumbnailer/Makefile.am: * thumbnailer/evince-thumbnailer-comics.schemas.in: New CBR/CBZ backend for comic books.
* Add a function to retrieve window list and share it where necessary.Marco Pesenti Gritti2005-09-231-7/+75
| | | | | | | | | | | | | | | 2005-09-23 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-application.c: (removed_from_session), (save_session), (init_session), (ev_application_get_empty_window), (ev_application_init), (ev_application_get_windows): * shell/ev-application.h: * shell/ev-window.c: (ev_window_finalize): Add a function to retrieve window list and share it where necessary. Implement session handling, works pretty well thanks to the metadata system.
* Fix window size persistanceMarco Pesenti Gritti2005-09-221-2/+5
| | | | | | | | 2005-09-22 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-application.c: (ev_application_open_uri): Fix window size persistance
* Last minute GTK-2.6 fixes. Release 0.4.0Jonathan Blandford2005-08-261-2/+10
| | | | | | | | Fri Aug 26 00:45:09 2005 Jonathan Blandford <jrb@redhat.com> * shell/main.c: * shell/ev-application.c: Last minute GTK-2.6 fixes. * NEWS: Release 0.4.0
* catch another gtk+-2.8ism Make work with gtk+-2.6 Release 0.4.0Jonathan Blandford2005-08-261-0/+5
| | | | | | | | Thu Aug 25 23:40:23 2005 Jonathan Blandford <jrb@redhat.com> * configure.ac: catch another gtk+-2.8ism * shell/main.c: Make work with gtk+-2.6 * NEWS: Release 0.4.0
* Add 'timestamp' argument to ev_application_open_window andRyan Lortie2005-08-261-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-25 Ryan Lortie <desrt@desrt.ca> * shell/ev-application-service.xml: Add 'timestamp' argument to ev_application_open_window and ev_application_open_uri methods. * shell/ev-application.h: Add 'timestamp' argument to ev_application_open_window, ev_application_open_uri, and ev_application_open_uri_list functions. * shell/ev-application.c (ev_application_open_window, ev_application_open_uri, ev_application_open_uri_list): Change functions that show/present windows to use a timestamp if one is passed in. * shell/ev-window.c (ev_window_cmd_file_open, ev_window_cmd_recent_file_activate, drag_data_received_cb): * shell/main.c (load_files): Modify calls to ev_application to include GDK_CURRENT_TIME as timestamp. * shell/main.c (load_files_remote): Obtain timestamp for client instance from GDK and pass to server instance so new windows are focused properly. Fix dbus_g_proxy_call() calls by including second G_TYPE_INVALID. Closes bug #314475.