summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-15 07:45:08 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-15 07:45:08 +0300
commit3121e8067a613680433724f0c0eb30254e622649 (patch)
tree4fd15f108819638f0a5c431fdb8e9af34c0fd93d /src/ui
parenta308db056515f8fb30be36d6ff028b788626465c (diff)
Built-in embedded “about:” pages; Help menu
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.c12
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
117static 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
118static const char *reloadCStr_ = "\U0001f503"; 123static 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. */ {