Search
lxdream.org :: lxdream/src/cocoaui/cocoa_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_win.c
changeset 885:a7de5e3d5be4
prev874:e3007b8799f3
author nkeynes
date Mon Oct 20 05:01:39 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change OSX: Add preferences toolbar item to main window
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoa_win.c Tue Oct 14 08:43:01 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_win.c Mon Oct 20 05:01:39 2008 +0000
1.3 @@ -73,13 +73,17 @@
1.4 NSToolbarItem *save = [self createToolbarItem: @"SaveState" label: @"Save State..."
1.5 tooltip: @"Create an lxdream save state" icon: @"tb-save"
1.6 action: @selector(save_action:)];
1.7 + NSToolbarItem *prefs = [self createToolbarItem: @"Preferences" label: @"Preferences..."
1.8 + tooltip: @"Edit preferences" icon: @"tb-preferences"
1.9 + action: @selector(preferences_action:)];
1.10 [pause setEnabled: NO];
1.11 identifiers =
1.12 - [NSArray arrayWithObjects: @"GdromMount", @"Reset", @"Pause", @"Run", @"LoadState", @"SaveState", nil ];
1.13 + [NSArray arrayWithObjects: @"GdromMount", @"Reset", @"Pause", @"Run", @"LoadState", @"SaveState", @"Preferences", nil ];
1.14 defaults =
1.15 [NSArray arrayWithObjects: @"GdromMount", @"Reset", @"Pause", @"Run",
1.16 - NSToolbarSeparatorItemIdentifier, @"LoadState", @"SaveState", nil ];
1.17 - NSArray *values = [NSArray arrayWithObjects: mount, reset, pause, run, load, save, nil ];
1.18 + NSToolbarSeparatorItemIdentifier, @"LoadState", @"SaveState",
1.19 + NSToolbarFlexibleSpaceItemIdentifier, @"Preferences", nil ];
1.20 + NSArray *values = [NSArray arrayWithObjects: mount, reset, pause, run, load, save, prefs, nil ];
1.21 items = [NSDictionary dictionaryWithObjects: values forKeys: identifiers];
1.22 return self;
1.23 }
.