Format code in kitty/cocoa_window.m a little
This commit is contained in:
@@ -118,7 +118,8 @@ get_dock_menu(id self UNUSED, SEL _cmd UNUSED, NSApplication *sender UNUSED) {
|
|||||||
if (!dockMenu) {
|
if (!dockMenu) {
|
||||||
GlobalMenuTarget *global_menu_target = [GlobalMenuTarget shared_instance];
|
GlobalMenuTarget *global_menu_target = [GlobalMenuTarget shared_instance];
|
||||||
dockMenu = [[NSMenu alloc] init];
|
dockMenu = [[NSMenu alloc] init];
|
||||||
NSMenuItem *newWindowItem = [dockMenu addItemWithTitle:@"New OS window"
|
NSMenuItem *newWindowItem =
|
||||||
|
[dockMenu addItemWithTitle:@"New OS window"
|
||||||
action:@selector(new_os_window:)
|
action:@selector(new_os_window:)
|
||||||
keyEquivalent:@""];
|
keyEquivalent:@""];
|
||||||
[newWindowItem setTarget:global_menu_target];
|
[newWindowItem setTarget:global_menu_target];
|
||||||
@@ -238,7 +239,9 @@ cocoa_create_global_menu(void) {
|
|||||||
[NSApp setMainMenu:bar];
|
[NSApp setMainMenu:bar];
|
||||||
|
|
||||||
NSMenuItem* appMenuItem =
|
NSMenuItem* appMenuItem =
|
||||||
[bar addItemWithTitle:@"" action:NULL keyEquivalent:@""];
|
[bar addItemWithTitle:@""
|
||||||
|
action:NULL
|
||||||
|
keyEquivalent:@""];
|
||||||
NSMenu* appMenu = [[NSMenu alloc] init];
|
NSMenu* appMenu = [[NSMenu alloc] init];
|
||||||
[appMenuItem setSubmenu:appMenu];
|
[appMenuItem setSubmenu:appMenu];
|
||||||
|
|
||||||
@@ -286,7 +289,9 @@ cocoa_create_global_menu(void) {
|
|||||||
[appMenu release];
|
[appMenu release];
|
||||||
|
|
||||||
NSMenuItem* windowMenuItem =
|
NSMenuItem* windowMenuItem =
|
||||||
[bar addItemWithTitle:@"" action:NULL keyEquivalent:@""];
|
[bar addItemWithTitle:@""
|
||||||
|
action:NULL
|
||||||
|
keyEquivalent:@""];
|
||||||
NSMenu* windowMenu = [[NSMenu alloc] initWithTitle:@"Window"];
|
NSMenu* windowMenu = [[NSMenu alloc] initWithTitle:@"Window"];
|
||||||
[windowMenuItem setSubmenu:windowMenu];
|
[windowMenuItem setSubmenu:windowMenu];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user