diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-25 16:26:53 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-25 16:26:53 +0300 |
commit | 5dbc85eaaa1bd0a0fc11dd76a75ece2efe763df5 (patch) | |
tree | 9721fb7aced603adb10b9bb3f3beb3f8d5fba973 /src/ui/window.c | |
parent | 95c527db1484f7758a180c6de051d0182c3b2e81 (diff) | |
parent | f99a9111170f2ff28383fd3172fdaf4b9a1ba069 (diff) |
Merge branch 'work/v1.6' into work/serious-unicode
# Conflicts:
# res/fonts/SmolEmoji-Regular.ttf
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 8 |
1 files changed, 2 insertions, 6 deletions
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) | |||
69 | 69 | ||
70 | /* TODO: Define menus per platform. */ | 70 | /* TODO: Define menus per platform. */ |
71 | 71 | ||
72 | #if defined (iPlatformAppleDesktop) | ||
73 | # define iHaveNativeMenus | ||
74 | #endif | ||
75 | |||
76 | #if defined (iHaveNativeMenus) | 72 | #if defined (iHaveNativeMenus) |
77 | /* Using native menus. */ | 73 | /* Using native menus. */ |
78 | static const iMenuItem fileMenuItems_[] = { | 74 | static const iMenuItem fileMenuItems_[] = { |
@@ -202,7 +198,7 @@ static void windowSizeChanged_Window_(iWindow *d) { | |||
202 | } | 198 | } |
203 | 199 | ||
204 | static void setupUserInterface_Window(iWindow *d) { | 200 | static void setupUserInterface_Window(iWindow *d) { |
205 | #if defined (iPlatformAppleDesktop) | 201 | #if defined (iHaveNativeMenus) |
206 | insertMacMenus_(); | 202 | insertMacMenus_(); |
207 | #endif | 203 | #endif |
208 | /* One root is created by default. */ | 204 | /* One root is created by default. */ |
@@ -913,7 +909,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) { | |||
913 | } | 909 | } |
914 | } | 910 | } |
915 | if (isCommand_UserEvent(&event, "lang.changed")) { | 911 | if (isCommand_UserEvent(&event, "lang.changed")) { |
916 | #if defined (iPlatformAppleDesktop) | 912 | #if defined (iHaveNativeMenus) |
917 | /* Retranslate the menus. */ | 913 | /* Retranslate the menus. */ |
918 | removeMacMenus_(); | 914 | removeMacMenus_(); |
919 | insertMacMenus_(); | 915 | insertMacMenus_(); |