From 81e295d8c94c3c2d7c6bcc3d71ae114b4d984ce6 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Tue, 1 Feb 2011 10:37:13 +0000 Subject: Using real path from options for the bookmarks file instead of hardcoded test string. svn path=/trunk/netsurf/; revision=11580 --- cocoa/NetsurfApp.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cocoa/NetsurfApp.m') diff --git a/cocoa/NetsurfApp.m b/cocoa/NetsurfApp.m index 0644c420f..6d881bb9d 100644 --- a/cocoa/NetsurfApp.m +++ b/cocoa/NetsurfApp.m @@ -44,7 +44,6 @@ #define NETSURF_HOMEPAGE "http://www.netsurf-browser.org/welcome/" #endif -static NSString *cocoa_get_user_path( NSString *fileName ) ; @implementation NetSurfApp @@ -56,7 +55,6 @@ static NSString *cocoa_get_user_path( NSString *fileName ) ; [defaults registerDefaults: [NSDictionary dictionaryWithObjectsAndKeys: cocoa_get_user_path( @"Cookies" ), kCookiesFileOption, cocoa_get_user_path( @"URLs" ), kURLsFileOption, - cocoa_get_user_path( @"Hotlist" ), kHotlistFileOption, [NSString stringWithUTF8String: NETSURF_HOMEPAGE], kHomepageURLOption, nil]]; @@ -134,7 +132,7 @@ static NSString *cocoa_get_preferences_path( void ) return netsurfPath; } -static NSString *cocoa_get_user_path( NSString *fileName ) +NSString *cocoa_get_user_path( NSString *fileName ) { return [cocoa_get_preferences_path() stringByAppendingPathComponent: fileName]; } -- cgit v1.2.3