some more forgotten places for B_VECTOR_ICON_TYPE

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19229 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-11-08 04:53:23 +00:00
parent e0c6ab6012
commit 15e5a8b1e9
2 changed files with 6 additions and 7 deletions

View File

@ -2156,10 +2156,10 @@ FSGetDeskDir(BDirectory *deskDir, dev_t dev)
deskDir->WriteAttr(kAttrMiniIcon, 'MICN', 0, data, size);
data = GetTrackerResources()->
LoadResource(B_RAW_TYPE, kResDeskIcon, &size);
LoadResource(B_VECTOR_ICON_TYPE, kResDeskIcon, &size);
if (data)
deskDir->WriteAttr(kAttrIcon, B_RAW_TYPE, 0, data, size);
deskDir->WriteAttr(kAttrIcon, B_VECTOR_ICON_TYPE, 0, data, size);
return B_OK;
}
@ -2658,9 +2658,9 @@ FSCreateTrashDirs()
data, size);
}
data = GetTrackerResources()->
LoadResource(B_RAW_TYPE, kResTrashIcon, &size);
LoadResource(B_VECTOR_ICON_TYPE, kResTrashIcon, &size);
if (data) {
trashDir.WriteAttr(kAttrIcon, B_RAW_TYPE, 0,
trashDir.WriteAttr(kAttrIcon, B_VECTOR_ICON_TYPE, 0,
data, size);
}
}

View File

@ -177,9 +177,8 @@ BTrashWatcher::UpdateTrashIcons()
if (vectorData)
trashDir.WriteAttr(kAttrIcon, B_VECTOR_ICON_TYPE, 0,
vectorData, vectorSize);
// TODO: enable me once the vector icon is indeed in the resources
// else
// TRESPASS();
else
TRESPASS();
#endif
if (largeData)