summaryrefslogtreecommitdiff
path: root/riscos/hotlist.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-09-03 12:36:55 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-09-03 12:36:55 +0100
commitf2b4a7a997b8fc952ab96cadb68477ee5d5a434a (patch)
tree0e4da8cb7fb0a3deb16b519096322e4911fdc7c3 /riscos/hotlist.c
parent11b784a16772bc396ccca60acac6402f88a82ca7 (diff)
downloadnetsurf-f2b4a7a997b8fc952ab96cadb68477ee5d5a434a.tar.gz
netsurf-f2b4a7a997b8fc952ab96cadb68477ee5d5a434a.tar.bz2
Port to new recursive expand/contract functions.
Diffstat (limited to 'riscos/hotlist.c')
-rw-r--r--riscos/hotlist.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/riscos/hotlist.c b/riscos/hotlist.c
index 73c800280..d00e72479 100644
--- a/riscos/hotlist.c
+++ b/riscos/hotlist.c
@@ -231,19 +231,19 @@ void ro_gui_hotlist_toolbar_click(button_bar_action action)
break;
case TOOLBAR_BUTTON_EXPAND:
- hotlist_old_expand_addresses();
+ hotlist_expand(false);
break;
case TOOLBAR_BUTTON_COLLAPSE:
- hotlist_old_collapse_addresses();
+ hotlist_contract(false);
break;
case TOOLBAR_BUTTON_OPEN:
- hotlist_old_expand_directories();
+ hotlist_expand(true);
break;
case TOOLBAR_BUTTON_CLOSE:
- hotlist_old_collapse_directories();
+ hotlist_contract(true);
break;
case TOOLBAR_BUTTON_LAUNCH:
@@ -372,22 +372,22 @@ bool ro_gui_hotlist_menu_select(wimp_w w, wimp_i i, wimp_menu *menu,
hotlist_add_entry(NULL, NULL, false, 0);
return true;
case TREE_EXPAND_ALL:
- hotlist_old_expand_all();
+ hotlist_expand(false);
return true;
case TREE_EXPAND_FOLDERS:
- hotlist_old_expand_directories();
+ hotlist_expand(true);
return true;
case TREE_EXPAND_LINKS:
- hotlist_old_expand_addresses();
+ hotlist_expand(false);
return true;
case TREE_COLLAPSE_ALL:
- hotlist_old_collapse_all();
+ hotlist_contract(true);
return true;
case TREE_COLLAPSE_FOLDERS:
- hotlist_old_collapse_directories();
+ hotlist_contract(true);
return true;
case TREE_COLLAPSE_LINKS:
- hotlist_old_collapse_addresses();
+ hotlist_contract(false);
return true;
case TREE_SELECTION_EDIT:
hotlist_edit_selection();
@@ -541,7 +541,7 @@ static void ro_gui_hotlist_addurl_bounce(wimp_message *message)
if (nsurl_create(hotlist_url, &nsurl) != NSERROR_OK)
return;
- hotlist_add_page(nsurl);
+ hotlist_add_url(nsurl);
nsurl_unref(nsurl);
}