]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/misc.m
* intf.* : try to restore an a bit more intelligent behavior for the playlist toggle...
[vlc] / modules / gui / macosx / misc.m
index 946495b0e009cfed866a84b57c6d77ec91f146f9..a85213af28bcc98f65a1edecd75d5fa851325fa9 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * misc.m: code not specific to vlc
  *****************************************************************************
- * Copyright (C) 2003-2004 VideoLAN
+ * Copyright (C) 2003-2005 VideoLAN
  * $Id$
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
@@ -39,9 +39,7 @@
     self = [super initWithContentRect:contentRect styleMask:styleMask //& ~NSTitledWindowMask
     backing:backingType defer:flag];
 
-    o_size_with_playlist = [self frame].size;
-
-    [[[VLCMain sharedInstance] getPlaylist] updateTogglePlaylistState];
+    [[VLCMain sharedInstance] updateTogglePlaylistState];
 
     return( self );
 }
     return [[VLCMain sharedInstance] hasDefinedShortcutKey:o_event];
 }
 
-/*Stores the size the controller one resize, to be able to restore it when
-  toggling the playlist*/
-
-- (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize
-{
-    o_size_with_playlist = proposedFrameSize;
-
-    /*Callback to update the state of Playlist Toggle Button*/
-    [[[VLCMain sharedInstance] getPlaylist] updateTogglePlaylistState];
-
-    return proposedFrameSize;
-}
-
-- (NSSize)getSizeWithPlaylist
-{
-    return o_size_with_playlist;
-}
-
 @end