* The MIME type menu in the find panel now shows the MIME type icons, if any.
* Whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27146 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1579,7 +1579,8 @@ FindPanel::AddOneMimeTypeToMenu(const ShortMimeInfo *info, void *castToMenu)
|
|||||||
BMessage *msg = new BMessage(kMIMETypeItem);
|
BMessage *msg = new BMessage(kMIMETypeItem);
|
||||||
msg->AddString("mimetype", info->InternalName());
|
msg->AddString("mimetype", info->InternalName());
|
||||||
|
|
||||||
superItem->Submenu()->AddItem(new BMenuItem(info->ShortDescription(), msg));
|
superItem->Submenu()->AddItem(new IconMenuItem(info->ShortDescription(),
|
||||||
|
msg, info->InternalName(), B_MINI_ICON));
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -1632,9 +1633,10 @@ FindPanel::AddMimeTypesToMenu()
|
|||||||
BMenu *superMenu = new BMenu(superType);
|
BMenu *superMenu = new BMenu(superType);
|
||||||
|
|
||||||
BMessage *message = new BMessage(kMIMETypeItem);
|
BMessage *message = new BMessage(kMIMETypeItem);
|
||||||
message->AddString("mimetype",superType);
|
message->AddString("mimetype", superType);
|
||||||
|
|
||||||
MimeTypeMenu()->AddItem(new BMenuItem(superMenu,message));
|
MimeTypeMenu()->AddItem(new IconMenuItem(superMenu, message,
|
||||||
|
superType, B_MINI_ICON));
|
||||||
|
|
||||||
// the MimeTypeMenu's font is not correct at this time
|
// the MimeTypeMenu's font is not correct at this time
|
||||||
superMenu->SetFont(be_plain_font);
|
superMenu->SetFont(be_plain_font);
|
||||||
|
|||||||
Reference in New Issue
Block a user