mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:46:00 +00:00
Fix the actoreditor menu bar on OSX. Patch by trompetin17. Fixes #1554.
This was SVN commit r17458.
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user