mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fix the actoreditor menu bar on OSX. Patch by trompetin17. Fixes #1554.
This was SVN commit r17458.
This commit is contained in:
parent
909b8d4369
commit
1e504cd64c
1 changed files with 8 additions and 1 deletions
|
|
@ -23,7 +23,9 @@
|
|||
#include "AtlasObject/AtlasObject.h"
|
||||
#include "AtlasObject/AtlasObjectText.h"
|
||||
#include "General/Datafile.h"
|
||||
|
||||
#ifdef __WXMAC__
|
||||
#include <ApplicationServices/ApplicationServices.h>
|
||||
#endif
|
||||
#include "wx/file.h"
|
||||
|
||||
BEGIN_EVENT_TABLE(ActorEditor, AtlasWindow)
|
||||
|
|
@ -36,6 +38,11 @@ ActorEditor::ActorEditor(wxWindow* parent)
|
|||
{
|
||||
SetIcon(wxIcon(_T("ICON_ActorEditor")));
|
||||
|
||||
#ifdef __WXMAC__
|
||||
ProcessSerialNumber PSN;
|
||||
GetCurrentProcess(&PSN);
|
||||
TransformProcessType(&PSN,kProcessTransformToForegroundApplication);
|
||||
#endif
|
||||
wxMenu* menu = new wxMenu;
|
||||
menu->Append(ID_CreateEntity, _("Create &entity..."));
|
||||
AddCustomMenu(menu, _("&Actor"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue