Search
lxdream.org :: lxdream :: r686:afd1bd3f1acc
lxdream 0.9.1
released Jun 29
Download Now
changeset686:afd1bd3f1acc
parent685:fa1589b42be7
child687:6bdc2b7032ea
authornkeynes
dateSat Jun 14 10:19:35 2008 +0000 (15 years ago)
Add an application icon (ie the existing dcemu.gif)
src/cocoaui/cocoaui.c
1.1 --- a/src/cocoaui/cocoaui.c Tue Jun 03 11:16:51 2008 +0000
1.2 +++ b/src/cocoaui/cocoaui.c Sat Jun 14 10:19:35 2008 +0000
1.3 @@ -217,6 +217,9 @@
1.4 [NSApplication sharedApplication];
1.5 LxdreamDelegate *delegate = [[LxdreamDelegate alloc] init];
1.6 [NSApp setDelegate: delegate];
1.7 + NSString *iconFile = [[NSBundle mainBundle] pathForResource:@"dcemu" ofType:@"gif"];
1.8 + NSImage *iconImage = [[NSImage alloc] initWithContentsOfFile: iconFile];
1.9 + [NSApp setApplicationIconImage: iconImage];
1.10 cocoa_gui_create_menu();
1.11 NSWindow *window = cocoa_gui_create_main_window();
1.12 [window makeKeyAndOrderFront: nil];
.