diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 2f5c428d..5e1ad9c6 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -113,6 +113,11 @@ static const iMenuItem viewMenuItems[] = { | |||
113 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, | 113 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, |
114 | { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, | 114 | { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, |
115 | }; | 115 | }; |
116 | |||
117 | static const iMenuItem helpMenuItems[] = { | ||
118 | { "Help", 0, 0, "open url:about:help" }, | ||
119 | { "Release Notes", 0, 0, "open url:about:version" }, | ||
120 | }; | ||
116 | #endif | 121 | #endif |
117 | 122 | ||
118 | static const char *reloadCStr_ = "\U0001f503"; | 123 | static const char *reloadCStr_ = "\U0001f503"; |
@@ -288,9 +293,10 @@ static void setupUserInterface_Window(iWindow *d) { | |||
288 | setAlignVisually_LabelWidget(navMenu, iTrue); | 293 | setAlignVisually_LabelWidget(navMenu, iTrue); |
289 | addChild_Widget(navBar, iClob(navMenu)); | 294 | addChild_Widget(navBar, iClob(navMenu)); |
290 | #else | 295 | #else |
291 | insertMenuItems_MacOS("File", fileMenuItems, iElemCount(fileMenuItems)); | 296 | insertMenuItems_MacOS("File", 1, fileMenuItems, iElemCount(fileMenuItems)); |
292 | insertMenuItems_MacOS("Edit", editMenuItems, iElemCount(editMenuItems)); | 297 | insertMenuItems_MacOS("Edit", 2, editMenuItems, iElemCount(editMenuItems)); |
293 | insertMenuItems_MacOS("View", viewMenuItems, iElemCount(viewMenuItems)); | 298 | insertMenuItems_MacOS("View", 3, viewMenuItems, iElemCount(viewMenuItems)); |
299 | insertMenuItems_MacOS("Help", 5, helpMenuItems, iElemCount(helpMenuItems)); | ||
294 | #endif | 300 | #endif |
295 | } | 301 | } |
296 | /* Tab bar. */ { | 302 | /* Tab bar. */ { |