summaryrefslogtreecommitdiff
path: root/src/totem-options.h
Commit message (Collapse)AuthorAgeFilesLines
* main: Fix thumbnailing starting when launching with a videoBastien Nocera2015-04-231-0/+1
| | | | | | | | | | | | | | We were previously relying on optionstate.filenames being non-NULL to avoid starting thumbnailing when the user opened the player with a video, but that actually caused doubly-adding those files passed on the command-line, and didn't work when the Open() GApplication method was used. Use a separate option to keep track of whether to start populating the grilo icon view and thumbnailing, so that thumbnailing doesn't hamper playback performance. https://bugzilla.gnome.org/show_bug.cgi?id=746165
* main: Fix (again) doubling files added on the cmd lineBastien Nocera2015-04-221-1/+1
| | | | | | | | | | | | | | | | | | When handling local command-line options, we would process all the options and send them as "remote" commands through totem. But the "remote-command" action would activate the application first. Thus we would do something like: - process command-line options in totem_object_app_handle_local_options() which calls totem_options_process_for_server(), which sends out "remote-command" actions - when handling "remote-command", to make sure that the application is actually ready, we call "activate". - but we didn't clear the filenames struct member in optionstate, so we process it again in "activate" With help from Carlos Maddela <maddela@labyrinth.net.au> https://bugzilla.gnome.org/show_bug.cgi?id=740995
* main: Remove unused totem_options_process_late() prototypeBastien Nocera2014-10-201-2/+0
| | | | Declared but not actually implemented.
* main: Remove totem_options_process_early()Bastien Nocera2014-10-201-2/+0
|
* main: Remove unused totem_options_get_context()Bastien Nocera2014-10-201-1/+0
|
* main: Remove debug optionBastien Nocera2014-10-201-1/+0
| | | | | Using G_MESSAGES_DEBUG=... or GStreamer's logging facilities yields better results.
* main: Remove unused playlistidx command-line optionBastien Nocera2013-03-091-1/+0
|
* main: Handle the --help option locallyBastien Nocera2012-03-281-0/+1
| | | | | | | | Instead of the remote instance. Launching --help would print the help from the server instance, and exit it, instead of doing so in the local instance. https://bugzilla.gnome.org/show_bug.cgi?id=669326
* Port Totem to new GApplication codeBastien Nocera2010-10-291-2/+1
| | | | | | | | | | | This cleans up Totem's initialisation, and cleans up its command-line handling. We do use one hack to handle window creation and command-line handling in the same function, as some of Totem's functionality requires knowing about the command-line. This however breaks activating the application via D-Bus.
* Port to GSettingsPhilip Withnall2010-09-041-1/+0
|
* Port from unique to GApplicationSaleem Abdulrasool2010-06-221-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=622151
* Fixed some strict gcc warningsPhilip Withnall2009-07-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-07-18 Philip Withnall <philip@tecnocode.co.uk> * src/backend/bacon-resize.c (bacon_resize_resize), (bacon_resize_restore): * src/backend/bacon-video-widget-gst-0.10.c (bacon_video_widget_open), (bacon_video_widget_seek_time), (bacon_video_widget_set_logo): * src/backend/bacon-video-widget.h: * src/backend/bvw-test.c (test_bvw_set_mrl), (on_redirect), (on_eos_event), (main): * src/backend/video-utils.c (totem_time_to_string), (totem_time_to_string_text): * src/plugins/brasero-disc-recorder/totem-disc-recorder.c (totem_disc_recorder_plugin_start_burning): * src/plugins/properties/bacon-video-widget-properties.c (bacon_video_widget_properties_from_time): * src/plugins/properties/bacon-video-widget-properties.h: * src/plugins/publish/totem-publish.c (totem_publish_plugin_playlist_cb): * src/plugins/screenshot/totem-gallery.c (dialog_response_callback): * src/plugins/screenshot/totem-screenshot.c (drag_data_get): * src/plugins/skipto/totem-skipto-plugin.c (totem_skipto_update_from_state): * src/plugins/skipto/totem-skipto.c (totem_skipto_update_range), (totem_skipto_get_range), (totem_skipto_set_current): * src/plugins/skipto/totem-skipto.h: * src/plugins/totem-plugins-engine.c (load_plugin_module), (totem_plugins_engine_plugin_active_cb), (totem_plugins_engine_plugin_visible_cb): * src/plugins/youtube/totem-youtube.c (starting_video_cb): * src/totem-menu.c (add_lang_action), (totem_action_add_recent): * src/totem-object.c (totem_get_title_at_playlist_pos), (totem_action_load_media), (window_state_event_cb), (totem_action_set_mrl_with_warning), (totem_time_within_seconds), (totem_seek_time_rel), (drop_video_cb), (drag_motion_video_cb), (drop_playlist_cb), (drag_motion_playlist_cb), (drag_video_cb), (seek_slider_changed_cb), (totem_action_set_playlist_index), (totem_action_remote), (totem_action_handle_key_release), (window_key_press_event_cb): * src/totem-options.c (totem_options_process_late): * src/totem-options.h: * src/totem-playlist.c (drop_cb), (playlist_show_popup_menu), (totem_playlist_set_reorderable), (totem_playlist_clear_with_compare), (totem_playlist_get_title), (totem_playlist_get_current), (totem_playlist_set_current): * src/totem-playlist.h: * src/totem-preferences.c (totem_setup_preferences): * src/totem-private.h: * src/totem-session.c (totem_save_state_cb): * src/totem-statusbar.c (totem_statusbar_update_time), (totem_statusbar_set_time), (totem_statusbar_set_time_and_length): * src/totem-subtitle-encoding.c (subtitle_encoding_get_charset), (subtitle_encoding_create_store), (totem_subtitle_encoding_get_selected), (totem_subtitle_encoding_set): * src/totem-time-label.c (totem_time_label_init), (totem_time_label_set_time): * src/totem-video-thumbnailer.c (create_gallery), (main): * src/totem.c (totem_message_received_cb), (main): * src/totem.h: Fixed some strict gcc warnings.
* Fix remote commands not workingBastien Nocera2009-05-161-3/+4
| | | | | | | | | 2009-05-16 Bastien Nocera <hadess@hadess.net> * src/totem-options.c (totem_options_register_remote_commands): * src/totem-options.h: * src/totem.c (main): Register the remote commands for use by UniqueApp, fixes remote commands not working...
* Remove use of bacon-message-connection and use libunique instead (Closes:Bastien Nocera2009-04-021-2/+2
| | | | | | | | | | | | | | | | | | | | | 2009-04-02 Bastien Nocera <hadess@hadess.net> * configure.in: * src/Makefile.am: * src/bacon-message-connection.c: * src/bacon-message-connection.h: * src/plugins/lirc/totem-lirc.c (totem_lirc_to_command): * src/totem-object.c (totem_remote_command_get_type), (totem_action_exit), (totem_action_remote): * src/totem-options.c (totem_options_process_for_server): * src/totem-options.h: * src/totem-private.h: * src/totem.c (totem_message_received_cb), (main): * src/totem.h: Remove use of bacon-message-connection and use libunique instead (Closes: #162822) svn path=/trunk/; revision=6227
* Remove --print-playing, we have a D-Bus plugin to export that data nowBastien Nocera2009-04-011-1/+0
| | | | | | | | | | | 2009-04-01 Bastien Nocera <hadess@hadess.net> * src/totem-options.c (totem_options_process_for_server): * src/totem-options.h: Remove --print-playing, we have a D-Bus plugin to export that data now (Closes: #512232) svn path=/trunk/; revision=6226
* Add proper support for mute toggling through the remote interface, and addBastien Nocera2008-12-051-0/+1
| | | | | | | | | | | | | | | | | 2008-12-05 Bastien Nocera <hadess@hadess.net> * src/totem-options.c (totem_options_process_for_server): * src/totem-options.h: * src/totem-private.h: * src/totem.c (totem_action_exit), (totem_action_volume_relative), (totem_action_volume_toggle_mute), (volume_button_value_changed_cb), (totem_action_remote): * src/totem.h: Add proper support for mute toggling through the remote interface, and add a command-line option for it (Closes: #554318) svn path=/trunk/; revision=5827
* Update FSF address (Closes: #518264)Bastien Nocera2008-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-04-24 Bastien Nocera <hadess@hadess.net> * browser-plugin/idl/totemIBasicPlayer.idl: * browser-plugin/idl/totemIComplexPlayer.idl: * browser-plugin/idl/totemICone.idl: * browser-plugin/idl/totemIConeAudio.idl: * browser-plugin/idl/totemIConeInput.idl: * browser-plugin/idl/totemIConePlaylist.idl: * browser-plugin/idl/totemIConePlaylistItems.idl: * browser-plugin/idl/totemIConeVideo.idl: * browser-plugin/idl/totemIGMPControls.idl: * browser-plugin/idl/totemIGMPError.idl: * browser-plugin/idl/totemIGMPErrorItem.idl: * browser-plugin/idl/totemIGMPMedia.idl: * browser-plugin/idl/totemIGMPPlayer.idl: * browser-plugin/idl/totemIGMPPlayerApplication.idl: * browser-plugin/idl/totemIGMPPlaylist.idl: * browser-plugin/idl/totemIGMPPlaylistArray.idl: * browser-plugin/idl/totemIGMPPlaylistCollection.idl: * browser-plugin/idl/totemIGMPSettings.idl: * browser-plugin/idl/totemIMullYPlayer.idl: * browser-plugin/idl/totemINarrowSpacePlayer.idl: * browser-plugin/totem-glow-button.c: * browser-plugin/totem-glow-button.h: * browser-plugin/totem-plugin-viewer-constants.h: * browser-plugin/totem-plugin-viewer-options.h: * browser-plugin/totem-plugin-viewer.c: * browser-plugin/totemBasicPlugin.cpp: * browser-plugin/totemBasicPlugin.h: * browser-plugin/totemClassInfo.h: * browser-plugin/totemComplexPlugin.cpp: * browser-plugin/totemComplexPlugin.h: * browser-plugin/totemConePlugin.cpp: * browser-plugin/totemConePlugin.h: * browser-plugin/totemDebug.h: * browser-plugin/totemGMPError.cpp: * browser-plugin/totemGMPError.h: * browser-plugin/totemGMPPlaylist.cpp: * browser-plugin/totemGMPPlaylist.h: * browser-plugin/totemGMPPlugin.cpp: * browser-plugin/totemGMPPlugin.h: * browser-plugin/totemGMPSettings.cpp: * browser-plugin/totemGMPSettings.h: * browser-plugin/totemMullYPlugin.cpp: * browser-plugin/totemMullYPlugin.h: * browser-plugin/totemNarrowSpacePlugin.cpp: * browser-plugin/totemNarrowSpacePlugin.h: * browser-plugin/totemPlugin.cpp: * browser-plugin/totemPlugin.h: * browser-plugin/totemPluginGlue.cpp: * browser-plugin/totemPluginGlue.h: * browser-plugin/totemStringGlue.h: * lib/totem-scrsaver.c: * lib/totem-scrsaver.h: * src/backend/bacon-resize.c: * src/backend/bacon-resize.h: * src/backend/bacon-video-widget-common.c: * src/backend/bacon-video-widget-common.h: * src/backend/bacon-video-widget-gst-0.10.c: * src/backend/bacon-video-widget-gst-missing-plugins.c: * src/backend/bacon-video-widget-gst-missing-plugins.h: * src/backend/bacon-video-widget-xine.c: * src/backend/bacon-video-widget.h: * src/backend/gstscreenshot.c: * src/backend/gstscreenshot.h: * src/bacon-message-connection.c: * src/bacon-message-connection.h: * src/ev-sidebar.c: * src/ev-sidebar.h: * src/plugins/bemused/totem-bemused.c: * src/plugins/galago/totem-galago.c: * src/plugins/gromit/totem-gromit.c: * src/plugins/lirc/totem-lirc.c: * src/plugins/media-player-keys/totem-media-player-keys.c: * src/plugins/mythtv/totem-mythtv.c: * src/plugins/ontop/totem-ontop.c: * src/plugins/properties/bacon-video-widget-properties.c: * src/plugins/properties/bacon-video-widget-properties.h: * src/plugins/properties/totem-movie-properties.c: * src/plugins/publish/totem-publish.c: * src/plugins/screensaver/totem-screensaver.c: * src/plugins/sidebar-test/totem-sidebar-test.c: * src/plugins/skipto/totem-skipto-plugin.c: * src/plugins/skipto/totem-skipto-plugin.h: * src/plugins/skipto/totem-skipto.c: * src/plugins/skipto/totem-skipto.h: * src/plugins/thumbnail/totem-thumbnail.c: * src/plugins/tracker/totem-tracker.c: * src/totem-audio-preview.c: * src/totem-cell-renderer-video.c: * src/totem-cell-renderer-video.h: * src/totem-fullscreen.c: * src/totem-fullscreen.h: * src/totem-interface.c: * src/totem-interface.h: * src/totem-menu.c: * src/totem-menu.h: * src/totem-object.c: * src/totem-open-location.c: * src/totem-open-location.h: * src/totem-options.c: * src/totem-options.h: * src/totem-playlist.c: * src/totem-playlist.h: * src/totem-preferences.c: * src/totem-preferences.h: * src/totem-private.h: * src/totem-resources.c: * src/totem-resources.h: * src/totem-screenshot.c: * src/totem-screenshot.h: * src/totem-session.c: * src/totem-session.h: * src/totem-sidebar.c: * src/totem-sidebar.h: * src/totem-statusbar.c: * src/totem-statusbar.h: * src/totem-subtitle-encoding.c: * src/totem-uri.c: * src/totem-uri.h: * src/totem-video-indexer.c: * src/totem-video-list.c: * src/totem-video-list.h: * src/totem-video-thumbnailer.c: * src/totem.c: * src/totem.h: * src/totem_mozilla_scripting.idl: Update FSF address (Closes: #518264) svn path=/trunk/; revision=5373
* Add --no-existing-session to allow launching multiple Totems (Closes:Bastien Nocera2007-11-221-0/+1
| | | | | | | | | | | | | | | | | | 2007-11-22 Bastien Nocera <hadess@hadess.net> * src/totem-options.c: * src/totem-options.h: * src/totem.c: (totem_action_exit), (totem_action_seek), (totem_action_open_dialog), (totem_action_load_media), (window_state_event_cb), (totem_action_take_screenshot), (totem_seek_time_rel), (totem_action_set_playlist_index), (playlist_changed_cb), (totem_action_handle_key_press), (playlist_widget_setup), (main): Add --no-existing-session to allow launching multiple Totems (Closes: #498826) svn path=/trunk/; revision=4884
* Handle better having --fullscreen passed to the master program (Helps:Bastien Nocera2007-06-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-21 Bastien Nocera <hadess@hadess.net> * data/totem.glade: * src/totem-menu.c: (show_controls_action_callback): * src/totem-options.c: (totem_options_process_late), (totem_options_process_early): * src/totem-options.h: * src/totem-private.h: * src/totem.c: (totem_action_save_state), (totem_action_exit), (totem_action_load_media), (totem_action_play_pause), (totem_action_pause), (window_state_event_cb), (totem_action_fullscreen_toggle), (show_controls), (video_widget_create), (main): Handle better having --fullscreen passed to the master program (Helps: #376149) * src/backend/bacon-video-widget-xine.c: (load_video_out_driver), (bacon_video_widget_realize), (xine_event), (bacon_video_widget_unrealize), (bacon_video_widget_show), (bacon_video_widget_hide), (show_vfx_update), (bacon_video_widget_open_with_subtitle), (bacon_video_widget_set_show_cursor), (bacon_video_widget_set_scale_ratio): Remove the video_window struct member, it was barely used. Fix the double-buffering on the widget being set/unset wrongly svn path=/trunk/; revision=4391
* Remove extraneous includesBastien Nocera2007-04-021-2/+4
| | | | | | | | | | | 2007-04-02 Bastien Nocera <hadess@hadess.net> * src/totem-options.h: * src/totem.c: * src/totem.h: Remove extraneous includes svn path=/trunk/; revision=4184
* Remove useless cast Fix xine-lib build Return early if we don't have anyBastien Nocera2006-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | 2006-11-29 Bastien Nocera <hadess@hadess.net> * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_get_option_group): Remove useless cast * src/backend/bacon-video-widget-xine.c: (bacon_video_widget_get_option_group), (bacon_video_widget_init_backend): Fix xine-lib build * src/totem-options.c: (totem_options_process_for_server): Return early if we don't have any filenames to pass * src/totem-options.h: Put the "seek to" option in a gint64 * src/totem-session.c: (totem_save_yourself_cb): Fix thinko, and properly set the playlist name to be a URI * src/totem-video-indexer.c: (main): Finish porting to GOption * src/totem.c: (main): Fix option parsing when using the GTK+ only version GOption-related fixes, with help from Christian Persch <chpe@cvs.gnome.org>
* upd the glib and libgnome requirementsBastien Nocera2006-11-291-7/+31
| | | | | | | | | | | | | | | | | | | | | | 2006-11-29 Bastien Nocera <hadess@hadess.net> * configure.in: upd the glib and libgnome requirements * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_get_option_group), (bacon_video_widget_init_backend): * src/backend/bacon-video-widget.h: * src/totem-options.c: (totem_options_process_late), (totem_options_process_early), (totem_options_process_for_server): * src/totem-options.h: * src/totem-private.h: * src/totem-session.c: (totem_save_yourself_cb), (totem_session_setup), (totem_session_restore): * src/totem-session.h: * src/totem-video-indexer.c: (main): * src/totem-video-thumbnailer.c: * src/totem.c: (main): Adapted patch from Luis Menina <liberforce@fr.st> to port the main movie player, and the indexer to GOption (Closes: #338954)
* Remove possible "burps" on startup when the sound is supposed to be muteBastien Nocera2005-01-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-01 Bastien Nocera <hadess@hadess.net> * data/totem.glade: * src/Makefile.am: * src/bacon-video-widget-xine.c: (setup_config_stream), (bacon_video_widget_new), (bacon_video_widget_seek_time), (bacon_video_widget_get_volume), (bacon_video_widget_get_current_time): * src/totem-options.c: (totem_options_process_late): * src/totem-options.h: * src/totem-pl-parser.c: (totem_pl_parser_add_pls): * src/totem-playlist.c: (totem_playlist_key_press), (totem_playlist_set_at_end), (totem_playlist_get_current), (totem_playlist_get_last), (totem_playlist_set_current): * src/totem-playlist.h: * src/totem-private.h: * src/totem-session.c: (totem_session_create_key), (totem_save_yourself_cb), (totem_session_restore), (totem_session_setup), (totem_action_restore_pl): * src/totem-session.h: * src/totem.c: (totem_action_save_size), (totem_action_exit), (totem_action_menu_popup), (play_pause_set_label), (totem_action_play), (totem_action_seek), (totem_action_fullscreen_toggle), (totem_action_seek_relative), (on_recent_file_activate), (on_channels_change_event), (totem_action_open_files), (show_controls), (totem_action_toggle_controls), (on_about1_activate), (commit_hide_skip_to), (totem_action_remote), (popup_timeout_remove), (popup_hide), (on_mouse_click_fullscreen), (on_video_motion_notify_event), (on_video_button_press_event), (totem_action_handle_key), (totem_setup_window), (totem_callback_connect), (main): * src/totem.h: * src/totem-sublang.[ch]: Remove possible "burps" on startup when the sound is supposed to be mute (xine-lib) Fix parsing of .pls files with relative paths (they're relative to the .pls file, not to the working directory) (Closes: #162440) Fix problems with activating a multi-item playlist from the recent files, we should play the first item added, not the last one Move languages and subtitles menu code to totem-sublang.[ch] Add session saving support (Closes: #131811) Fix seeking into streams that haven't been played yet, only opened Some code cleanups
* upd update from libbaconBastien Nocera2004-12-301-0/+43
2004-12-30 Bastien Nocera <hadess@hadess.net> * src/Makefile.am: upd * src/bacon-message-connection.h: update from libbacon * src/bacon-video-widget-xine.c: * src/bacon-video-widget.h: remove bacon_video_widget_properties_get_title which nothing used * src/disc-test.c: (main): upd * src/totem-disc.c: (totem_cd_detect_type_from_dir), (totem_cd_detect_type), (totem_cd_get_human_readable_name): * src/totem-disc.h: change namespace from cd_ to totem_cd_ * src/totem-options.[ch]: moved from totem.c * src/totem-pl-parser.c: (totem_pl_parser_add_directory): upd * src/totem-preferences.c: upd * src/totem-private.h: upd * src/totem-session.[ch]: start of some session support * src/totem-skipto.c: (totem_skipto_finalize), (totem_skipto_set_seekable), (totem_skipto_new): * src/totem-skipto.h: Set the OK button disabled when the stream isn't seekable (as before moving the TotemSkipto to a separate widget) * src/totem-uri.[ch]: move from totem.c * src/totem-video-thumbnailer.c: fix compilation warning * src/totem.c: (totem_action_exit), (totem_action_load_media), (totem_action_previous), (totem_action_next), (totem_action_toggle_aspect_ratio), (update_seekable), (on_play_disc1_activate), (on_show_controls2_activate), (totem_action_toggle_controls), (update_media_menu_items), (update_buttons), (main): * src/totem.h: Fix compilation of the GTK+-only front-end