From 6b369907878dce321f894db09375bb2438420935 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 19 Oct 2014 01:38:05 +0100 Subject: improve cocoa frontend to use proper API for browser_window access --- cocoa/PreferencesWindowController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa/PreferencesWindowController.m') diff --git a/cocoa/PreferencesWindowController.m b/cocoa/PreferencesWindowController.m index 54e7b91d0..f8a48499a 100644 --- a/cocoa/PreferencesWindowController.m +++ b/cocoa/PreferencesWindowController.m @@ -22,7 +22,7 @@ #import "cocoa/gui.h" #import "cocoa/BrowserViewController.h" -#import "desktop/browser_private.h" +#import "desktop/browser.h" #import "content/content.h" #import "utils/nsoption.h" #import "content/hlcache.h" @@ -39,7 +39,7 @@ - (IBAction) useCurrentPageAsHomepage: (id) sender; { struct browser_window *bw = [[(NetSurfApp *)NSApp frontTab] browser]; - const char *url = nsurl_access(hlcache_handle_get_url( bw->current_content )); + const char *url = nsurl_access(browser_window_get_url(bw)); [self setHomepageURL: [NSString stringWithUTF8String: url]]; } -- cgit v1.2.3