From 3d7cd77982d79ff798a92ebe7f3c0b2a52042cdf Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 8 Feb 2014 22:43:54 +0000 Subject: Simplify local history interface. --- amiga/context_menu.c | 2 +- amiga/gui.c | 4 ++-- amiga/history_local.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'amiga') 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; -- cgit v1.2.3