mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +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
|
@ -1,3 +1,10 @@
|
|||
2010-12-06 Riccardo Mottola
|
||||
|
||||
* Source/NSWorkspace.m
|
||||
* Images/common_Desktop.tiff
|
||||
* Images/GNUmakefile
|
||||
Added handling of a Desktop icon (and added the icon itself).
|
||||
|
||||
2010-11-27 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GSThemeDrawing.m: Added methods to draw NSTableView
|
||||
|
|
|
@ -64,6 +64,7 @@ Images_RESOURCE_FILES = \
|
|||
common_ColorSwatch.tiff \
|
||||
common_ComboBoxEllipsis.tiff \
|
||||
common_DecimalTabStop.tiff \
|
||||
common_Desktop.tiff \
|
||||
common_Diamond.tiff \
|
||||
common_Dimple.tiff \
|
||||
common_DimpleHoriz.tiff \
|
||||
|
|
BIN
Images/common_Desktop.tiff
Normal file
BIN
Images/common_Desktop.tiff
Normal file
Binary file not shown.
|
@ -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…
Reference in a new issue