summaryrefslogtreecommitdiff
path: root/cocoa/BrowserViewController.m
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-01-28 18:26:34 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-01-28 18:26:34 +0000
commit672cb3741211f24404c556dba67b953a4414664e (patch)
tree0c3664b2404728dc289058d0b07c3fe579683dac /cocoa/BrowserViewController.m
parent48c6ba4b498a74c76d6e74db68c6cb82c378c3c7 (diff)
downloadnetsurf-672cb3741211f24404c556dba67b953a4414664e.tar.gz
netsurf-672cb3741211f24404c556dba67b953a4414664e.tar.bz2
Implemented context menu.
svn path=/trunk/netsurf/; revision=11520
Diffstat (limited to 'cocoa/BrowserViewController.m')
-rw-r--r--cocoa/BrowserViewController.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/cocoa/BrowserViewController.m b/cocoa/BrowserViewController.m
index 28c911457..b7589316f 100644
--- a/cocoa/BrowserViewController.m
+++ b/cocoa/BrowserViewController.m
@@ -154,6 +154,14 @@ static inline bool compare_float( float a, float b )
return !compare_float( browser->scale, (float)option_scale / 100.0 );
}
+ if (action == @selector( goBack: )) {
+ return canGoBack;
+ }
+
+ if (action == @selector( goForward: )) {
+ return canGoForward;
+ }
+
return YES;
}