/*****************************************************************************
* 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>
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