summaryrefslogtreecommitdiff
path: root/src/totem-menu.h
Commit message (Collapse)AuthorAgeFilesLines
* all: Clean up headersBastien Nocera2022-03-311-8/+1
| | | | Use #pragma once and remove G_BEGIN_DECLS/G_END_DECLS
* backend: Move more sub/lang generation inside backendBastien Nocera2022-02-111-0/+6
| | | | | | Instead of letting the front-end handle magic numbers for no subtitle, or automatic lang selection, add those directly to the backend, and export an opaque "id" for the front-end to use.
* menu: Split updating subtitles and languages menusBastien Nocera2022-02-111-1/+2
|
* backend: Move subtitles/languages list caching to video widgetBastien Nocera2022-02-111-1/+0
| | | | | | | | | | | | Instead of having the front-end keep track of track lists, and compare them, keep them inside the video widget. This also fixes the old totem-menu code that didn't check for title equality when comparing lists. Note that this updates the subtitles and languages menu too often, as we're *always* updating the menu even when it hasn't changed. Fixes: becbe7f8ef61f51ccbbb228f248b85b02e1eeab9
* main: Re-add support for track with no languageBastien Nocera2019-02-181-1/+3
| | | | | This was what get_label_for_type() did, make sure not to lose that support.
* tests: Add a test for the language menu itemsBastien Nocera2019-02-161-0/+3
| | | | | To make sure that the display of language names and codecs never regresses.
* main: Register GActions earlyBastien Nocera2014-10-201-0/+1
| | | | | | Register the GActions early, so that they are available even when the main window isn't. This is necessary to make remote commands available on D-Bus.
* main: Remove GtkUIManager usageBastien Nocera2014-05-301-2/+0
| | | | Plenty of deprecated code gone.
* main: Remove recent menu entriesBastien Nocera2013-04-101-2/+0
| | | | | | They're now in the browse section of the Grilo plugin. https://bugzilla.gnome.org/show_bug.cgi?id=697237
* main: Remove recent functionalityBastien Nocera2012-07-151-4/+0
| | | | As it's moved to the recent plugin.
* main: Use grilo to list DVDs and co.Bastien Nocera2012-04-121-2/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673591
* main: Move application-wide menu items to app menuBastien Nocera2012-04-031-0/+2
| | | | | | Using GActionEntry https://bugzilla.gnome.org/show_bug.cgi?id=673098
* main: Don't poke at web servers for infoBastien Nocera2011-03-171-2/+3
| | | | | | | | | | | | 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
* Use playlist name to add to recent files for streamsBastien Nocera2009-09-111-1/+3
| | | | | | When playing a YouTube video, we probably won't be able to get any file information, so remember the display name, and use that in the recent files.
* Bug 578387 – Remaining API documentation additionsPhilip Withnall2009-04-301-2/+0
| | | | | | | | | | | | | | This adds a load of .h files to the ignore list, and documents the remaining functions which would be useful to plugins. It makes TOTEM_MAX_RECENT_ITEM_LEN private to totem-menu.c, since that was the only file which used it. It also removes a completely unused declaration of bacon_cd_selection_create from totem-preferences.h. See the changes to totem-sections.txt for the list of API I've considered useful to expose (by way of documentation) to plugins.
* Fix recent-menu not adding anything because it couldn't get a fastBastien Nocera2008-09-091-1/+1
| | | | | | | | | | | | | | | 2008-09-09 Bastien Nocera <hadess@hadess.net> * data/mime-type-list.txt: * src/totem-menu.c (totem_action_add_recent): * src/totem-menu.h: Fix recent-menu not adding anything because it couldn't get a fast mime-type for the file, (Closes: #551360), also fix addition of streams to the list, otherwise nothing to go in the "Open Location" dialogue svn path=/trunk/; revision=5660
* 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
* Patch from Philip Withnall <bugzilla@tecnocode.co.uk> to make sure remoteBastien Nocera2007-01-091-0/+2
| | | | | | | | | | | | | | | 2007-01-09 Bastien Nocera <hadess@hadess.net> * src/totem-menu.c: (totem_str_middle_truncate), (totem_recent_manager_changed_callback), (totem_action_add_recent): * src/totem-menu.h: * src/totem.c: (totem_action_open_location): Patch from Philip Withnall <bugzilla@tecnocode.co.uk> to make sure remote streams launched on the command-line appear in the "Open URL" dialogue (Closes: #394096) svn path=/trunk/; revision=3844
* Huge patch from Jan Arne Petersen <jpetersen@jpetersen.org> to move TotemBastien Nocera2006-09-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-09-11 Bastien Nocera <hadess@hadess.net> * configure.in: * data/Makefile.am: * data/popup.glade: * data/totem.glade: * src/Makefile.am: * src/egg-recent-item.c: * src/egg-recent-item.h: * src/egg-recent-model.c: * src/egg-recent-model.h: * src/egg-recent-util.c: * src/egg-recent-util.h: * src/egg-recent-view-gtk.c: * src/egg-recent-view-gtk.h: * src/egg-recent-view.c: * src/egg-recent-view.h: * src/totem-menu.c: (subtitles_changed_callback), (languages_changed_callback), (add_lang_action), (create_lang_actions), (totem_languages_update), (totem_subtitles_update), (on_recent_file_item_activated), (totem_compare_recent_items), (totem_recent_manager_changed_callback), (totem_setup_recent), (totem_action_add_recent), (on_play_disc_activate), (add_device_to_menu), (on_movie_menu_select), (totem_setup_play_disc), (open_action_callback), (open_location_action_callback), (eject_action_callback), (play_action_callback), (quit_action_callback), (take_screenshot_action_callback), (preferences_action_callback), (fullscreen_action_callback), (zoom_1_2_action_callback), (zoom_1_1_action_callback), (zoom_2_1_action_callback), (zoom_in_action_callback), (zoom_reset_action_callback), (zoom_out_action_callback), (next_angle_action_callback), (dvd_root_menu_action_callback), (dvd_title_menu_action_callback), (dvd_audio_menu_action_callback), (dvd_angle_menu_action_callback), (dvd_chapter_menu_action_callback), (next_chapter_action_callback), (previous_chapter_action_callback), (skip_to_action_callback), (skip_forward_action_callback), (skip_backwards_action_callback), (volume_up_action_callback), (volume_down_action_callback), (contents_action_callback), (about_action_callback), (repeat_mode_action_callback), (shuffle_mode_action_callback), (deinterlace_action_callback), (always_on_top_action_callback), (show_controls_action_callback), (show_sidebar_action_callback), (aspect_ratio_changed_callback), (totem_ui_manager_connect_proxy_callback), (totem_ui_manager_setup): * src/totem-menu.h: * src/totem-preferences.c: (deinterlace_changed_cb), (totem_setup_preferences): * src/totem-private.h: * src/totem-sidebar.c: (totem_sidebar_toggle), (toggle_sidebar_from_sidebar), (totem_sidebar_setup): * src/totem-sidebar.h: * src/totem-stock-icons.c: (totem_set_default_icons): * src/totem.c: (totem_action_menu_popup), (play_pause_set_label), (window_state_event_cb), (totem_action_open), (totem_action_open_location), (totem_action_take_screenshot), (totem_action_set_mrl_with_warning), (totem_action_zoom), (totem_action_toggle_aspect_ratio), (totem_action_show_help), (update_seekable), (commit_hide_skip_to), (totem_action_skip_to), (show_controls), (totem_action_toggle_controls), (playlist_repeat_toggle_cb), (playlist_shuffle_toggle_cb), (totem_action_handle_key_press), (update_media_menu_items), (update_buttons), (totem_callback_connect), (main): Huge patch from Jan Arne Petersen <jpetersen@jpetersen.org> to move Totem to GtkUIManager, instead of the old menus (Closes: #353560)
* Move the playlist dialog to a sidebar, remove the labels for the playlistBastien Nocera2005-07-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Only add/remove the menu items when the languages or audio tracks change,Bastien Nocera2005-04-011-0/+1
| | | | | | | | | | | | | | | 2005-04-01 Bastien Nocera <hadess@hadess.net> * src/totem-menu.c: (totem_sublang_equal_lists), (totem_languages_update), (totem_subtitles_update), (totem_sublang_update), (totem_sublang_exit): * src/totem-menu.h: * src/totem-private.h: * src/totem.c: (totem_action_exit): Only add/remove the menu items when the languages or audio tracks change, should avoid GtkMenu crappiness when the menu is opened and we switch to a different DVD chapter
* remove need for libnautilus-burn removed the CD selection widget removeBastien Nocera2005-03-211-0/+39
2005-03-21 Bastien Nocera <hadess@hadess.net> * configure.in: remove need for libnautilus-burn * data/totem.glade: removed the CD selection widget * data/totem.schemas.in: remove the mediadev key * src/Makefile.am: * src/totem-menu.c: (totem_g_list_deep_free), (on_sub_activate), (on_lang_activate), (add_item_to_menu), (create_submenu), (totem_sublang_update), (on_recent_file_activate), (totem_setup_recent), (totem_action_add_recent), (on_play_disc_activate), (fake_gnome_vfs_device_get_something), (add_device_to_menu), (on_movie_menu_select), (totem_setup_play_disc): * src/totem-menu.h: * src/totem-preferences.c: (totem_setup_preferences): * src/totem-sublang.c: * src/totem-sublang.h: * src/totem.c: (totem_action_set_mrl_and_play), (totem_callback_connect), (main): * src/totem.h: Rename totem-sublang.[ch] to totem-menu.[ch] and move the recent files setup there Adapted patch from Sam Morris <sam@robots.org.uk> to have a list of CD drives in the main movie menu, rather than a "Play Disc..." item (Helps: #167742)