Changeset 12945


Ignore:
Timestamp:
Oct 6, 2011, 3:16:06 AM (10 years ago)
Author:
livings124
Message:

replace 'fldr' with kGenericFolderIcon

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/CreatorWindowController.m

    r12943 r12945  
    147147   
    148148    NSImage * icon = [[NSWorkspace sharedWorkspace] iconForFileType: multifile
    149                         ? NSFileTypeForHFSTypeCode('fldr') : [fPath pathExtension]];
     149                        ? NSFileTypeForHFSTypeCode(kGenericFolderIcon) : [fPath pathExtension]];
    150150    [icon setSize: [fIconView frame].size];
    151151    [fIconView setImage: icon];
  • trunk/macosx/DragOverlayWindow.m

    r11617 r12945  
    137137    NSImage * icon;
    138138    if (count == 1)
    139         icon = [[NSWorkspace sharedWorkspace] iconForFileType: folder ? NSFileTypeForHFSTypeCode('fldr') : [name pathExtension]];
     139        icon = [[NSWorkspace sharedWorkspace] iconForFileType: folder ? NSFileTypeForHFSTypeCode(kGenericFolderIcon) : [name pathExtension]];
    140140    else
    141141    {
  • trunk/macosx/ExpandedPathToIconTransformer.m

    r11617 r12945  
    4646    //show a folder icon if the folder doesn't exist
    4747    if ([[path pathExtension] isEqualToString: @""] && ![[NSFileManager defaultManager] fileExistsAtPath: path])
    48         icon = [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode('fldr')];
     48        icon = [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode(kGenericFolderIcon)];
    4949    else
    5050        icon = [[NSWorkspace sharedWorkspace] iconForFile: path];
  • trunk/macosx/FileListNode.m

    r12483 r12945  
    125125{
    126126    if (!fIcon)
    127         fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: fIsFolder ? NSFileTypeForHFSTypeCode('fldr')
     127        fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: fIsFolder ? NSFileTypeForHFSTypeCode(kGenericFolderIcon)
    128128                                                                            : [fName pathExtension]] retain];
    129129    return fIcon;
  • trunk/macosx/Torrent.m

    r12940 r12945  
    605605        return [NSImage imageNamed: @"Magnet.png"];
    606606   
    607     #warning replace 'fldr' stuff with NSImageNameFolder on 10.6
     607    #warning replace kGenericFolderIcon stuff with NSImageNameFolder on 10.6
    608608    if (!fIcon)
    609         fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: [self isFolder] ? NSFileTypeForHFSTypeCode('fldr')
     609        fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: [self isFolder] ? NSFileTypeForHFSTypeCode(kGenericFolderIcon)
    610610                                                                                : [[self name] pathExtension]] retain];
    611611    return fIcon;
Note: See TracChangeset for help on using the changeset viewer.