The type list will now show the generic file icon for types without an icon.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16420 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -136,10 +136,11 @@ MimeTypeItem::DrawItem(BView* owner, BRect frame, bool complete)
|
|||||||
BBitmap bitmap(BRect(0, 0, B_MINI_ICON - 1, B_MINI_ICON - 1), B_CMAP8);
|
BBitmap bitmap(BRect(0, 0, B_MINI_ICON - 1, B_MINI_ICON - 1), B_CMAP8);
|
||||||
BMimeType mimeType(fType.String());
|
BMimeType mimeType(fType.String());
|
||||||
status_t status = icon_for_type(mimeType, bitmap, B_MINI_ICON);
|
status_t status = icon_for_type(mimeType, bitmap, B_MINI_ICON);
|
||||||
if (status < B_OK && fApplicationMode) {
|
if (status < B_OK) {
|
||||||
// get default application icon
|
// get default generic/application icon
|
||||||
BMimeType appType(B_ELF_APP_MIME_TYPE);
|
BMimeType genericType(fApplicationMode
|
||||||
status = icon_for_type(appType, bitmap, B_MINI_ICON);
|
? B_ELF_APP_MIME_TYPE : B_FILE_MIME_TYPE);
|
||||||
|
status = icon_for_type(genericType, bitmap, B_MINI_ICON);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status == B_OK) {
|
if (status == B_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user