diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-09-02 22:41:04 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-09-02 22:41:04 +0100 |
commit | cf8ffa412a55a8884fdd8f348b3fb28108d59b6c (patch) | |
tree | ff9a998daae20f16a3537d78bd141ea662863cf8 /amiga/context_menu.c | |
parent | e9f65ff9cb60c94b43d4b875892918b90fb2a067 (diff) | |
download | netsurf-cf8ffa412a55a8884fdd8f348b3fb28108d59b6c.tar.gz netsurf-cf8ffa412a55a8884fdd8f348b3fb28108d59b6c.tar.bz2 |
Remove old hotlist, cookies, and history_global_core modules.
New versions of expand/collapse node functions for these modules aren't yet implemented.
Diffstat (limited to 'amiga/context_menu.c')
-rw-r--r-- | amiga/context_menu.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/amiga/context_menu.c b/amiga/context_menu.c index 4d4d73aec..5a3da5566 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -41,7 +41,7 @@ #include "amiga/utf8.h" #include "desktop/browser_private.h" #include "desktop/local_history.h" -#include "desktop/hotlist_old.h" +#include "desktop/hotlist.h" #include "desktop/searchweb.h" #include "desktop/textinput.h" #include "render/form.h" @@ -767,7 +767,14 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved case CMID_URLHOTLIST: case CMID_PAGEHOTLIST: - hotlist_old_add_page(userdata); + { + nsurl *nsurl; + if (nsurl_create(url, &nsurl) != NSERROR_OK) + break; + + hotlist_add_url(nsurl); + nsurl_unref(nsurl); + } break; case CMID_FRAMECOPYURL: @@ -1215,7 +1222,7 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r break; case CMID_TREE_EDITFOLDER: - hotlist_old_edit_selected(); + hotlist_edit_selection(); break; case CMID_TREE_EDITTITLE: @@ -1227,11 +1234,11 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r break; case CMID_TREE_NEWFOLDER: - hotlist_old_add_folder(true); + hotlist_add_folder(NULL, false, 0); break; case CMID_TREE_NEWITEM: - hotlist_old_add_entry(true); + hotlist_add_entry(NULL, NULL, false, 0); break; case CMID_TREE_SETDEFAULT: |