forked from mia/Aegisub
Remove __APPLE__ around SetBitmap() in AppendBitmapMenuItem, this gives us pretty icons in our menus on osx.
Originally committed to SVN as r3495.
This commit is contained in:
parent
ba87160fdc
commit
a5730828d3
1 changed files with 0 additions and 2 deletions
|
@ -222,9 +222,7 @@ wxString PrettySize(int bytes) {
|
||||||
wxMenuItem* AppendBitmapMenuItem (wxMenu* parentMenu,int id,wxString text,wxString help,wxBitmap bmp,int pos) {
|
wxMenuItem* AppendBitmapMenuItem (wxMenu* parentMenu,int id,wxString text,wxString help,wxBitmap bmp,int pos) {
|
||||||
wxMenuItem *cur = new wxMenuItem(parentMenu,id,text,help);
|
wxMenuItem *cur = new wxMenuItem(parentMenu,id,text,help);
|
||||||
// Mac software does not use icons in menus so we shouldn't either
|
// Mac software does not use icons in menus so we shouldn't either
|
||||||
#ifndef __APPLE__
|
|
||||||
cur->SetBitmap(bmp);
|
cur->SetBitmap(bmp);
|
||||||
#endif
|
|
||||||
if (pos == -1) parentMenu->Append(cur);
|
if (pos == -1) parentMenu->Append(cur);
|
||||||
else parentMenu->Insert(pos,cur);
|
else parentMenu->Insert(pos,cur);
|
||||||
return cur;
|
return cur;
|
||||||
|
|
Loading…
Reference in a new issue