[MPlayer-cvslog] r38040 - in trunk: gui/dialog/menu.c help/help_mp-de.h help/help_mp-en.h

ib subversion at mplayerhq.hu
Wed Apr 4 17:59:22 EEST 2018


Author: ib
Date: Wed Apr  4 17:59:22 2018
New Revision: 38040

Log:
Add missing GUI messages evIncVolume and evDecVolume to the menu.

Modified:
   trunk/gui/dialog/menu.c

Changes in other areas also in this revision:
Modified:
   trunk/help/help_mp-de.h
   trunk/help/help_mp-en.h

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Wed Apr  4 17:53:48 2018	(r38039)
+++ trunk/gui/dialog/menu.c	Wed Apr  4 17:59:22 2018	(r38040)
@@ -453,6 +453,7 @@ GtkWidget * DVDAudioLanguageMenu;
 GtkWidget * DVDSubtitleLanguageMenu;
 GtkWidget * AspectMenu;
 GtkWidget * RotationMenu;
+GtkWidget * VolumeMenu;
 GtkWidget * VCDSubMenu;
 GtkWidget * VCDTitleMenu;
 GtkWidget * CDSubMenu;
@@ -716,6 +717,16 @@ GtkWidget * CreatePopUpMenu( int wType )
    }
 
   AddSeparator( Menu );
+  VolumeMenu = AddSubMenu( window1, (const char *) empty_xpm, Menu, MSGTR_Volume );
+  H = AddMenuItem( window1, (const char *) empty_xpm, VolumeMenu, MSGTR_GUI_Increase, evIncVolume );
+  D = AddMenuItem( window1, (const char *) empty_xpm, VolumeMenu, MSGTR_GUI_Decrease, evDecVolume );
+
+  if ( !guiInfo.AudioChannels )
+   {
+    gtk_widget_set_sensitive( H, FALSE );
+    gtk_widget_set_sensitive( D, FALSE );
+   }
+
   MenuItem=AddMenuCheckItem( window1, (const char*)sound_xpm, Menu,MSGTR_GUI_Mute,mixer->muted,evMute );
   if ( !guiInfo.AudioChannels ) gtk_widget_set_sensitive( MenuItem,FALSE );
 


More information about the MPlayer-cvslog mailing list