mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Formatting.
This commit is contained in:
parent
323e65b3f7
commit
608acebf37
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
|
||||||
@interface GLFWApplication : NSApplication
|
@interface GLFWApplication : NSApplication
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@ -119,21 +120,21 @@ static NSString* findAppName(void)
|
|||||||
//========================================================================
|
//========================================================================
|
||||||
static void setUpMenuBar(void)
|
static void setUpMenuBar(void)
|
||||||
{
|
{
|
||||||
NSString *appName = findAppName();
|
NSString* appName = findAppName();
|
||||||
|
|
||||||
NSMenu *bar = [[NSMenu alloc] init];
|
NSMenu* bar = [[NSMenu alloc] init];
|
||||||
[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];
|
||||||
|
|
||||||
[appMenu addItemWithTitle:[NSString stringWithFormat:@"About %@", appName]
|
[appMenu addItemWithTitle:[NSString stringWithFormat:@"About %@", appName]
|
||||||
action:@selector(orderFrontStandardAboutPanel:)
|
action:@selector(orderFrontStandardAboutPanel:)
|
||||||
keyEquivalent:@""];
|
keyEquivalent:@""];
|
||||||
[appMenu addItem:[NSMenuItem separatorItem]];
|
[appMenu addItem:[NSMenuItem separatorItem]];
|
||||||
NSMenu *servicesMenu = [[NSMenu alloc] init];
|
NSMenu* servicesMenu = [[NSMenu alloc] init];
|
||||||
[NSApp setServicesMenu:servicesMenu];
|
[NSApp setServicesMenu:servicesMenu];
|
||||||
[[appMenu addItemWithTitle:@"Services"
|
[[appMenu addItemWithTitle:@"Services"
|
||||||
action:NULL
|
action:NULL
|
||||||
@ -154,9 +155,9 @@ static void setUpMenuBar(void)
|
|||||||
action:@selector(terminate:)
|
action:@selector(terminate:)
|
||||||
keyEquivalent:@"q"];
|
keyEquivalent:@"q"];
|
||||||
|
|
||||||
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"];
|
||||||
[NSApp setWindowsMenu:windowMenu];
|
[NSApp setWindowsMenu:windowMenu];
|
||||||
[windowMenuItem setSubmenu:windowMenu];
|
[windowMenuItem setSubmenu:windowMenu];
|
||||||
|
|
||||||
@ -216,7 +217,7 @@ int _glfwPlatformInit(void)
|
|||||||
// Close window, if open, and shut down GLFW
|
// Close window, if open, and shut down GLFW
|
||||||
//========================================================================
|
//========================================================================
|
||||||
|
|
||||||
int _glfwPlatformTerminate( void )
|
int _glfwPlatformTerminate(void)
|
||||||
{
|
{
|
||||||
// TODO: Probably other cleanup
|
// TODO: Probably other cleanup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user