mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:30:37 +00:00
Added handling of a Desktop icon (and added the icon itself)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31713 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
285bafeebe
commit
d4a93852ff
4 changed files with 13 additions and 0 deletions
|
@ -656,6 +656,7 @@ static NSString *_rootPath = @"/";
|
|||
NSArray *libraryDirs;
|
||||
NSArray *sysAppDir;
|
||||
NSArray *downloadDir;
|
||||
NSArray *desktopDir;
|
||||
NSString *sysDir;
|
||||
int i;
|
||||
|
||||
|
@ -684,6 +685,7 @@ static NSString *_rootPath = @"/";
|
|||
|
||||
documentDir = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
|
||||
downloadDir = NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory, NSUserDomainMask, YES);
|
||||
desktopDir = NSSearchPathForDirectoriesInDomains(NSDesktopDirectory, NSUserDomainMask, YES);
|
||||
libraryDirs = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSAllDomainsMask, YES);
|
||||
sysAppDir = NSSearchPathForDirectoriesInDomains(NSApplicationDirectory, NSSystemDomainMask, YES);
|
||||
|
||||
|
@ -713,6 +715,9 @@ static NSString *_rootPath = @"/";
|
|||
for (i = 0; i < [downloadDir count]; i++)
|
||||
[folderPathIconDict setObject: @"DownloadFolder" forKey: [downloadDir objectAtIndex: i]];
|
||||
|
||||
for (i = 0; i < [desktopDir count]; i++)
|
||||
[folderPathIconDict setObject: @"Desktop" forKey: [desktopDir objectAtIndex: i]];
|
||||
|
||||
folderIconCache = [[NSMutableDictionary alloc] init];
|
||||
|
||||
return self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue