path: root/amiga/hotlist.c
diff options
authorChris Young <>2008-10-14 22:43:02 +0000
committerChris Young <>2008-10-14 22:43:02 +0000
commit1d8bbfae4cde28e9102ee0ed020ac28f499c1d59 (patch)
treec371325f7c62122e9a167dbdcd640150904a9d86 /amiga/hotlist.c
parenta55c1f6e41bb1f42bd82c7554d38146ac5570ecd (diff)
Implemented the ability to add hotlist entries to the Hotlist menu. Modified the
default Hotlist links so they show up in the menu. Currently deleting items from the menu is dangerous. To add to the Hotlist menu, add a folder node called "Menu" to the root node of the hotlist tree. Items in this folder node up to a maximum (currently) of 40 items will be added to the Hotlist menu, within the limits of the Intuition menu system. Items in folders within the Menu folder node will be converted to subitems in the menu. Folder nodes with no entries and folder nodes at level 3 in the heirarchy will become menu items with no action. Items deeper will not be included in the menu at all. eg. Root | +- Menu | +- Netsurf | | | +- NetSurf Homepage | | | +- More NetSurf links | | | +- NetSurf bugtracker | +- Google Will look something like the following within the menu: |NetSurf ยป| - |NetSurf Homepage | |Google | |More NetSurf links| svn path=/trunk/netsurf/; revision=5577
Diffstat (limited to 'amiga/hotlist.c')
1 files changed, 6 insertions, 1 deletions
diff --git a/amiga/hotlist.c b/amiga/hotlist.c
index f5dc11a8d..9a3267790 100755
--- a/amiga/hotlist.c
+++ b/amiga/hotlist.c
@@ -100,7 +100,12 @@ void ami_hotlist_init(struct tree **hotlist)
hotlist_tree->root->expanded = true;
- node = tree_create_folder_node(hotlist_tree->root, "NetSurf");
+ node = tree_create_folder_node(hotlist_tree->root, "Menu");
+ if (!node)
+ node = hotlist_tree->root;
+ node = tree_create_folder_node(node, "NetSurf");
if (!node)
node = hotlist_tree->root;