Search
lxdream.org :: lxdream :: r885:a7de5e3d5be4
lxdream 0.9.1
released Jun 29
Download Now
changeset885:a7de5e3d5be4
parent884:2dcd6a3829fa
child886:2bc6d2329cce
authornkeynes
dateMon Oct 20 05:01:39 2008 +0000 (11 years ago)
OSX: Add preferences toolbar item to main window
pixmaps/tb-preferences.png
src/cocoaui/cocoa_win.c
1.1 Binary file pixmaps/tb-preferences.png has changed
2.1 --- a/src/cocoaui/cocoa_win.c Mon Oct 20 03:15:08 2008 +0000
2.2 +++ b/src/cocoaui/cocoa_win.c Mon Oct 20 05:01:39 2008 +0000
2.3 @@ -73,13 +73,17 @@
2.4 NSToolbarItem *save = [self createToolbarItem: @"SaveState" label: @"Save State..."
2.5 tooltip: @"Create an lxdream save state" icon: @"tb-save"
2.6 action: @selector(save_action:)];
2.7 + NSToolbarItem *prefs = [self createToolbarItem: @"Preferences" label: @"Preferences..."
2.8 + tooltip: @"Edit preferences" icon: @"tb-preferences"
2.9 + action: @selector(preferences_action:)];
2.10 [pause setEnabled: NO];
2.11 identifiers =
2.12 - [NSArray arrayWithObjects: @"GdromMount", @"Reset", @"Pause", @"Run", @"LoadState", @"SaveState", nil ];
2.13 + [NSArray arrayWithObjects: @"GdromMount", @"Reset", @"Pause", @"Run", @"LoadState", @"SaveState", @"Preferences", nil ];
2.14 defaults =
2.15 [NSArray arrayWithObjects: @"GdromMount", @"Reset", @"Pause", @"Run",
2.16 - NSToolbarSeparatorItemIdentifier, @"LoadState", @"SaveState", nil ];
2.17 - NSArray *values = [NSArray arrayWithObjects: mount, reset, pause, run, load, save, nil ];
2.18 + NSToolbarSeparatorItemIdentifier, @"LoadState", @"SaveState",
2.19 + NSToolbarFlexibleSpaceItemIdentifier, @"Preferences", nil ];
2.20 + NSArray *values = [NSArray arrayWithObjects: mount, reset, pause, run, load, save, prefs, nil ];
2.21 items = [NSDictionary dictionaryWithObjects: values forKeys: identifiers];
2.22 return self;
2.23 }
.