summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-02-08 22:43:54 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-02-08 22:43:54 +0000
commit3d7cd77982d79ff798a92ebe7f3c0b2a52042cdf (patch)
tree43fb131d4c23d6d9f177c135291c4ad8ea102953 /amiga
parent2cd2e5b0541e7067c908e88f446b7cc56095253b (diff)
downloadnetsurf-3d7cd77982d79ff798a92ebe7f3c0b2a52042cdf.tar.gz
netsurf-3d7cd77982d79ff798a92ebe7f3c0b2a52042cdf.tar.bz2
Simplify local history interface.
Diffstat (limited to 'amiga')
-rw-r--r--amiga/context_menu.c2
-rw-r--r--amiga/gui.c4
-rwxr-xr-xamiga/history_local.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/amiga/context_menu.c b/amiga/context_menu.c
index c0c47ac6b..a1ce624e5 100644
--- a/amiga/context_menu.c
+++ b/amiga/context_menu.c
@@ -916,7 +916,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved
}
else
{
- history_go(gwin->bw, gwin->bw->history,
+ history_go(gwin->bw->history,
(struct history_entry *)userdata, false);
}
break;
diff --git a/amiga/gui.c b/amiga/gui.c
index 74aece866..3f937a6f2 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -1064,12 +1064,12 @@ void ami_gui_history(struct gui_window_2 *gwin, bool back)
if(back == true)
{
if(browser_window_back_available(gwin->bw))
- history_back(gwin->bw, gwin->bw->history);
+ history_back(gwin->bw->history, false);
}
else
{
if(browser_window_forward_available(gwin->bw))
- history_forward(gwin->bw, gwin->bw->history);
+ history_forward(gwin->bw->history, false);
}
ami_update_buttons(gwin);
diff --git a/amiga/history_local.c b/amiga/history_local.c
index b5aba3825..3eda8874b 100755
--- a/amiga/history_local.c
+++ b/amiga/history_local.c
@@ -210,13 +210,13 @@ bool ami_history_click(struct history_window *hw,uint16 code)
switch(code)
{
case SELECTUP:
- history_click(hw->bw,history_current,x,y,false);
+ history_click(history_current,x,y,false);
ami_history_redraw(hw);
ami_schedule_redraw(hw->bw->window->shared, true);
break;
case MIDDLEUP:
- history_click(hw->bw,history_current,x,y,true);
+ history_click(history_current,x,y,true);
ami_history_redraw(hw);
break;