diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-06-26 22:31:34 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-06-26 22:31:34 +0000 |
commit | 4d190d89ee4581ac0712b34095072455adad93b9 (patch) | |
tree | 9a87585468955e9eec4f7afb3fa1c6e2de00be91 /riscos/history.c | |
parent | 07df357289fe523350aec98f4bb7678128a416e4 (diff) | |
download | netsurf-4d190d89ee4581ac0712b34095072455adad93b9.tar.gz netsurf-4d190d89ee4581ac0712b34095072455adad93b9.tar.bz2 |
[project @ 2004-06-26 22:31:34 by rjw]
Visual representation of navigation features availble
svn path=/import/netsurf/; revision=1015
Diffstat (limited to 'riscos/history.c')
-rw-r--r-- | riscos/history.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/riscos/history.c b/riscos/history.c index 12949d59a..8655b76dc 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -610,3 +610,27 @@ void history_forward(struct browser_window *bw, struct history *history) history->current = history->current->forward_pref; browser_window_go_post(bw, history->current->url, 0, 0, false); } + + +/** + * Check whether it is pssible to go back in the history. + * + * \param history history of the window + * \return true if the history can go back, false otherwise + */ + +bool history_back_available(struct history *history) { + return (history && history->current->back); +} + + +/** + * Check whether it is pssible to go forwards in the history. + * + * \param history history of the window + * \return true if the history can go forwards, false otherwise + */ + +bool history_forward_available(struct history *history) { + return (history && history->current->forward_pref); +} |