[vlc-commits] macosx: fixed playlist and close entries in the Window menu (close #6239)
Felix Paul Kühne
git at videolan.org
Fri Mar 9 13:55:52 CET 2012
vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Mar 9 13:55:00 2012 +0100| [f2724d6296737ac51352e041125dee5489438ae1] | committer: Felix Paul Kühne
macosx: fixed playlist and close entries in the Window menu (close #6239)
the playlist item automatically reveals the main window now, in case it is hidden. the close item correctly closes the detached video output window now, when using the gray ui style
(cherry picked from commit 77956b05910b44ee764815e08c0e5a52a0d984ed)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=f2724d6296737ac51352e041125dee5489438ae1
---
modules/gui/macosx/MainWindow.m | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 0ff4f63..8fe5755 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -635,6 +635,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (IBAction)togglePlaylist:(id)sender
{
+ if (![self isVisible])
+ {
+ [self makeKeyAndOrderFront: sender];
+ }
+
BOOL b_activeVideo = [[VLCMain sharedInstance] activeVideoPlayback];
if ( !b_splitview_removed && ( (([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0 && !b_activeVideo) || (b_nonembedded && b_activeVideo && sender != nil) ))
@@ -2249,7 +2254,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)performClose:(id)sender
{
- [[VLCMainWindow sharedInstance] performClose: sender];
+ if (b_dark_interface)
+ [[VLCMainWindow sharedInstance] performClose: sender];
+ else
+ [super performClose: sender];
}
- (void)performMiniaturize:(id)sender
More information about the vlc-commits
mailing list