summaryrefslogtreecommitdiff
path: root/cocoa/BrowserView.m
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2011-05-12 17:31:55 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2011-05-12 17:31:55 +0000
commit092c62f0e01ae489baa50fa66a2045b680e15f50 (patch)
tree2c67c97005cb4fdcacb0049e95bb7701c97e2b61 /cocoa/BrowserView.m
parent6dfcd3558064082c1f30ac880fa19b2995da6527 (diff)
downloadnetsurf-092c62f0e01ae489baa50fa66a2045b680e15f50.tar.gz
netsurf-092c62f0e01ae489baa50fa66a2045b680e15f50.tar.bz2
Add code to open the source file into Xcode. Currently called by the context menu because I didn't want to dig the .xib files, feel free to move it to the View main menu.
svn path=/trunk/netsurf/; revision=12387
Diffstat (limited to 'cocoa/BrowserView.m')
-rw-r--r--cocoa/BrowserView.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/cocoa/BrowserView.m b/cocoa/BrowserView.m
index 2e0b0b87f..8cb16d799 100644
--- a/cocoa/BrowserView.m
+++ b/cocoa/BrowserView.m
@@ -559,6 +559,8 @@ static browser_mouse_state cocoa_mouse_flags_for_event( NSEvent *evt )
action: @selector(reloadPage:) keyEquivalent: @""];
[popupMenu addItemWithTitle: NSLocalizedString( @"Forward", @"Context menu" )
action: @selector(goForward:) keyEquivalent: @""];
+ [popupMenu addItemWithTitle: NSLocalizedString( @"View Source", @"Context menu" )
+ action: @selector(viewSource:) keyEquivalent: @""];
[NSMenu popUpContextMenu: popupMenu withEvent: event forView: self];