summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/gfx/cocoa.m14
1 files changed, 10 insertions, 4 deletions
diff --git a/bin/gfx/cocoa.m b/bin/gfx/cocoa.m
index 33252257..4837a386 100644
--- a/bin/gfx/cocoa.m
+++ b/bin/gfx/cocoa.m
@@ -121,13 +121,19 @@ int main(int argc, char *argv[]) {
 
     NSString *name = [[NSProcessInfo processInfo] processName];
     NSMenu *menu = [NSMenu new];
-    NSMenuItem *quit = [
-        [NSMenuItem alloc]
-        initWithTitle: [@"Quit " stringByAppendingString: name]
+    [
+        menu
+        addItemWithTitle: @"Close Window"
+        action: @selector(performClose:)
+        keyEquivalent: @"w"
+    ];
+    [menu addItem: [NSMenuItem separatorItem]];
+    [
+        menu
+        addItemWithTitle: [@"Quit " stringByAppendingString: name]
         action: @selector(terminate:)
         keyEquivalent: @"q"
     ];
-    [menu addItem: quit];
     NSMenuItem *menuItem = [NSMenuItem new];
     [menuItem setSubmenu: menu];
     [NSApp setMainMenu: [NSMenu new]];
4.1&id=cc1dbd1b5d610bd5e626f54d310f11cf47684ea1&follow=1'>Add submodules.sh and use it during buildsLars Hjemli 2007-05-11Added git as a submoduleLars Hjemli 2007-05-09Add support for downloading single blobsLars Hjemli 2007-05-08ui-view: show pathname if specified in querystringLars Hjemli 2007-05-08Update to libgit 1.5.2-rc2Lars Hjemli 2007-02-21Layout updateLars Hjemli 2007-02-08Make snapshot feature configurableLars Hjemli 2007-02-08Add support for snapshotsLars Hjemli 2007-02-05cgit v0.2Lars Hjemli 2007-02-05Add support for prefix and gitsrc arguments to 'make'Lars Hjemli 2007-02-04Update cgitrc templateLars Hjemli 2007-02-04Add support for lightweight tagsLars Hjemli 2007-02-04Read repo-info from /etc/cgitrcLars Hjemli 2007-02-04Do not die if tag has no messageLars Hjemli 2007-02-03Fix search for non-virtual urlsLars Hjemli 2007-01-28Update README with install/config informationLars Hjemli