diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-22 19:27:44 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-22 19:29:09 +0200 |
commit | de34940c4dd709fa7103c6961cbe8b410638ffdd (patch) | |
tree | 03afd79839273638bc25efbed0d8e70e2ce0896d /src/ui/window.c | |
parent | 0bd8465b33c6e3f6dacf79785a47cbd6abea6f25 (diff) |
Lang: Improvements; macOS menu items
Use char pointer ranges for the array of IDs and strings to avoid allocations.
Translate macOS menu items.
IssueID #192
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 2d1deb72..d27d252b 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1055,12 +1055,12 @@ static void setupUserInterface_Window(iWindow *d) { | |||
1055 | setAlignVisually_LabelWidget(navMenu, iTrue); | 1055 | setAlignVisually_LabelWidget(navMenu, iTrue); |
1056 | setId_Widget(addChildFlags_Widget(navBar, iClob(navMenu), collapse_WidgetFlag), "navbar.menu"); | 1056 | setId_Widget(addChildFlags_Widget(navBar, iClob(navMenu), collapse_WidgetFlag), "navbar.menu"); |
1057 | #else | 1057 | #else |
1058 | insertMenuItems_MacOS("File", 1, fileMenuItems_, iElemCount(fileMenuItems_)); | 1058 | insertMenuItems_MacOS("${menu.title.file}", 1, fileMenuItems_, iElemCount(fileMenuItems_)); |
1059 | insertMenuItems_MacOS("Edit", 2, editMenuItems_, iElemCount(editMenuItems_)); | 1059 | insertMenuItems_MacOS("${menu.title.edit}", 2, editMenuItems_, iElemCount(editMenuItems_)); |
1060 | insertMenuItems_MacOS("View", 3, viewMenuItems_, iElemCount(viewMenuItems_)); | 1060 | insertMenuItems_MacOS("${menu.title.view}", 3, viewMenuItems_, iElemCount(viewMenuItems_)); |
1061 | insertMenuItems_MacOS("Bookmarks", 4, bookmarksMenuItems_, iElemCount(bookmarksMenuItems_)); | 1061 | insertMenuItems_MacOS("${menu.title.bookmarks}", 4, bookmarksMenuItems_, iElemCount(bookmarksMenuItems_)); |
1062 | insertMenuItems_MacOS("Identity", 5, identityMenuItems_, iElemCount(identityMenuItems_)); | 1062 | insertMenuItems_MacOS("${menu.title.identity}", 5, identityMenuItems_, iElemCount(identityMenuItems_)); |
1063 | insertMenuItems_MacOS("Help", 7, helpMenuItems_, iElemCount(helpMenuItems_)); | 1063 | insertMenuItems_MacOS("${menu.title.help}", 7, helpMenuItems_, iElemCount(helpMenuItems_)); |
1064 | #endif | 1064 | #endif |
1065 | } | 1065 | } |
1066 | /* Tab bar. */ { | 1066 | /* Tab bar. */ { |