filename | src/cocoaui/cocoa_prefs.c |
changeset | 736:a02d1475ccfd |
prev | 729:4cc913eabd3d |
next | 765:4cd066048203 |
author | nkeynes |
date | Mon Jul 14 07:44:42 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Re-indent everything consistently Fix include guards for consistency as well |
file | annotate | diff | log | raw |
1.1 --- a/src/cocoaui/cocoa_prefs.c Sun Jul 06 05:35:13 2008 +00001.2 +++ b/src/cocoaui/cocoa_prefs.c Mon Jul 14 07:44:42 2008 +00001.3 @@ -26,7 +26,8 @@1.4 NSDictionary *items;1.5 }1.6 - (NSToolbarItem *) createToolbarItem: (NSString *)id label: (NSString *) label1.7 - tooltip: (NSString *)tooltip icon: (NSString *)icon action: (SEL) action;1.8 + tooltip: (NSString *)tooltip icon: (NSString *)icon1.9 + action: (SEL) action;1.10 @end1.12 @implementation LxdreamPrefsToolbarDelegate1.13 @@ -46,7 +47,7 @@1.14 }1.16 - (NSToolbarItem *) createToolbarItem: (NSString *)id label: (NSString *) label1.17 - tooltip: (NSString *)tooltip icon: (NSString *)icon action: (SEL) action1.18 +tooltip: (NSString *)tooltip icon: (NSString *)icon action: (SEL) action1.19 {1.20 NSToolbarItem *item = [[NSToolbarItem alloc] initWithItemIdentifier: id];1.21 [item setLabel: label];1.22 @@ -75,9 +76,9 @@1.23 }1.25 - (NSToolbarItem *) toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier1.26 - willBeInsertedIntoToolbar:(BOOL)flag1.27 +willBeInsertedIntoToolbar:(BOOL)flag1.28 {1.29 - return [items objectForKey: itemIdentifier];1.30 + return [items objectForKey: itemIdentifier];1.31 }1.32 - (void)paths_action: (id)sender1.33 {1.34 @@ -102,10 +103,10 @@1.35 - (id)initWithContentRect:(NSRect)contentRect1.36 {1.37 if( [super initWithContentRect: contentRect1.38 - styleMask: ( NSTitledWindowMask | NSClosableWindowMask |1.39 - NSMiniaturizableWindowMask | NSResizableWindowMask |1.40 - NSUnifiedTitleAndToolbarWindowMask )1.41 - backing: NSBackingStoreBuffered defer: NO ] == nil ) {1.42 + styleMask: ( NSTitledWindowMask | NSClosableWindowMask |1.43 + NSMiniaturizableWindowMask | NSResizableWindowMask |1.44 + NSUnifiedTitleAndToolbarWindowMask )1.45 + backing: NSBackingStoreBuffered defer: NO ] == nil ) {1.46 return nil;1.47 } else {1.48 [self setTitle: NS_("Preferences")];
.