summaryrefslogtreecommitdiff
path: root/src/totem-playlist.h
Commit message (Collapse)AuthorAgeFilesLines
* playlist: Simplify TotemPlaylist creationBastien Nocera2022-02-101-33/+2
| | | | | Use G_DECLARE_FINAL_TYPE(), remove intermediate private struct and signals declaration in the class struct.
* main: Use new starttime column in playlistBastien Nocera2019-02-171-2/+1
| | | | | | | | First, to reimplement the "starttime" session restore. This handily removes a variable in the TotemObject. Then use it to implement starttime from any playlist. Closes: #10
* main: Add totem_playlist_steal_current_starttime()Bastien Nocera2019-02-171-0/+1
| | | | Read, and remove starttime from currently playing entry.
* main: Remove unused totem_playlist_save_current_playlist_ext()Bastien Nocera2014-02-011-2/+0
|
* main: Fix warnings with broken grl-filesystem pathsBastien Nocera2014-02-011-1/+2
| | | | | | Report errors from the playlist through TotemObject, not through TotemPlaylist. It doesn't have a toplevel anymore, so can't parent dialogues properly.
* main: Remove shuffle settingBastien Nocera2014-01-231-4/+0
| | | | | We now have a shuffle button in the grilo plugin, to allow shuffling the selection.
* main: Remove "save-playback-state" settingBastien Nocera2013-07-091-4/+0
|
* main: Save the current position when saving sessionBastien Nocera2013-03-111-1/+2
|
* main: Split off saving of the session playlistBastien Nocera2013-03-111-1/+1
| | | | | | We were using the same code as the interactive playlist saving, which meant that error messages popped up in an error dialogue as we were closing the application.
* main: Rename totem_playlist_save_current_playlist()Bastien Nocera2013-03-111-2/+2
| | | | | | To totem_playlist_save_session_playlist() and make the new function check whether we should be saving the session state.
* main: Add accessors for the save propertyBastien Nocera2013-03-111-0/+4
|
* main: Export starttime from session playlist restoreBastien Nocera2013-03-091-1/+1
|
* playlist: Remove custom {repeat,shuffle}-toggled signalsBastien Nocera2013-03-081-2/+0
| | | | As we're using the properties instead now.
* main: Split getting title and content-typeBastien Nocera2012-07-141-2/+2
| | | | We used to have a single function returning both.
* playlist: Remove unused functionBastien Nocera2012-04-131-4/+0
|
* main: Fix for GtkVBox changesBastien Nocera2011-06-171-2/+2
| | | | Hopefully.
* main: Don't poke at web servers for infoBastien Nocera2011-03-171-1/+1
| | | | | | | | | | | | When loading videos from some websites, through quvi, we already have a lot of information about the file, so we don't really need to go and look for that information ourselves. We now store the content-type of the stream in question, and don't hit the web server to fill in GtkRecent if that's the case. https://bugzilla.gnome.org/show_bug.cgi?id=644949
* Add totem_playlist_add_mrls() APIPhilip Withnall2010-12-151-0/+16
| | | | | | | | | | | Due to various places in Totem calling the new asynchronous playlist parsing API on lists of items, it's now possible for playlist to be added to Totem in orders other than their input order. This is bad. This commit adds a new totem_playlist_add_mrls() API, which asynchronously adds lists of MRLs to Totem's playlist, preserving their input order. Helps: bgo#636686
* Fix title changes when the DVD chapters change.Jan Schmidt2010-12-121-2/+1
| | | | | | | | | | | Remove the 'force' argument from totem_playlist_set_title, as we want to update the custom title whenever the metadata changes, making all calls to totem_playlist_set_title need force == TRUE anyway. Fixes updating the playlist label and window title when DVDs switch chapters or jump into/out of the menu, broken in 71eacd. See https://bugzilla.gnome.org/show_bug.cgi?id=594222
* Bug 559628 — Support async loading of playlistsPhilip Withnall2010-04-271-6/+12
| | | | | | | Add async playlist support. This converts most calls to the playlist add MRL function to be async, dealing with the cursor appropriately (such that concurrent operations using a busy cursor don't trample on each others' cursors when they finish). Closes: bgo#559628
* Fixed some strict gcc warningsPhilip Withnall2009-07-181-2/+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.
* Add totem_uri_is_subtitle() to check whether a URI is a subtitleBastien Nocera2008-12-101-0/+2
| | | | | | | | | | | | | | | | | | | | | 2008-12-10 Bastien Nocera <hadess@hadess.net> * src/totem-uri.c (totem_uri_is_subtitle): * src/totem-uri.h: Add totem_uri_is_subtitle() to check whether a URI is a subtitle * src/totem-playlist.c (totem_playlist_set_current_subtitle): * src/totem-playlist.h: Add totem_playlist_set_current_subtitle() to set the subtitle for the currently playing movie * src/totem.c (totem_action_drop_files): When dropping files on the video widget, if there's only one file, and it looks like a subtitle, use it for the currently playing movie (Closes: #469566) svn path=/trunk/; revision=5847
* Patch from Kamil Pawlowski <kamilpe@gmail.com> to allow selecting a textBastien Nocera2008-12-101-0/+8
| | | | | | | | | | | | | | | | | | | 2008-12-10 Bastien Nocera <hadess@hadess.net> * data/totem.ui: * src/totem-menu.c (select_subtitle_action_callback): * src/totem-playlist.c (totem_playlist_select_subtitle_dialog), (playlist_select_subtitle_action_callback): * src/totem-playlist.h: * src/totem-uri.c: * src/totem-uri.h: * src/totem.c (totem_action_set_mrl_with_warning): Patch from Kamil Pawlowski <kamilpe@gmail.com> to allow selecting a text subtitle for the currently playing movie, from the View menu (Closes: #499463) svn path=/trunk/; revision=5844
* Fix totem_playlist_get_current() and totem_playlist_get_last() returningBastien Nocera2008-12-101-2/+2
| | | | | | | | | | | | | | | | | 2008-12-10 Bastien Nocera <hadess@hadess.net> * src/totem-object.c (totem_add_to_playlist_and_play), (totem_get_playlist_length): * src/totem-playlist.c (totem_playlist_get_current), (totem_playlist_get_last): * src/totem-playlist.h: * src/totem-session.c (totem_save_state_cb): * src/totem.h: Fix totem_playlist_get_current() and totem_playlist_get_last() returning negative values (Closes: #563961) svn path=/trunk/; revision=5839
* Use single GTK+/GLib includes.Cosimo Cecchi2008-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-10 Cosimo Cecchi <cosimoc@gnome.org> * browser-plugin/totem-glow-button.h: * src/backend/bacon-resize.h: * src/backend/bacon-video-widget.h: * src/ev-sidebar.h: * src/plugins/properties/bacon-video-widget-properties.h: * src/plugins/skipto/totem-skipto.h: * src/plugins/totem-plugins-engine.c: * src/totem-audio-preview.c: * src/totem-object.c: * src/totem-open-location.h: * src/totem-playlist.h: * src/totem-preferences.c: * src/totem-resources.c: * src/totem-screenshot.h: * src/totem-statusbar.c: * src/totem-statusbar.h: * src/totem-time-label.h: * src/totem-uri.h: * src/totem-video-indexer.c: Use single GTK+/GLib includes. svn path=/trunk/; revision=5799
* Don't use deprecated gtktype type and macros. Bug #539168.Christian Persch2008-06-191-5/+5
| | | | svn path=/trunk/; revision=5483
* Remove dead-code dating back from the audio CD support timesBastien Nocera2008-05-241-4/+0
| | | | | | | | | | | | 2008-05-24 Bastien Nocera <hadess@hadess.net> * src/totem-playlist.c (init_treeview): * src/totem-playlist.h: * src/totem.c (on_playlist_change_name): Remove dead-code dating back from the audio CD support times svn path=/trunk/; revision=5425
* 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
* Convert the bulk of Totem to GIO, leaving the plugins and backends stillPhilip Withnall2008-03-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-14 Philip Withnall <pwithnall@svn.gnome.org> * configure.in: * src/plugins/publish/totem-publish.c: * src/totem-menu.c: (totem_action_add_recent), (on_play_dvb_activate), (add_drive_to_menu), (update_drive_menu_items), (on_movie_menu_select), (on_g_volume_monitor_event), (totem_setup_play_disc): * src/totem-playlist.c: (totem_playlist_mrl_to_title), (totem_playlist_compare_with_mount), (totem_playlist_clear_with_g_mount): * src/totem-playlist.h: * src/totem-private.h: * src/totem-uri.c: (totem_get_mount_for_uri), (totem_get_mount_for_media), (totem_is_special_mrl), (totem_create_full_path), (totem_action_on_unmount), (totem_setup_file_monitoring), (totem_uri_exists), (totem_uri_get_subtitle_in_subdir), (totem_uri_get_subtitle_uri), (totem_uri_escape_for_display): * src/totem-uri.h: * src/totem.c: (totem_action_exit), (totem_action_eject), (drag_video_cb), (update_media_menu_items), (main): Convert the bulk of Totem to GIO, leaving the plugins and backends still to convert. (Closes: #512594, helps: #512602) svn path=/trunk/; revision=5302
* Move to totem-pl-parser moduleBastien Nocera2007-12-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-03 Bastien Nocera <hadess@hadess.net> * plparse/*: * totem-plparser-uninstalled.pc.in: * totem-plparser.pc.in: Move to totem-pl-parser module * Makefile.am: * bindings/python/totem.override: * browser-plugin/Makefile.am: * configure.in: * lib/Makefile.am: * src/Makefile.am: * src/backend/bacon-video-widget.h: * src/totem-playlist.h: * src/totem.c: * src/totem.h: Update includes and configure to use the external totem-pl-parser (Closes: #462153) 2007-12-03 Bastien Nocera <hadess@hadess.net> * POTFILES.in: remove removed files svn path=/trunk/; revision=4942
* Clean up a couple of other memory leaks, clean up disposal/finalization onPhilip Withnall2007-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-02 Philip Withnall <pwithnall@svn.gnome.org> * plparse/totem-pl-parser.c: (totem_pl_parser_class_init), (totem_pl_parser_init), (totem_pl_parser_finalize): * src/plugins/galago/totem-galago.c: (totem_galago_plugin_class_init), (totem_galago_plugin_dispose), (totem_galago_plugin_finalize): * src/plugins/tracker/totem-tracker-widget.c: (totem_tracker_widget_class_init), (totem_tracker_widget_dispose): * src/plugins/tracker/totem-tracker-widget.h: * src/plugins/tracker/totem-tracker.c: (totem_tracker_plugin_class_init): * src/totem-menu.c: (create_lang_actions): * src/totem-playlist.c: (totem_playlist_update_save_button), (totem_playlist_save_current_playlist_ext), (drop_cb), (playlist_select_subtitle_action_callback), (playlist_copy_location_action_callback), (playlist_show_popup_menu), (totem_playlist_set_reorderable), (button_press_cb), (button_release_cb), (drag_begin_cb), (drag_end_cb), (selection_changed), (update_current_from_playlist), (totem_playlist_foreach_selected), (totem_playlist_emit_item_removed), (playlist_remove_files), (totem_playlist_save_files), (totem_playlist_move_files), (totem_playlist_key_press), (treeview_row_changed), (init_treeview), (update_repeat_cb), (ensure_shuffled), (update_shuffle_cb), (update_lockdown), (init_config), (totem_playlist_dispose), (totem_playlist_finalize), (totem_playlist_init), (totem_playlist_new), (totem_playlist_add_one_mrl), (totem_playlist_add_mrl), (totem_playlist_clear), (totem_playlist_clear_with_compare), (totem_playlist_get_current_mrl), (totem_playlist_get_current_title), (totem_playlist_get_title), (totem_playlist_get_current_metadata), (totem_playlist_has_previous_mrl), (totem_playlist_has_next_mrl), (totem_playlist_set_title), (totem_playlist_set_playing), (totem_playlist_get_playing), (totem_playlist_set_previous), (totem_playlist_set_next), (totem_playlist_get_repeat), (totem_playlist_set_repeat), (totem_playlist_get_shuffle), (totem_playlist_set_shuffle), (totem_playlist_set_at_start), (totem_playlist_set_at_end), (totem_playlist_get_current), (totem_playlist_set_current), (totem_playlist_class_init), (totem_playlist_foreach): * src/totem-playlist.h: * src/totem.c: (totem_action_exit): Clean up a couple of other memory leaks, clean up disposal/finalization on a few classes, and rename TotemPlaylist->_priv to TotemPlaylist->priv. svn path=/trunk/; revision=4935
* Merge changes from LIBEPC branch. To gives Totem the ability toMathias Hasselmann2007-12-011-0/+11
| | | | | | | | | | | | | | | share its playlists via HTTP. Theoretically also HTTPS would work, if GStream/GNOME-VFS would setup Neon properly. * data/Makefile.am: Add publish-plugin.ui. Move totem_logo.png. * src/Makefile.am: Add totemplaylist-marshal.list. * src/plugins/publish/Makefile.am: Update CFLAGS with include dirs. * src/plugins/publish/totem-publish.c: Implement playlist sharing. * src/totem-playlist.c, src/totem-playlist.h: Add "item-added" and "item-removed" signal for more detailed information about playlist changes. Add totem_playlist_foreach for iterating over the playlist. svn path=/trunk/; revision=4927
* Remove row_activated signal, it's already implemented in the list viewBastien Nocera2007-11-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-11-25 Bastien Nocera <hadess@hadess.net> * src/plugins/mythtv/totem-mythtv.c: (create_treeview): Remove row_activated signal, it's already implemented in the list view * bindings/python/totem.defs: * data/playlist.ui: * src/totem-menu.c: (clear_playlist_action_callback): * src/totem-object.c: (totem_add_to_playlist_and_play): * src/totem-playlist.c: (playlist_select_subtitle_action_callback), (playlist_copy_location_action_callback), (playlist_show_popup_menu), (totem_playlist_set_reorderable), (update_current_from_playlist), (totem_playlist_add_files), (playlist_remove_files), (init_treeview), (totem_playlist_add_one_mrl), (totem_playlist_add_mrl), (totem_playlist_clear), (totem_playlist_get_current_mrl), (totem_playlist_get_current_title), (totem_playlist_set_previous), (totem_playlist_class_init): * src/totem-playlist.h: * src/totem-session.c: (totem_session_restore): * src/totem-uri.c: (totem_setup_file_filters), (totem_add_subtitle), (totem_add_files): * src/totem-uri.h: * src/totem.c: (totem_action_set_mrl_and_play), (totem_action_open_dialog), (totem_action_load_media), (totem_action_play_media_device), (totem_action_play_media), (totem_action_play_pause), (window_state_event_cb), (totem_open_location_response_cb), (totem_action_set_mrl_with_warning), (totem_action_set_mrl), (totem_action_direction), (totem_action_drop_files), (on_got_redirect), (totem_action_set_playlist_index), (totem_action_remote), (playlist_changed_cb), (current_removed_cb), (subtitle_changed_cb), (on_eos_event), (totem_action_handle_key_press), (playlist_widget_setup), (main): * src/totem.h: Add big patch by Kamil Pawlowski <kamilpe@gmail.com>, adds text subtitle selection in the UI via right-clicking on the playlist item (Closes: #165981) svn path=/trunk/; revision=4901
* Fix some compile warnings, show a busy cursor while downloading results inPhilip Withnall2007-11-121-1/+1
| | | | | | | | | | | | | | | | | 2007-11-12 Philip Withnall <pwithnall@svn.gnome.org> * src/plparse/totem-pl-parser-podcast.c: (parse_rss_items): * src/plugins/youtube/youtube.py: * src/totem-object.c: (totem_get_playlist): * src/totem-playlist.h: * src/totem-video-list.c: (row_activated_cb): * src/totem.h: Fix some compile warnings, show a busy cursor while downloading results in the YouTube plugin, and convert TotemVideoList to use the playlist instead of directly playing MRLs. svn path=/trunk/; revision=4865
* Print the URL that we detected from the device, for DVD and VCDsBastien Nocera2007-08-311-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-31 Bastien Nocera <hadess@hadess.net> * src/disc-test.c: (main): Print the URL that we detected from the device, for DVD and VCDs * src/backend/bacon-video-widget-xine.c: (bacon_video_widget_init), (setup_config), (bacon_video_widget_can_play), (bacon_video_widget_get_mrls): Remove CDDA playback altogether, don't say we have VCD support if we only have the old VCD plugin, Fake the DVD MRLs in _get_mrls so that we have the device in the MRL * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_open_with_subtitle), (bacon_video_widget_can_play), (bacon_video_widget_get_mrls): Handle VCD MRLs with a device in the MRL, Remove CDDA support * src/plparse/totem-disc.c: (totem_cd_detect_type_with_url): Use the mountpoint in the MRL for the device when we have it available, so that we can look for the volume for that path * src/plparse/totem-pl-parser.c: (totem_pl_parser_parse_with_base): Return an error when we get invalid input * src/totem-menu.c: (add_device_to_menu), (on_movie_menu_select): Don't set the activation_uri data on the menu item, we're not using it Don't forget to reset ->drives_changed to avoid rebuilding the devices menu each time we open the menu• * src/totem-playlist.c: (totem_playlist_compare_with_volume): * src/totem-playlist.h: Remove totem_playlist_clear_with_prefix, not using it anymore, use totem_get_volume_for_media in totem_playlist_clear_with_gnome_vfs_volume * src/totem-uri.c: (totem_get_volume_for_uri), (totem_get_mountpoint_for_dvd), (totem_get_mountpoint_for_vcd), (totem_get_volume_for_media), (totem_is_special_mrl), (totem_action_on_unmount): * src/totem-uri.h: Remove totem_is_media and add a totem_get_volume_for_uri so that we know what to umount when using the eject menu item * src/totem.c: (totem_action_eject), (totem_action_load_media_device), (totem_action_open_files_list), (totem_action_remote), (update_media_menu_items): Use the gnome-vfs volume when ejecting the device, so that we work for more than just the "special" media, and use gnome-vfs' eject functionality Remove CDDA handling Use crafted MRLs to playback DVD and VCD, as they only give us one MRL anyway * configure.in: Disable the Cone plugin build for now, as the Javascript stubs aren't written (Closes: #472226) svn path=/trunk/; revision=4641
* Fix activation (adding to the playlist, switching opened files, etc.) whenBastien Nocera2007-08-261-0/+1
| | | | | | | | | | | | | | 2007-08-26 Bastien Nocera <hadess@hadess.net> * src/totem-playlist.c: (treeview_row_changed), (totem_playlist_get_playing): * src/totem-playlist.h: * src/totem.c: (playlist_changed_cb): Fix activation (adding to the playlist, switching opened files, etc.) when 2 of the items in the playlist have the same MRL, see bug for details (Closes: #364311) svn path=/trunk/; revision=4604
* When adding items to the playlist, set the cursor waiting on the outermostBastien Nocera2007-08-111-1/+5
| | | | | | | | | | | | | | | | | | | | 2007-08-11 Bastien Nocera <hadess@hadess.net> * src/totem-menu.c: (on_recent_file_item_activated): * src/totem-playlist.c: (totem_playlist_set_waiting_cursor), (totem_playlist_unset_waiting_cursor), (drop_cb), (totem_playlist_add_files), (totem_playlist_add_mrl_with_cursor), (totem_playlist_add_mrl): * src/totem-playlist.h: * src/totem-session.c: (totem_session_restore): * src/totem.c: (totem_action_drop_files), (totem_action_open_files_list), (totem_action_remote): When adding items to the playlist, set the cursor waiting on the outermost loop, so that we don't set it once per file added to the playlist (and get flicker when doing "totem ~/Movies/*") svn path=/trunk/; revision=4505
* Add a number of externally callable functions to allow the Bemused pluginBastien Nocera2007-07-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | 2007-07-10 Bastien Nocera <hadess@hadess.net> * src/totem-object.c: (totem_get_playlist_length), (totem_get_playlist_pos), (totem_get_title_at_playlist_pos), (totem_get_short_title): * src/totem-playlist.c: (totem_playlist_get_title), (totem_playlist_get_current): * src/totem-playlist.h: * src/totem.c: (totem_get_nice_name_for_stream), (totem_action_set_playlist_index), (totem_action_remote), (totem_action_remote_set_setting), (totem_action_remote_get_setting), (totem_is_paused): * src/totem.h: Add a number of externally callable functions to allow the Bemused plugin to call * configure.in: * src/plugins/bemused/*: Add a Bemused Server plugin svn path=/trunk/; revision=4432
* Use the play and pause icons in the playlist to show the current state, asBastien Nocera2007-04-171-1/+7
| | | | | | | | | | | | | | | | | | | | | | 2007-04-17 Bastien Nocera <hadess@hadess.net> * src/totem-playlist.c: (totem_playlist_set_reorderable), (set_playing_icon), (init_treeview), (totem_playlist_add_one_mrl), (totem_playlist_set_playing): * src/totem-playlist.h: * src/totem-remote.c: (totem_lirc_to_command): * src/totem-remote.h: * src/totem.c: (play_pause_set_label), (totem_action_stop), (totem_action_set_mrl_with_warning), (totem_action_remote), (playlist_changed_cb), (video_widget_create): Use the play and pause icons in the playlist to show the current state, as in Rhythmbox, adapted from patch by <jgoday@gmail.com> (Closes: #408402) Add --printvolume to get the current volume on the command-line svn path=/trunk/; revision=4236
* return TRUE in totem_playlist_clear when we've actually cleared anythingBastien Nocera2006-12-111-1/+1
| | | | | | | | | | | | | | 2006-12-11 Bastien Nocera <hadess@hadess.net> * src/totem-playlist.c: (totem_playlist_clear): * src/totem-playlist.h: return TRUE in totem_playlist_clear when we've actually cleared anything (ie. wasn't empty before) * src/totem.c: (totem_action_open_files_list), (update_media_menu_items): use the retval from totem_playlist_clear and only return TRUE if we actually added entries to the playlist. This means the first "open files" on startup gets the right retval and sets up the logo mode if none of the files passed added anything to the playlist (Closes: #384736)
* Patch from Christian Persch <chpe@cvs.gnome.org> to simplify the iconBastien Nocera2006-11-031-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | 2006-11-03 Bastien Nocera <hadess@hadess.net> * src/totem-playlist.c: (drag_begin_cb), (totem_playlist_style_set), (update_repeat_cb), (update_lockdown), (init_config), (totem_playlist_init), (totem_playlist_finalize), (totem_playlist_new), (totem_playlist_add_one_mrl), (totem_playlist_clear), (totem_playlist_get_current_mrl), (totem_playlist_get_current_title), (totem_playlist_get_current_metadata), (totem_playlist_has_previous_mrl), (totem_playlist_has_next_mrl), (totem_playlist_set_title), (totem_playlist_set_playing), (totem_playlist_set_previous), (totem_playlist_set_next), (totem_playlist_get_repeat), (totem_playlist_set_repeat), (totem_playlist_get_shuffle), (totem_playlist_set_shuffle), (totem_playlist_set_at_start), (totem_playlist_set_at_end), (totem_playlist_get_current), (totem_playlist_get_last), (totem_playlist_set_current), (totem_playlist_class_init): * src/totem-playlist.h: Patch from Christian Persch <chpe@cvs.gnome.org> to simplify the icon theme use, and fix a few nits (and catch left-overs from when TotemPlaylist was GtkPlaylist, circa 2003) (Closes: #370028)
* - remove useless debug - force setting the playlist title when we'reBastien Nocera2006-09-111-1/+2
| | | | | | | | | | | | | | | | | | | 2006-09-11 Bastien Nocera <hadess@hadess.net> * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_has_next_track), (bacon_video_widget_has_previous_track): * src/backend/bacon-video-widget-xine.c: (bacon_video_widget_has_next_track), (bacon_video_widget_has_previous_track): * src/backend/bacon-video-widget.h: * src/totem-playlist.c: (totem_playlist_set_title): * src/totem-playlist.h: * src/totem.c: (totem_action_save_size), (on_title_change_event), (on_got_metadata_event), (update_buttons), (totem_setup_window): - remove useless debug - force setting the playlist title when we're playing a DVD - set Next/Previous properly when playing back DVDs
* Patch from Przemysław Grzegorczyk <pgrzegorczyk@gmail.com> to add XSPFBastien Nocera2006-05-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | 2006-05-16 Bastien Nocera <hadess@hadess.net> * data/mime-type-list.txt: * src/plparse/totem-pl-parser.c: (totem_pl_parser_write_m3u), (totem_pl_parser_write_xspf), (totem_pl_parser_write_with_title), (totem_pl_resolve_url), (totem_pl_parser_add_pls_with_contents), (parse_asx_entry), (parse_smil_video_entry), (parse_xspf_track), (parse_xspf_trackList), (parse_xspf_entries), (totem_pl_parser_add_xspf): * src/plparse/totem-pl-parser.h: * src/totem-playlist.c: (totem_playlist_save_current_playlist), (totem_playlist_save_current_playlist_ext), (totem_playlist_save_playlist), (totem_playlist_save_add_format_combo_box), (totem_playlist_save_files): * src/totem-playlist.h: Patch from Przemysław Grzegorczyk <pgrzegorczyk@gmail.com> to add XSPF save and load support to TotemPlaylistParser, and add a way to choose the playlist type when saving them. Also fixes using the wrong buffer when writing an m3u playlist, and adding the wrong URI when using relative URIs in PLS playlists.
* remove CD playback from the UI (as to avoid double-use with sound- juicerBastien Nocera2005-11-241-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | 2005-11-24 Bastien Nocera <hadess@hadess.net> * configure.in: * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_get_metadata_string), (bacon_video_widget_get_metadata): * src/backend/bacon-video-widget-gst.c: (bacon_video_widget_get_metadata_string), (bacon_video_widget_get_metadata): * src/backend/bacon-video-widget-xine.c: (bacon_video_widget_get_metadata_string), (bacon_video_widget_get_metadata): * src/backend/bacon-video-widget.h: * src/metadata-test.c: (on_got_metadata_event): * src/totem-menu.c: (add_device_to_menu): * src/totem-playlist.c: (totem_playlist_clear), (totem_playlist_set_title): * src/totem-playlist.h: * src/totem.c: (on_got_metadata_event): remove CD playback from the UI (as to avoid double-use with sound- juicer and Rhythmbox), as well as musicbrainz dependency
* updBastien Nocera2005-10-311-0/+1
| | | | | | | | | | | | | | 2005-10-31 Bastien Nocera <hadess@hadess.net> * NEWS: upd * src/totem-playlist.c: (treeview_row_changed), (totem_playlist_class_init): * src/totem-playlist.h: * src/totem.c: (totem_action_seek), (totem_action_seek_relative), (item_activated_cb), (totem_callback_connect), (playlist_widget_setup): Play the file from the beginning when the playlist item is double-clicked (Closes: #320272)
* Move the playlist dialog to a sidebar, remove the labels for the playlistBastien Nocera2005-07-041-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-04 Bastien Nocera <hadess@hadess.net> * data/Makefile.am: * data/playlist-16.png: * data/playlist-24.png: * data/playlist.glade: * data/totem.glade: * data/totem.schemas.in: * src/Makefile.am: * src/ev-sidebar.[ch]: * src/totem-menu.h: * src/totem-playlist.c: (totem_playlist_get_toplevel), (totem_playlist_error), (totem_playlist_add_files), (totem_playlist_save_files), (update_repeat_cb), (update_shuffle_cb), (init_config), (totem_playlist_init), (totem_playlist_new), (totem_playlist_set_repeat), (totem_playlist_set_shuffle), (totem_playlist_class_init): * src/totem-playlist.h: * src/totem-private.h: * src/totem-sidebar.c: (totem_sidebar_toggle), (on_sidebar_button_toggled), (on_show_sidebar1_activate), (toggle_sidebar_from_sidebar), (totem_sidebar_is_visible), (totem_sidebar_setup): * src/totem-sidebar.h: * src/totem-statusbar.c: (totem_statusbar_new_from_glade): * src/totem-statusbar.h: * src/totem-stock-icons.c: (totem_set_default_icons), (totem_named_icons_init): * src/totem-time-label.c: (totem_time_label_new_from_glade): * src/totem-time-label.h: * src/totem.c: (totem_action_fullscreen_toggle), (update_mrl_label), (totem_action_set_mrl_with_warning), (totem_action_handle_key), (totem_callback_connect), (playlist_widget_setup), (video_widget_create), (main): * src/totem.h: Move the playlist dialog to a sidebar, remove the labels for the playlist buttons
* Separate _update into _update and _reset, make _update act step-wise, alsoRonald Bultje2005-05-061-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/bacon-video-widget-properties.c: (bacon_video_widget_properties_reset), (bacon_video_widget_properties_update), (bacon_video_widget_properties_from_metadata), (bacon_video_widget_properties_new): * src/bacon-video-widget-properties.h: * src/totem-properties-view.c: (on_got_metadata_event), (totem_properties_view_set_location): Separate _update into _update and _reset, make _update act step-wise, also add _from_metadata (for audio-CDs). * configure.in: * src/totem-playlist.c: (init_treeview), (totem_playlist_clear), (totem_playlist_get_current_metadata), (totem_playlist_set_title), (totem_playlist_set_cd_metadata), (idle_set_metadata), (cd_metadata_thread), (totem_playlist_set_cdindex), (totem_playlist_class_init): * src/totem-playlist.h: * src/totem.c: (totem_action_set_mrl_with_warning), (on_playlist_change_name), (on_got_metadata_event), (totem_action_open_files_list), (totem_action_remote), (main): Add musicbrainz detection and CD-index-based metadata lookup code, and use this for audio-CD metadata. Expose this metadata in the API for use in the properties window and mainwindow, which fixes #302219.
* add interface helpers for glade files, and images, Add vim bits to the gstBastien Nocera2005-01-121-2/+1
| | | | | | | | | | | | | | | | | | | 2005-01-12 Bastien Nocera <hadess@hadess.net> * src/Makefile.am: * src/bacon-video-widget-gst.c: * src/totem-interface.c: (totem_interface_error_dialog), (totem_interface_error), (totem_interface_error_blocking), (totem_interface_load), (totem_interface_load_pixbuf), (totem_interface_get_full_path): * src/totem-interface.h: * src/totem-playlist.c: (totem_playlist_new): * src/totem-playlist.h: * src/totem-uri.h: * src/totem.c: (totem_action_error), (totem_action_error_and_exit), (on_open_location1_activate), (main): * src/totem.h: add interface helpers for glade files, and images, Add vim bits to the gst widget
* Create a generic playlist clearing function that takes a GCompareFunc toBastien Nocera2005-01-101-0/+3
| | | | | | | | | | | | | | | | | | | | 2005-01-10 Bastien Nocera <hadess@hadess.net> * src/totem-playlist.c: (totem_playlist_clear_with_compare), (totem_playlist_compare_with_prefix), (totem_playlist_clear_with_prefix), (totem_playlist_compare_with_volume), (totem_playlist_clear_with_gnome_vfs_volume): Create a generic playlist clearing function that takes a GCompareFunc to match playlist items * src/totem-playlist.h: * src/totem-private.h: * src/totem-uri.c: (totem_create_full_path), (totem_action_on_unmount), (totem_setup_file_monitoring): * src/totem-uri.h: * src/totem.c: (totem_action_exit), (main): Remove from the playlist all the items that are on a volume that's getting unmounted (Closes: #153209)
* merge totem_action_previous and totem_action_next intoBastien Nocera2005-01-031-0/+7
| | | | | | | | | | 2005-01-03 Bastien Nocera <hadess@hadess.net> * NEWS: * src/totem-playlist.h: * src/totem.c: (totem_action_direction), (totem_action_previous), (totem_action_next): merge totem_action_previous and totem_action_next into totem_action_direction