comparison dwt/program/Program.d @ 46:cfa563df4fdd

Updated Widget and Display to 3.514
author Jacob Carlborg <doob@me.com>
date Fri, 05 Dec 2008 16:00:41 +0100
parents d8635bb48c7c
children e1c48e37e0f5
comparison
equal deleted inserted replaced
45:d8635bb48c7c 46:cfa563df4fdd
316 fullPath = workspace.fullPathForApplication(NSString.stringWith(name)); 316 fullPath = workspace.fullPathForApplication(NSString.stringWith(name));
317 } 317 }
318 if (fullPath !is null) { 318 if (fullPath !is null) {
319 NSImage nsImage = workspace.iconForFile(fullPath); 319 NSImage nsImage = workspace.iconForFile(fullPath);
320 if (nsImage !is null) { 320 if (nsImage !is null) {
321 NSSize size = new NSSize(); 321 NSSize size = NSSize();
322 size.width = size.height = 16; 322 size.width = size.height = 16;
323 nsImage.setSize(size); 323 nsImage.setSize(size);
324 NSBitmapImageRep imageRep = null; 324 NSBitmapImageRep imageRep = null;
325 NSImageRep rep = nsImage.bestRepresentationForDevice(null); 325 NSImageRep rep = nsImage.bestRepresentationForDevice(null);
326 if (rep.isKindOfClass(OS.class_NSBitmapImageRep)) { 326 if (rep.isKindOfClass(OS.class_NSBitmapImageRep)) {