diff options
Diffstat (limited to 'cocoa/NetSurfAppDelegate.m')
-rw-r--r-- | cocoa/NetSurfAppDelegate.m | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/cocoa/NetSurfAppDelegate.m b/cocoa/NetSurfAppDelegate.m index b37ff9a9b..2d15d05a3 100644 --- a/cocoa/NetSurfAppDelegate.m +++ b/cocoa/NetSurfAppDelegate.m @@ -19,6 +19,7 @@ #import "cocoa/NetSurfAppDelegate.h" #import "cocoa/SearchWindowController.h" #import "cocoa/PreferencesWindowController.h" +#import "cocoa/HistoryWindowController.h" #import "desktop/browser.h" #import "desktop/options.h" @@ -32,7 +33,7 @@ @implementation NetSurfAppDelegate -@synthesize historyWindow; +@synthesize history; @synthesize search; @synthesize preferences; @@ -58,11 +59,6 @@ browser_window_create( [urlAsString UTF8String], NULL, NULL, true, false ); } -- (void) awakeFromNib; -{ - [historyWindow setExcludedFromWindowsMenu: YES]; -} - - (IBAction) showSearchWindow: (id) sender; { if (search == nil) { @@ -102,6 +98,14 @@ [preferences showWindow: sender]; } +- (IBAction) showGlobalHistory: (id) sender; +{ + if (history == nil) { + [self setHistory: [[[HistoryWindowController alloc] init] autorelease]]; + } + [history showWindow: sender]; +} + // Application delegate methods - (BOOL) applicationOpenUntitledFile: (NSApplication *)sender; |