From 3121e8067a613680433724f0c0eb30254e622649 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 15 Aug 2020 07:45:08 +0300 Subject: Built-in embedded “about:” pages; Help menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/window.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/ui') 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[] = { { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, }; + +static const iMenuItem helpMenuItems[] = { + { "Help", 0, 0, "open url:about:help" }, + { "Release Notes", 0, 0, "open url:about:version" }, +}; #endif static const char *reloadCStr_ = "\U0001f503"; @@ -288,9 +293,10 @@ static void setupUserInterface_Window(iWindow *d) { setAlignVisually_LabelWidget(navMenu, iTrue); addChild_Widget(navBar, iClob(navMenu)); #else - insertMenuItems_MacOS("File", fileMenuItems, iElemCount(fileMenuItems)); - insertMenuItems_MacOS("Edit", editMenuItems, iElemCount(editMenuItems)); - insertMenuItems_MacOS("View", viewMenuItems, iElemCount(viewMenuItems)); + insertMenuItems_MacOS("File", 1, fileMenuItems, iElemCount(fileMenuItems)); + insertMenuItems_MacOS("Edit", 2, editMenuItems, iElemCount(editMenuItems)); + insertMenuItems_MacOS("View", 3, viewMenuItems, iElemCount(viewMenuItems)); + insertMenuItems_MacOS("Help", 5, helpMenuItems, iElemCount(helpMenuItems)); #endif } /* Tab bar. */ { -- cgit v1.2.3