[MPlayer-cvslog] r38074 - trunk/gui/dialog/menu.c

ib subversion at mplayerhq.hu
Thu Apr 12 16:00:10 EEST 2018


Author: ib
Date: Thu Apr 12 16:00:10 2018
New Revision: 38074

Log:
Restrict the possibility to load a subtitle.

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 15:57:35 2018	(r38073)
+++ trunk/gui/dialog/menu.c	Thu Apr 12 16:00:10 2018	(r38074)
@@ -525,7 +525,8 @@ GtkWidget * CreatePopUpMenu( int wType )
     AddSeparator( SubMenu );
     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 );
+    D = AddMenuItem( SubMenu, subtitle_load_png, MSGTR_GUI_Subtitle"...", evLoadSubtitle );
+    gtk_widget_set_sensitive( D, !guiInfo.Playing );
    SubMenu=AddSubMenu( Menu, play_png, MSGTR_GUI_Playback );
     D = AddMenuItem( SubMenu, play_png, MSGTR_GUI_Play, evPlay );
     F = AddMenuItem( SubMenu, play_pause_png, MSGTR_GUI_Pause, evPause );


More information about the MPlayer-cvslog mailing list