mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-09 12:33:52 +00:00
Fix the actoreditor menu bar on OSX. Patch by trompetin17. Fixes #1554.
This was SVN commit r17458.
This commit is contained in:
1 parent
909b8d4369
commit
1e504cd64c
1 file changed
+8
-1
@@ -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