]> git.sesse.net Git - vlc/blobdiff - modules/gui/minimal_macosx/VLCMinimalVoutWindow.m
gui/*macosx: Don't rely on carbon or on old non 64 bits API when possible.
[vlc] / modules / gui / minimal_macosx / VLCMinimalVoutWindow.m
index f00b832058ea0989a206665c505aab3c90dbd197..8d998c9bf8a991607e72bcd236cc08a504e93380 100644 (file)
@@ -29,9 +29,6 @@
 #include "VLCOpenGLVoutView.h"
 #include "VLCMinimalVoutWindow.h"
 
-/* SetSystemUIMode, ... */
-#import <Carbon/Carbon.h>
-
 #import <Cocoa/Cocoa.h>
 
 @implementation VLCMinimalVoutWindow
 {
     fullscreen = YES;
     initialFrame = [self frame];
-    SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
+    [NSMenu setMenuBarVisible:NO];
     [self setFrame:[[self screen] frame] display:YES animate:YES];
 }
 
 - (void)leaveFullscreen
 {
     fullscreen = NO;
-    SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
+    [NSMenu setMenuBarVisible:YES];
     [self setFrame:initialFrame display:YES animate:YES];
 }