[MPlayer-cvslog] r20217 - in trunk/Gui/win32: dialogs.h gui.c

vayne subversion at mplayerhq.hu
Sat Oct 14 22:50:08 CEST 2006


Author: vayne
Date: Sat Oct 14 22:50:08 2006
New Revision: 20217

Modified:
   trunk/Gui/win32/dialogs.h
   trunk/Gui/win32/gui.c

Log:
as per request, fullscreen and mute options have been added to the context menus.

Modified: trunk/Gui/win32/dialogs.h
==============================================================================
--- trunk/Gui/win32/dialogs.h	(original)
+++ trunk/Gui/win32/dialogs.h	Sat Oct 14 22:50:08 2006
@@ -120,6 +120,8 @@
 #define ID_ASPECT4           86
 #define ID_SUBWINDOW         87
 #define ID_TIMER             88
+#define ID_MUTE              89
+#define ID_FULLSCREEN        90
 
 /* gtk emulation */
 #define GTK_MB_FATAL         0x1

Modified: trunk/Gui/win32/gui.c
==============================================================================
--- trunk/Gui/win32/gui.c	(original)
+++ trunk/Gui/win32/gui.c	Sat Oct 14 22:50:08 2006
@@ -445,6 +445,12 @@
                     display_chapterselwindow(gui);
                     break;
 #endif
+                case ID_FULLSCREEN:
+                    mp_input_queue_cmd(mp_input_parse_cmd("vo_fullscreen"));
+                    break;
+                case ID_MUTE:
+                    mp_input_queue_cmd(mp_input_parse_cmd("mute"));
+                    break;
                 case ID_ASPECT1:
                     mp_input_queue_cmd(mp_input_parse_cmd("switch_ratio 1.777777"));
                     break;
@@ -950,6 +956,9 @@
                 case IDURL_OPEN:
                     display_openurlwindow(gui, 0);
                     break;
+                case ID_MUTE:
+                    mp_input_queue_cmd(mp_input_parse_cmd("mute"));
+                    break;
 #ifdef USE_SUB
                 case IDSUBTITLE_OPEN:
                     display_opensubtitlewindow(gui);
@@ -1208,6 +1217,8 @@
     AppendMenu(gui->trayplaybackmenu, MF_STRING, ID_NTRACK, "Next Track");
     AppendMenu(gui->trayplaybackmenu, MF_STRING, ID_SEEKF, "Seek Forwards");
     AppendMenu(gui->traymenu, MF_SEPARATOR, 0, 0);
+    AppendMenu(gui->traymenu, MF_STRING, ID_MUTE, "Toggle Mute");
+    AppendMenu(gui->traymenu, MF_SEPARATOR, 0, 0);
 #ifdef USE_SUB
     AppendMenu(gui->traymenu, MF_STRING, IDSUBTITLE_OPEN, "Open Subtitle");
 #endif
@@ -1237,6 +1248,9 @@
     AppendMenu(gui->submenu, MF_STRING, ID_NTRACK, "Next Track");
     AppendMenu(gui->submenu, MF_STRING, ID_SEEKF, "Seek Forwards");
     AppendMenu(gui->submenu, MF_SEPARATOR, 0, 0);
+    AppendMenu(gui->submenu, MF_STRING, ID_FULLSCREEN, "Toggle Fullscreen");
+    AppendMenu(gui->submenu, MF_STRING, ID_MUTE, "Toggle Mute");
+    AppendMenu(gui->submenu, MF_SEPARATOR, 0, 0);
     AppendMenu(gui->submenu, MF_STRING | MF_POPUP, (UINT) gui->aspectmenu, "Aspect Ratio");
     AppendMenu(gui->submenu, MF_STRING | MF_POPUP, (UINT) gui->subtitlemenu, "Subtitle Options");
     AppendMenu(gui->submenu, MF_STRING | MF_POPUP, (UINT) gui->dvdmenu, "DVD Options");



More information about the MPlayer-cvslog mailing list