diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-01 10:37:13 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-01 10:37:13 +0000 |
commit | 81e295d8c94c3c2d7c6bcc3d71ae114b4d984ce6 (patch) | |
tree | 10a496e4914e4b448636d49d18af8b64376dfc11 /cocoa/NetsurfApp.m | |
parent | fac17d747b50712a42d1bc4b79576feac67fd2db (diff) | |
download | netsurf-81e295d8c94c3c2d7c6bcc3d71ae114b4d984ce6.tar.gz netsurf-81e295d8c94c3c2d7c6bcc3d71ae114b4d984ce6.tar.bz2 |
Using real path from options for the bookmarks file instead of hardcoded test string.
svn path=/trunk/netsurf/; revision=11580
Diffstat (limited to 'cocoa/NetsurfApp.m')
-rw-r--r-- | cocoa/NetsurfApp.m | 4 |
1 files changed, 1 insertions, 3 deletions
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]; } |