[vlc-commits] macosx: proper menu validation for all menus
David Fuhrmann
git at videolan.org
Fri Jan 13 11:45:18 CET 2012
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Jan 12 17:01:26 2012 +0100| [a6fcfb7702be958a60d60496d3cdfe0d4bf37d5d] | committer: Felix Paul Kühne
macosx: proper menu validation for all menus
Especially this fixes validation for audio and playback menus.
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6fcfb7702be958a60d60496d3cdfe0d4bf37d5d
---
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
More information about the vlc-commits
mailing list