[MPlayer-cvslog] r38065 - trunk/gui/dialog/menu.c
ib
subversion at mplayerhq.hu
Thu Apr 12 12:34:27 EEST 2018
Author: ib
Date: Thu Apr 12 12:34:27 2018
New Revision: 38065
Log:
Restrict the possibility to load a separate audio track.
Allow it only if not already playing.
Modified:
trunk/gui/dialog/menu.c
Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c Thu Apr 12 12:12:55 2018 (r38064)
+++ trunk/gui/dialog/menu.c Thu Apr 12 12:34:27 2018 (r38065)
@@ -523,7 +523,8 @@ GtkWidget * CreatePopUpMenu( int wType )
AddMenuItem( SubMenu, tv_png, MSGTR_GUI_TV, evPlayTV );
#endif
AddSeparator( SubMenu );
- AddMenuItem( SubMenu, audio_track_load_png, MSGTR_GUI_AudioTrack"...", evLoadAudioFile );
+ D = AddMenuItem( SubMenu, audio_track_load_png, MSGTR_GUI_AudioTrack"...", evLoadAudioFile );
+ gtk_widget_set_sensitive( D, !guiInfo.Playing );
AddMenuItem( SubMenu, subtitle_load_png, MSGTR_GUI_Subtitle"...", evLoadSubtitle );
SubMenu=AddSubMenu( Menu, play_png, MSGTR_GUI_Playback );
D = AddMenuItem( SubMenu, play_png, MSGTR_GUI_Play, evPlay );
More information about the MPlayer-cvslog
mailing list