vlc | branch: master | Zoran Turalija <[email protected]> | Tue Apr 23 10:50:31 2013 +0200| [0dc62cd19df05a17c2537d16cc23ec071e983ced] | committer: Rémi Denis-Courmont
hotkeys: Added OSD messages for toggle repeat playlist action. Resolves part of ticket #7933 Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0dc62cd19df05a17c2537d16cc23ec071e983ced --- modules/control/hotkeys.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index 8589f3f..be13004 100644 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -186,8 +186,12 @@ static int PutAction( intf_thread_t *p_intf, int i_action ) break; case ACTIONID_RANDOM: - var_ToggleBool( p_playlist, "random" ); + { + const bool state = var_ToggleBool( p_playlist, "random" ); + DisplayMessage( p_vout, _("Random: %s"), + vlc_gettext( state ? N_("On") : N_("Off") ) ); break; + } case ACTIONID_NEXT: DisplayMessage( p_vout, _("Next") ); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
