From 2dc99f9ae7d48d2dc7efb502774614bae176acc0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 15 Aug 2013 19:38:00 +0100 Subject: Allow the other front ends to use the hotlist test too. --- amiga/hotlist.c | 1 + atari/hotlist.c | 1 + cocoa/BookmarksController.m | 2 +- 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()); -- cgit v1.2.3