summaryrefslogtreecommitdiff
path: root/src/totem-menu.c
Commit message (Collapse)AuthorAgeFilesLines
* main: Add F10 menu shortcut in browse viewBastien Nocera2022-02-171-0/+13
|
* main: Add shortcut for "Add local video"Bastien Nocera2022-02-171-1/+6
| | | | Co-authored: Sabri Ünal <libreajans@gmail.com>
* main: Add shortcut for "Add web video"Bastien Nocera2022-02-171-2/+7
| | | | Co-authored: Sabri Ünal <libreajans@gmail.com>
* main: Implement F1 in browser viewBastien Nocera2022-02-171-0/+2
|
* menu: Split menu item creationBastien Nocera2022-02-131-9/+13
|
* backend: Move more sub/lang generation inside backendBastien Nocera2022-02-111-17/+52
| | | | | | 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-4/+10
|
* backend: Move subtitles/languages list caching to video widgetBastien Nocera2022-02-111-56/+2
| | | | | | | | | | | | 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
* menu: Fix "Undetermined" appearing in menu itemsBastien Nocera2020-09-171-2/+4
| | | | | | | | | | | Due to recent changes in gst-plugins-base, some languages without a 2 letter-code are now getting mapped to languages using gst_tag_get_language_name(). Which isn't a problem, except that we were relying on gst_tag_get_language_name("und") returning NULL. Check for "und" manually so that track menus get named properly. See https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/785
* all: Update bugzilla links for current bugsBastien Nocera2019-02-231-1/+1
| | | | Update Bugzilla links for GitLab links when the bugs are still opened.
* main: Remove boolean in menu creation listBastien Nocera2019-02-181-8/+8
| | | | An enum is much easier to understand.
* main: Really fix translator commentBastien Nocera2019-02-181-1/+1
| | | | Commit d628a08c5c fixed it half-way, now also fix the menu name.
* main: Re-add support for track with no languageBastien Nocera2019-02-181-10/+27
| | | | | 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-1/+1
| | | | | To make sure that the display of language names and codecs never regresses.
* main: Show codec name for duplicated audio tracksBastien Nocera2019-02-161-50/+115
| | | | | | | | If we have 2 audio tracks for the same language, include the codec information to try and differentiate them. If the language/codec information is also used for 2 tracks, fallback to numbering the tracks. Closes: #214
* backend: Return more info about subtitles/audio tracksBastien Nocera2019-02-161-13/+17
| | | | | | | | | | Instead of simply returning a list of language codes for subtitles and audio tracks, return a struct contains both the language code and the audio codec. We will be able to use this to differentiate tracks better in the menus. There are no functional or UI changes in this commit, just an API extension.
* main: Fix "und" subtitle or audio track in menusBastien Nocera2019-02-161-1/+4
| | | | | | "und" means "Defaut languague" in Matroska containers: https://matroska.org/technical/specs/tagging/index.html so assume this means English, as it does in VLC.
* main: Fix copy/paste error in translator commentBastien Nocera2019-02-161-1/+1
| | | | | "None" only appears for subtitles selection, not for audio track selection.
* main: Remove app menuBastien Nocera2019-02-051-4/+0
| | | | | | | | | | | | | | Move items from the app menu to a menu button in the main window. This new hamburger menu will show in the content navigation/selection view and include the same items that were available in the app menu. As we do not want 2 hamburger menus in the player view, duplicate the preferences and keyboard shortcuts menu items in the player menu. See: https://gitlab.gnome.org/GNOME/Initiatives/wikis/App-Menu-Retirement Closes: #265
* all: Fix compile-time warning with GCC7Bastien Nocera2017-06-261-1/+1
| | | | | | | | | | | | | | | | | duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier] The warning was added in: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43651 just for this purpose. " int foo(const char const *data); ^~~~~~ 1 warning generated. [...] In that case it was clearly a mistake, because the author meant 'const char *const data' [...] "
* main: Add more shortcuts for the shortcuts help windowBastien Nocera2016-03-211-0/+7
|
* main: Add shortcuts help windowBastien Nocera2015-11-241-0/+9
| | | | | | It doesn't include shortcuts from optional plugins, yet. http://bugzilla.gnome.org/show_bug.cgi?id=757831
* main: Re-implement command-line handlingBastien Nocera2014-10-201-0/+3
| | | | | | | | | Instead of implementing command-line parsing ourselves, use the "handle-local-options" signal along with g_application_add_main_option_entries() to parse command-line options. Command-line options that work with a remote primary instance will be passed over D-Bus with the "remote-command" action.
* main: Register GActions earlyBastien Nocera2014-10-201-2/+6
| | | | | | 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: Add "remote-command" GActionBastien Nocera2014-10-201-0/+21
| | | | Which will be available on the bus for us to use.
* main: Remove GtkUIManager usageBastien Nocera2014-05-301-32/+29
| | | | Plenty of deprecated code gone.
* main: Remove unused clear_playlist_action_callback()Bastien Nocera2014-05-301-8/+0
|
* main: Remove properties accel in mainBastien Nocera2014-05-301-2/+0
| | | | It's already setup in the properties plugin.
* main: Use set_accels_for_action()Bastien Nocera2014-05-301-5/+9
| | | | Instead of add_accelerator() and remove_accelerator().
* main: Remove all the sidebar handling codeBastien Nocera2014-01-241-11/+0
|
* main: Remove last bits of Properties in mainBastien Nocera2014-01-241-9/+0
|
* main: Remove shuffle settingBastien Nocera2014-01-231-14/+0
| | | | | We now have a shuffle button in the grilo plugin, to allow shuffling the selection.
* core: Consistently prefix plugin-visible API with “totem_object_”Philip Withnall2013-08-041-12/+12
| | | | Helps: https://bugzilla.gnome.org/show_bug.cgi?id=626399
* main: Move subtitles/languages menu to cogwheelBastien Nocera2013-05-151-137/+98
|
* main: Move "Select Subtitles" to cogwheel menuBastien Nocera2013-05-151-8/+10
|
* main: Simplify language/subtitles menu creationBastien Nocera2013-05-141-14/+11
| | | | We have a single menu path to handle now.
* main: Remove right-click popupBastien Nocera2013-05-141-2/+2
| | | | | The cogwheel menu is visible in fullscreen and will contain pretty much everything the popup did.
* main: Remove obsolete commentBastien Nocera2013-05-141-1/+0
|
* main: Remove unused GtkAction handlerBastien Nocera2013-05-141-7/+0
|
* main: Remove unused constantBastien Nocera2013-05-141-2/+0
|
* main: Remove unused devices_action_groupBastien Nocera2013-05-141-2/+0
|
* main: Remove dead menu codeBastien Nocera2013-05-141-14/+0
| | | | The volume up/down menu items are gone.
* main: Fix next-angle/root-menu kbd shortcutsBastien Nocera2013-05-141-1/+1
|
* main: Move Eject to the cogwheel menuBastien Nocera2013-05-101-7/+10
|
* main: Move Properties menu item to cogwheelBastien Nocera2013-05-101-7/+10
|
* main: Add missing Ctrl+M DVD root menu shortcutBastien Nocera2013-05-101-0/+2
|
* main: Separate GActionEntries based on menuBastien Nocera2013-05-101-5/+10
|
* main: Move "Next angle" menu item to cogwheelBastien Nocera2013-05-101-7/+11
|
* main: Remove unused skip_{forward,backward}()Bastien Nocera2013-05-101-14/+0
|
* main: Move zoom menu item to cogwheelBastien Nocera2013-05-091-9/+15
|