Removed some dead and broken code for setting a document icon.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41151 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d19e434d9c
commit
c9c3e1ab81
@ -757,25 +757,4 @@ IconEditorApp::_InstallDocumentMimeType()
|
||||
fprintf(stderr, "Could not set sniffer rule of mime type: %s\n",
|
||||
parseError.String());
|
||||
}
|
||||
|
||||
// NOTE: Icon-O-Matic writes the icon being saved as icon of the file anyway
|
||||
// therefor, the following code is not needed, it is also not tested and I am
|
||||
// spotting an error with SetIcon()
|
||||
// // set document icon
|
||||
// BResources* resources = AppResources();
|
||||
// // does not need to be freed (belongs to BApplication base)
|
||||
// if (resources) {
|
||||
// size_t size;
|
||||
// const void* iconData = resources->LoadResource('VICN', "IOM:DOC_ICON",
|
||||
// &size);
|
||||
// if (iconData && size > 0) {
|
||||
// memcpy(largeIcon.Bits(), iconData, size);
|
||||
// if (mime.SetIcon(&largeIcon, B_LARGE_ICON) < B_OK)
|
||||
// fprintf(stderr, "Could not set large icon of mime type.\n");
|
||||
// } else {
|
||||
// fprintf(stderr, "Could not find icon in app resources (data: %p,
|
||||
// "size: %ld).\n", iconData, size);
|
||||
// }
|
||||
// } else
|
||||
// fprintf(stderr, "Could not find app resources.\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user