Search
lxdream.org :: lxdream/src/cocoaui/cocoa_prefs.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_prefs.c
changeset 736:a02d1475ccfd
prev729:4cc913eabd3d
next765:4cd066048203
author nkeynes
date Mon Jul 14 07:44:42 2008 +0000 (13 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 +0000
1.2 +++ b/src/cocoaui/cocoa_prefs.c Mon Jul 14 07:44:42 2008 +0000
1.3 @@ -26,7 +26,8 @@
1.4 NSDictionary *items;
1.5 }
1.6 - (NSToolbarItem *) createToolbarItem: (NSString *)id label: (NSString *) label
1.7 - tooltip: (NSString *)tooltip icon: (NSString *)icon action: (SEL) action;
1.8 + tooltip: (NSString *)tooltip icon: (NSString *)icon
1.9 + action: (SEL) action;
1.10 @end
1.11
1.12 @implementation LxdreamPrefsToolbarDelegate
1.13 @@ -46,7 +47,7 @@
1.14 }
1.15
1.16 - (NSToolbarItem *) createToolbarItem: (NSString *)id label: (NSString *) label
1.17 - tooltip: (NSString *)tooltip icon: (NSString *)icon action: (SEL) action
1.18 +tooltip: (NSString *)tooltip icon: (NSString *)icon action: (SEL) action
1.19 {
1.20 NSToolbarItem *item = [[NSToolbarItem alloc] initWithItemIdentifier: id];
1.21 [item setLabel: label];
1.22 @@ -75,9 +76,9 @@
1.23 }
1.24
1.25 - (NSToolbarItem *) toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier
1.26 - willBeInsertedIntoToolbar:(BOOL)flag
1.27 +willBeInsertedIntoToolbar:(BOOL)flag
1.28 {
1.29 - return [items objectForKey: itemIdentifier];
1.30 + return [items objectForKey: itemIdentifier];
1.31 }
1.32 - (void)paths_action: (id)sender
1.33 {
1.34 @@ -102,10 +103,10 @@
1.35 - (id)initWithContentRect:(NSRect)contentRect
1.36 {
1.37 if( [super initWithContentRect: contentRect
1.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")];
.