summaryrefslogtreecommitdiff
path: root/cocoa/BrowserViewController.m
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-02-27 09:46:54 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-02-27 09:46:54 +0000
commite1901889698454018150bfc58f469708837dfd7a (patch)
tree68cbf63380769e92d56f9adfbe522087766c5f27 /cocoa/BrowserViewController.m
parent1842be491dffdbc0b0d2dc8e3891d13369824887 (diff)
downloadnetsurf-e1901889698454018150bfc58f469708837dfd7a.tar.gz
netsurf-e1901889698454018150bfc58f469708837dfd7a.tar.bz2
Local history view now is responsible for hiding itself after selecting a web page. Also gets redrawn when selecting other pages using the back/forward buttons.
svn path=/trunk/netsurf/; revision=11837
Diffstat (limited to 'cocoa/BrowserViewController.m')
-rw-r--r--cocoa/BrowserViewController.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/cocoa/BrowserViewController.m b/cocoa/BrowserViewController.m
index 8a2bbf043..8f903c839 100644
--- a/cocoa/BrowserViewController.m
+++ b/cocoa/BrowserViewController.m
@@ -97,7 +97,6 @@
- (IBAction) goBack: (id) sender;
{
if (browser && history_back_available( browser->history )) {
- navigatedUsingBackForwards = YES;
history_back(browser, browser->history);
[self updateBackForward];
}
@@ -106,7 +105,6 @@
- (IBAction) goForward: (id) sender;
{
if (browser && history_forward_available( browser->history )) {
- navigatedUsingBackForwards = YES;
history_forward(browser, browser->history);
[self updateBackForward];
}
@@ -174,14 +172,14 @@ static inline bool compare_float( float a, float b )
- (void) updateBackForward;
{
+ [browserView updateHistory];
[self setCanGoBack: browser != NULL && history_back_available( browser->history )];
[self setCanGoForward: browser != NULL && history_forward_available( browser->history )];
}
- (void) contentUpdated;
{
- if (!navigatedUsingBackForwards) [browserView setHistoryVisible: NO];
- navigatedUsingBackForwards = NO;
+ [browserView updateHistory];
}
@end