diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-02-08 22:43:54 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-02-08 22:43:54 +0000 |
commit | 3d7cd77982d79ff798a92ebe7f3c0b2a52042cdf (patch) | |
tree | 43fb131d4c23d6d9f177c135291c4ad8ea102953 /windows | |
parent | 2cd2e5b0541e7067c908e88f446b7cc56095253b (diff) | |
download | netsurf-3d7cd77982d79ff798a92ebe7f3c0b2a52042cdf.tar.gz netsurf-3d7cd77982d79ff798a92ebe7f3c0b2a52042cdf.tar.bz2 |
Simplify local history interface.
Diffstat (limited to 'windows')
-rw-r--r-- | windows/gui.c | 4 | ||||
-rw-r--r-- | windows/localhistory.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/windows/gui.c b/windows/gui.c index 6ac4f6155..ee8b4ed1f 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -853,7 +853,7 @@ nsws_window_command(HWND hwnd, case IDM_NAV_BACK: if ((gw->bw != NULL) && (history_back_available(gw->bw->history))) { - history_back(gw->bw, gw->bw->history); + history_back(gw->bw->history, false); } nsws_window_update_forward_back(gw); break; @@ -861,7 +861,7 @@ nsws_window_command(HWND hwnd, case IDM_NAV_FORWARD: if ((gw->bw != NULL) && (history_forward_available(gw->bw->history))) { - history_forward(gw->bw, gw->bw->history); + history_forward(gw->bw->history, false); } nsws_window_update_forward_back(gw); break; diff --git a/windows/localhistory.c b/windows/localhistory.c index 0b298719f..d2be2c377 100644 --- a/windows/localhistory.c +++ b/windows/localhistory.c @@ -167,8 +167,7 @@ nsws_localhistory_event_callback(HWND hwnd, UINT msg, x = GET_X_LPARAM(lparam); y = GET_Y_LPARAM(lparam); - if (history_click(gw->bw, - gw->bw->history, + if (history_click(gw->bw->history, gw->localhistory->hscroll + x, gw->localhistory->vscroll + y, false)) { |