diff options
author | Steve Fryatt <stevef@netsurf-browser.org> | 2013-12-30 15:41:38 +0000 |
---|---|---|
committer | Steve Fryatt <stevef@netsurf-browser.org> | 2013-12-30 15:41:38 +0000 |
commit | 6300c7ed90b472dc9a5f21d8054fd2e2689c8c9a (patch) | |
tree | 29969a49d4c25af43ca9c1ad3e5ce58409850e3c /riscos/hotlist.c | |
parent | 1019692b882860bcae923fedb23269cbd2f0121b (diff) | |
download | netsurf-6300c7ed90b472dc9a5f21d8054fd2e2689c8c9a.tar.gz netsurf-6300c7ed90b472dc9a5f21d8054fd2e2689c8c9a.tar.bz2 |
Tidy up hotlist icon interfaces and make consistant with rest of toolbar.
Diffstat (limited to 'riscos/hotlist.c')
-rw-r--r-- | riscos/hotlist.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/riscos/hotlist.c b/riscos/hotlist.c index cb014b572..3350ffb8b 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -612,6 +612,24 @@ void ro_gui_hotlist_remove_page(nsurl *url) } +/** + * Report whether the hotlist contains a given URL. This will be passed on to + * the core hotlist, unless we're configured to use an external hotlist in which + * case we always report false. + * + * \param *url The URL to be tested. + * \return true if the hotlist contains the URL; else false. + */ + +bool ro_gui_hotlist_has_page(nsurl *url) +{ + if (url == NULL || nsoption_bool(external_hotlists)) + return false; + + return hotlist_has_url(url); +} + + #if 0 /** * Handle URL dropped on hotlist |