Commit 7e380bd6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: backport [23942] as it is save

parent 3c9f7013
...@@ -11,7 +11,8 @@ Security updates: ...@@ -11,7 +11,8 @@ Security updates:
- M3U Playlist Demuxer - M3U Playlist Demuxer
Mac OS X Interface: Mac OS X Interface:
* Improved Fullscreen behavior on multi-screen setups * Corrected fullscreen behavior on multi-screen setups
* Improved behavior of the Preferences window
Changes between 0.8.6c and 0.8.6d: Changes between 0.8.6c and 0.8.6d:
......
...@@ -106,6 +106,7 @@ struct intf_sys_t ...@@ -106,6 +106,7 @@ struct intf_sys_t
BOOL nib_wizard_loaded; /* reference to the wizard-nib */ BOOL nib_wizard_loaded; /* reference to the wizard-nib */
BOOL nib_extended_loaded; /* reference to the extended-nib */ BOOL nib_extended_loaded; /* reference to the extended-nib */
BOOL nib_bookmarks_loaded; /* reference to the bookmarks-nib */ BOOL nib_bookmarks_loaded; /* reference to the bookmarks-nib */
BOOL nib_prefs_loaded; /* reference to the prefs-nib */
BOOL nib_update_loaded; /* reference to the update-nib */ BOOL nib_update_loaded; /* reference to the update-nib */
IBOutlet id o_window; /* main window */ IBOutlet id o_window; /* main window */
......
...@@ -339,7 +339,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -339,7 +339,7 @@ static VLCMain *_o_sharedMainInstance = nil;
} }
o_about = [[VLAboutBox alloc] init]; o_about = [[VLAboutBox alloc] init];
o_prefs = nil; o_prefs = [[VLCPrefs alloc] init];
o_open = [[VLCOpen alloc] init]; o_open = [[VLCOpen alloc] init];
o_wizard = [[VLCWizard alloc] init]; o_wizard = [[VLCWizard alloc] init];
o_extended = nil; o_extended = nil;
...@@ -1552,8 +1552,6 @@ increase/decrease as long as the user holds the left/right, plus/minus button */ ...@@ -1552,8 +1552,6 @@ increase/decrease as long as the user holds the left/right, plus/minus button */
{ {
playlist_t * p_playlist; playlist_t * p_playlist;
vout_thread_t * p_vout; vout_thread_t * p_vout;
msg_Dbg( p_intf, "applicationWillTerminate" );
#define p_input p_intf->p_sys->p_input #define p_input p_intf->p_sys->p_input
if( p_input ) if( p_input )
...@@ -1598,6 +1596,9 @@ increase/decrease as long as the user holds the left/right, plus/minus button */ ...@@ -1598,6 +1596,9 @@ increase/decrease as long as the user holds the left/right, plus/minus button */
if( nib_about_loaded && o_about ) if( nib_about_loaded && o_about )
[o_about release]; [o_about release];
if( nib_prefs_loaded && o_prefs )
[o_prefs release];
if( nib_open_loaded && o_open ) if( nib_open_loaded && o_open )
[o_open release]; [o_open release];
...@@ -1772,19 +1773,16 @@ increase/decrease as long as the user holds the left/right, plus/minus button */ ...@@ -1772,19 +1773,16 @@ increase/decrease as long as the user holds the left/right, plus/minus button */
- (IBAction)viewAbout:(id)sender - (IBAction)viewAbout:(id)sender
{ {
if (!nib_about_loaded) if (!nib_about_loaded)
{
nib_about_loaded = [NSBundle loadNibNamed:@"About" owner:self]; nib_about_loaded = [NSBundle loadNibNamed:@"About" owner:self];
[o_about showPanel];
} else { [o_about showPanel];
[o_about showPanel];
}
} }
- (IBAction)viewPreferences:(id)sender - (IBAction)viewPreferences:(id)sender
{ {
/* GRUIIIIIIIK */ if (!nib_prefs_loaded)
if( o_prefs == nil ) nib_prefs_loaded = [NSBundle loadNibNamed:@"Preferences" owner:self];
o_prefs = [[VLCPrefs alloc] init];
[o_prefs showPrefs]; [o_prefs showPrefs];
} }
......
...@@ -108,9 +108,6 @@ static VLCPrefs *_o_sharedMainInstance = nil; ...@@ -108,9 +108,6 @@ static VLCPrefs *_o_sharedMainInstance = nil;
- (void)showPrefs - (void)showPrefs
{ {
/* load our nib (if not already loaded) */
[NSBundle loadNibNamed:@"Preferences" owner:self];
[o_prefs_window center]; [o_prefs_window center];
[o_prefs_window makeKeyAndOrderFront:self]; [o_prefs_window makeKeyAndOrderFront:self];
} }
......
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