diff options
author | Steve Fryatt <stevef@netsurf-browser.org> | 2013-12-30 12:36:24 +0000 |
---|---|---|
committer | Steve Fryatt <stevef@netsurf-browser.org> | 2013-12-30 12:36:24 +0000 |
commit | b8dd4f282b521f881f33841a9e3bb101f933c349 (patch) | |
tree | 867771af6bafdac145f3dfe77f2e00221bdd5612 /riscos/hotlist.c | |
parent | f825521072ed7e459e7fa465cf66efd24f5feb76 (diff) | |
download | netsurf-b8dd4f282b521f881f33841a9e3bb101f933c349.tar.gz netsurf-b8dd4f282b521f881f33841a9e3bb101f933c349.tar.bz2 |
Bring hotlist icon event handling in line with other toolbar actions.
- Make hotlist icon return click events to clients.
- Move URL add and remove code into browser window toolbar event handler.
- Pass hotlist icon URL add/remove via RISC OS hotlist interface.
Diffstat (limited to 'riscos/hotlist.c')
-rw-r--r-- | riscos/hotlist.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/riscos/hotlist.c b/riscos/hotlist.c index 7b5762fad..cb014b572 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -596,6 +596,22 @@ void ro_gui_hotlist_add_cleanup(void) } +/** + * Remove a URL from the hotlist. This will be passed on to the core hotlist, + * unless we're configured to use external hotlists in which case we ignore it. + * + * \param *url The URL to be removed. + */ + +void ro_gui_hotlist_remove_page(nsurl *url) +{ + if (url == NULL || nsoption_bool(external_hotlists)) + return; + + hotlist_remove_url(url); +} + + #if 0 /** * Handle URL dropped on hotlist |