Fix the actoreditor menu bar on OSX. Patch by trompetin17. Fixes #1554.

This was SVN commit r17458.
This commit is contained in:
wraitii 2015-12-13 16:53:35 +00:00
parent 909b8d4369
commit 1e504cd64c

View file

@ -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"));