diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-05-28 22:07:33 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-05-28 22:07:33 +0100 |
commit | 6b997431d34d3711c62cf4bfe7f3456f45072273 (patch) | |
tree | ec809dd85c4178d08492d449429be73c5b98a958 /frontends/riscos/window.c | |
parent | f1fdd93ffda5181f325905c8509a2bea9d78eb41 (diff) | |
download | netsurf-6b997431d34d3711c62cf4bfe7f3456f45072273.tar.gz netsurf-6b997431d34d3711c62cf4bfe7f3456f45072273.tar.bz2 |
update RISC OS frontend to use core window for local history
Diffstat (limited to 'frontends/riscos/window.c')
-rw-r--r-- | frontends/riscos/window.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c index 3496d4b48..de0fcab2b 100644 --- a/frontends/riscos/window.c +++ b/frontends/riscos/window.c @@ -69,6 +69,7 @@ #include "riscos/buffer.h" #include "riscos/cookies.h" #include "riscos/dialog.h" +#include "riscos/local_history.h" #include "riscos/global_history.h" #include "riscos/gui.h" #include "riscos/gui/status_bar.h" @@ -3947,13 +3948,22 @@ void ro_gui_window_action_new_window(struct gui_window *g) /** * Open a local history pane for a browser window. * - * \param *g The browser window to act on. + * \param g The browser window to act on. */ -void ro_gui_window_action_local_history(struct gui_window *g) +void ro_gui_window_action_local_history(struct gui_window *gw) { - if (g != NULL && g->bw != NULL) - ro_gui_history_open(g, true); + nserror res; + + if ((gw == NULL) || (gw->bw == NULL)) { + return; + } + + res = ro_gui_local_history_present(gw->window, gw->bw); + + if (res != NSERROR_OK) { + ro_warn_user(messages_get_errorcode(res), 0); + } } |