From b1af8353ee25d53fc97bf1e3c8252c4511cfd13c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 13 Apr 2026 13:48:42 +0300 Subject: r2: add About menu item with author credit and source URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/c/fastforge.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/c') 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", -- cgit v1.2.3