diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-15 19:38:00 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-16 08:25:25 +0100 |
commit | 2dc99f9ae7d48d2dc7efb502774614bae176acc0 (patch) | |
tree | 8a16be38c3ae35e87fe4c81176a0c8231d4af104 | |
parent | 8b83456c02fbdc738bc25b244633eb27522b9119 (diff) | |
download | netsurf-2dc99f9ae7d48d2dc7efb502774614bae176acc0.tar.gz netsurf-2dc99f9ae7d48d2dc7efb502774614bae176acc0.tar.bz2 |
Allow the other front ends to use the hotlist test too.
-rwxr-xr-x | amiga/hotlist.c | 1 | ||||
-rwxr-xr-x | atari/hotlist.c | 1 | ||||
-rw-r--r-- | cocoa/BookmarksController.m | 2 | ||||
-rw-r--r-- | riscos/hotlist.c | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/amiga/hotlist.c b/amiga/hotlist.c index 073296771..9b9fd8076 100755 --- a/amiga/hotlist.c +++ b/amiga/hotlist.c @@ -56,6 +56,7 @@ void ami_hotlist_add_default_dirs(struct tree *tree) void ami_hotlist_initialise(const char *hotlist_file) { + tree_hotlist_path = hotlist_file; hotlist_window = ami_tree_create(hotlist_old_get_tree_flags(), NULL); if(!hotlist_window) return; diff --git a/atari/hotlist.c b/atari/hotlist.c index 77e2755e1..6c80db39c 100755 --- a/atari/hotlist.c +++ b/atari/hotlist.c @@ -128,6 +128,7 @@ void atari_hotlist_init(void) wind_set_str(handle, WF_NAME, (char*)messages_get("Hotlist")); gemtk_wm_set_toolbar(hl.window, tree, 0, 0); gemtk_wm_unlink(hl.window); + tree_hotlist_path = (const char*)&hl.path; hl.tv = atari_treeview_create( hotlist_old_get_tree_flags(), hl.window, diff --git a/cocoa/BookmarksController.m b/cocoa/BookmarksController.m index c86562f6e..a2c5a45c3 100644 --- a/cocoa/BookmarksController.m +++ b/cocoa/BookmarksController.m @@ -48,7 +48,7 @@ static const char *cocoa_hotlist_path( void ) - init; { if ((self = [super initWithWindowNibName: @"BookmarksWindow"]) == nil) return nil; - + tree_hotlist_path = cocoa_hotlist_path(); tree = [[Tree alloc] initWithFlags: hotlist_old_get_tree_flags()]; hotlist_old_initialise( [tree tree], cocoa_hotlist_path(), "directory.png" ); nodeForMenu = NSCreateMapTable( NSNonOwnedPointerMapKeyCallBacks, NSNonOwnedPointerMapValueCallBacks, 0 ); diff --git a/riscos/hotlist.c b/riscos/hotlist.c index fc97a0287..09f8c7165 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -128,7 +128,7 @@ void ro_gui_hotlist_postinitialise(void) } /* Create the treeview with the window and toolbar. */ - + tree_hotlist_path = nsoption_charp(hotlist_path); hotlist_window.tv = ro_treeview_create(hotlist_window.window, hotlist_window.toolbar, &ro_hotlist_treeview_callbacks, hotlist_old_get_tree_flags()); |