Commit 5596ab87 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: split fspanel from main menu nib to an extra nib which not being...

macosx: split fspanel from main menu nib to an extra nib which not being distributed as the window is being created entirely in code and the nib representation is used for development and layouting only
parent 804df225
This diff is collapsed.
......@@ -59,7 +59,7 @@
IBOutlet id o_dropzone_lbl;
IBOutlet id o_dropzone_box;
IBOutlet VLCFSPanel *o_fspanel;
VLCFSPanel *o_fspanel;
IBOutlet id o_podcast_view;
IBOutlet id o_podcast_add_btn;
......
......@@ -319,6 +319,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_sidebar_view expandItem: libraryItem expandChildren: YES];
o_fspanel = [[VLCFSPanel alloc] initWithContentRect:NSMakeRect(110.,267.,549.,87.)
styleMask:NSTexturedBackgroundWindowMask
backing:NSBackingStoreBuffered
defer:YES];
/* make sure we display the desired default appearance when VLC launches for the first time */
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if (![defaults objectForKey:@"VLCFirstRun"]) {
......
......@@ -48,6 +48,7 @@
defer:(BOOL)flag
{
id win = [super initWithContentRect:contentRect styleMask:NSTexturedBackgroundWindowMask backing:bufferingType defer:flag];
self.contentView = [[VLCFSPanelView alloc] initWithFrame:contentRect];
[win setOpaque:NO];
[win setHasShadow: NO];
[win setBackgroundColor:[NSColor clearColor]];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment