[vlc-devel] [PATCH] macosx: proper menu validation for all menus

David Fuhrmann david.fuhrmann at googlemail.com
Thu Jan 12 17:01:26 CET 2012


Especially this fixes validation for audio and playback menus.
---
 modules/gui/macosx/controls.m |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/controls.m b/modules/gui/macosx/controls.m
index 51a61b7..bf40882 100644
--- a/modules/gui/macosx/controls.m
+++ b/modules/gui/macosx/controls.m
@@ -37,6 +37,7 @@
 #import "open.h"
 #import "controls.h"
 #import "playlist.h"
+#import "MainMenu.h"
 #import "CoreInteraction.h"
 #import <vlc_keys.h>
 
@@ -403,3 +404,12 @@
 }
 
 @end
+
+ at implementation VLCControls (NSMenuValidation)
+
+- (BOOL)validateMenuItem:(NSMenuItem *)o_mi
+{
+    return [[VLCMainMenu sharedInstance] validateMenuItem:o_mi];
+}
+
+ at end
-- 
1.7.5.4




More information about the vlc-devel mailing list