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

David Fuhrmann git at videolan.org
Fri Jan 13 14:23:51 CET 2012


vlc/vlc-1.2 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Jan 12 17:01:26 2012 +0100| [de75cf1dd28ad5800fb5a135ed6aaeb4e7fffed0] | committer: Jean-Baptiste Kempf

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>
(cherry picked from commit a6fcfb7702be958a60d60496d3cdfe0d4bf37d5d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=de75cf1dd28ad5800fb5a135ed6aaeb4e7fffed0
---

 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