mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-20 09:30:59 +00:00
somehow the makefile was not being written...?!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@8489 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cec4656e0f
commit
f7b4c54b34
1 changed files with 19 additions and 0 deletions
|
@ -216,10 +216,27 @@
|
|||
|
||||
- (void)updateValuesFromProjectDict
|
||||
{
|
||||
NSRect frame = {{0,0}, {64, 64}};
|
||||
NSImage *image;
|
||||
NSString *path = nil;
|
||||
NSString *_icon;
|
||||
|
||||
[super updateValuesFromProjectDict];
|
||||
|
||||
[appClassField setStringValue:[projectDict objectForKey:PCAppClass]];
|
||||
[appImageField setStringValue:[projectDict objectForKey:PCAppIcon]];
|
||||
|
||||
if ((_icon = [projectDict objectForKey:PCAppIcon])) {
|
||||
path = [projectPath stringByAppendingPathComponent:_icon];
|
||||
}
|
||||
|
||||
if (path && (image = [[NSImage alloc] initWithContentsOfFile:path])) {
|
||||
frame.size = [image size];
|
||||
[appIconView setFrame:frame];
|
||||
[appIconView setImage:image];
|
||||
[appIconView display];
|
||||
RELEASE(image);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)clearAppIcon:(id)sender
|
||||
|
@ -273,6 +290,8 @@
|
|||
[appIconView display];
|
||||
RELEASE(image);
|
||||
|
||||
[self writeMakefile];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue