Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.c
changeset 765:4cd066048203
prev738:0cbff49086b8
next770:429ff505c450
author nkeynes
date Wed Jul 23 11:11:30 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Cocoa preferences panel work-in-progress
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoaui.c Tue Jul 15 06:47:49 2008 +0000
1.2 +++ b/src/cocoaui/cocoaui.c Wed Jul 23 11:11:30 2008 +0000
1.3 @@ -69,8 +69,8 @@
1.4 title = [@"About " stringByAppendingString:appName];
1.5 [appleMenu addItemWithTitle:title action:@selector(about_action:) keyEquivalent:@""];
1.6
1.7 - // [appleMenu addItem:[NSMenuItem separatorItem]];
1.8 - // [appleMenu addItemWithTitle: NS_("Preferences...") action:@selector(preferences_action:) keyEquivalent:@","];
1.9 + [appleMenu addItem:[NSMenuItem separatorItem]];
1.10 + [appleMenu addItemWithTitle: NS_("Preferences...") action:@selector(preferences_action:) keyEquivalent:@","];
1.11
1.12 // Services Menu
1.13 [appleMenu addItem:[NSMenuItem separatorItem]];
1.14 @@ -159,8 +159,7 @@
1.15 }
1.16 - (void) preferences_action: (id)sender
1.17 {
1.18 - LxdreamPrefsPanel *panel = [[LxdreamPrefsPanel alloc] initWithContentRect: NSMakeRect(0,0,600,400)];
1.19 - [NSApp runModalForWindow: panel];
1.20 + cocoa_gui_show_preferences();
1.21 }
1.22 - (void) load_action: (id)sender
1.23 {
.