mime/Database: Add SetIcon[ForType]() BBitmap* version
When switching AppMetaMimeCreator from BMimeType to Database the SetIcon[ForType]() calls with a BBitmap* ended up calling the vector icon version with the icon_size as the data size argument, thus not only not writing the bitmap icon attributes, but also clobbering the vector icon attribute.
This commit is contained in:
@@ -69,9 +69,13 @@ class Database {
|
||||
status_t SetShortDescription(const char *type, const char *description);
|
||||
status_t SetLongDescription(const char *type, const char *description);
|
||||
status_t SetFileExtensions(const char *type, const BMessage *extensions);
|
||||
status_t SetIcon(const char* type, const BBitmap* icon,
|
||||
icon_size which);
|
||||
status_t SetIcon(const char *type, const void *data, size_t dataSize,
|
||||
icon_size which);
|
||||
status_t SetIcon(const char *type, const void *data, size_t dataSize);
|
||||
status_t SetIconForType(const char* type, const char* fileType,
|
||||
const BBitmap* icon, icon_size which);
|
||||
status_t SetIconForType(const char *type, const char *fileType,
|
||||
const void *data, size_t dataSize, icon_size which);
|
||||
status_t SetIconForType(const char *type, const char *fileType,
|
||||
|
||||
Reference in New Issue
Block a user