summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-13 13:48:42 +0300
committerPaul Buetow <paul@buetow.org>2026-04-13 13:48:42 +0300
commitb1af8353ee25d53fc97bf1e3c8252c4511cfd13c (patch)
tree9743bc807d3c75f51de0d3038c244cc1317ac421 /src/c
parent70034036839c06f1317eacee55c657f6108227b1 (diff)
r2: add About menu item with author credit and source URL
Adds an About entry at the bottom of the main menu. Selecting it shows a detail window with the author (Paul Buetow) and source code location (codeberg.org/snonux/fastforge). Reuses the existing detail window infrastructure via show_placeholder_window — no new window needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/c')
-rw-r--r--src/c/fastforge.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/c/fastforge.c b/src/c/fastforge.c
index c6337dd..623765e 100644
--- a/src/c/fastforge.c
+++ b/src/c/fastforge.c
@@ -13,7 +13,8 @@ enum {
MAIN_MENU_INDEX_STATS = 4,
MAIN_MENU_INDEX_SETTINGS = 5,
MAIN_MENU_INDEX_BACKUP = 6,
- MAIN_MENU_ITEM_COUNT = 7
+ MAIN_MENU_INDEX_ABOUT = 7,
+ MAIN_MENU_ITEM_COUNT = 8
};
enum {
@@ -1113,6 +1114,15 @@ static void menu_backup_callback(int index, void *context) {
request_history_export();
}
+/* Show author credit and source code location in the shared detail window. */
+static void menu_about_callback(int index, void *context) {
+ (void)index;
+ (void)context;
+ show_placeholder_window("ABOUT",
+ "By Paul Buetow\n\nSource code:\ncodeberg.org/\nsnonux/fastforge",
+ "BACK Menu");
+}
+
static void preset_16h_callback(int index, void *context) {
(void)index;
(void)context;
@@ -1750,6 +1760,11 @@ static void configure_main_menu_items(void) {
.subtitle = "Export history data",
.callback = menu_backup_callback
};
+ s_main_menu_items[MAIN_MENU_INDEX_ABOUT] = (SimpleMenuItem) {
+ .title = "About",
+ .subtitle = "Author and source",
+ .callback = menu_about_callback
+ };
s_main_menu_sections[0] = (SimpleMenuSection) {
.title = "FastForge",