diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-02-15 18:43:59 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-02-15 18:44:50 +0000 |
commit | a38a63a37ef8bdc62661d398fb485296c0bed470 (patch) | |
tree | 11a1279537f28f51de2fca4c410ecc9b96629a3d /beos/scaffolding.cpp | |
parent | a55957b1c975e96a60d96d9a70c3b64bf02f96fd (diff) | |
download | netsurf-a38a63a37ef8bdc62661d398fb485296c0bed470.tar.gz netsurf-a38a63a37ef8bdc62661d398fb485296c0bed470.tar.bz2 |
Make history internal to browser_window module.
Diffstat (limited to 'beos/scaffolding.cpp')
-rw-r--r-- | beos/scaffolding.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/beos/scaffolding.cpp b/beos/scaffolding.cpp index 628debc51..f2ede2529 100644 --- a/beos/scaffolding.cpp +++ b/beos/scaffolding.cpp @@ -52,8 +52,8 @@ #include <fs_attr.h> extern "C" { #include "content/content.h" +#include "desktop/browser_history.h" #include "desktop/browser_private.h" -#include "desktop/local_history.h" #include "desktop/gui.h" #include "desktop/netsurf.h" #include "desktop/plotters.h" @@ -973,17 +973,17 @@ void nsbeos_scaffolding_dispatch_event(nsbeos_scaffolding *scaffold, BMessage *m case B_NETPOSITIVE_BACK: case BROWSER_NAVIGATE_BACK: case 'back': - if (!history_back_available(bw->history)) + if (!browser_window_history_back_available(bw)) break; - history_back(bw->history, false); + browser_window_history_back(bw, false); nsbeos_window_update_back_forward(scaffold); break; case B_NETPOSITIVE_FORWARD: case BROWSER_NAVIGATE_FORWARD: case 'forw': - if (!history_forward_available(bw->history)) + if (!browser_window_history_forward_available(bw)) break; - history_forward(bw->history, false); + browser_window_history_forward(bw->history, false); nsbeos_window_update_back_forward(scaffold); break; case B_NETPOSITIVE_STOP: @@ -1300,8 +1300,8 @@ void nsbeos_window_update_back_forward(struct beos_scaffolding *g) if (!g->top_view->LockLooper()) return; - g->back_button->SetEnabled(history_back_available(bw->history)); - g->forward_button->SetEnabled(history_forward_available(bw->history)); + g->back_button->SetEnabled(browser_window_history_back_available(bw)); + g->forward_button->SetEnabled(browser_window_history_forward_available(bw)); g->top_view->UnlockLooper(); |