From d5b8ef63d8c969b8e21129793534161bfb8e9fc0 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 12 Jun 2021 20:01:32 +0300 Subject: Cleanup --- src/ui/window.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/ui/window.c') diff --git a/src/ui/window.c b/src/ui/window.c index 96a22fee..f71d8102 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -69,10 +69,6 @@ iDefineTypeConstructionArgs(Window, (iRect rect), rect) /* TODO: Define menus per platform. */ -#if defined (iPlatformAppleDesktop) -# define iHaveNativeMenus -#endif - #if defined (iHaveNativeMenus) /* Using native menus. */ static const iMenuItem fileMenuItems_[] = { @@ -202,7 +198,7 @@ static void windowSizeChanged_Window_(iWindow *d) { } static void setupUserInterface_Window(iWindow *d) { -#if defined (iPlatformAppleDesktop) +#if defined (iHaveNativeMenus) insertMacMenus_(); #endif /* One root is created by default. */ @@ -913,7 +909,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) { } } if (isCommand_UserEvent(&event, "lang.changed")) { -#if defined (iPlatformAppleDesktop) +#if defined (iHaveNativeMenus) /* Retranslate the menus. */ removeMacMenus_(); insertMacMenus_(); -- cgit v1.2.3