This commit is contained in:
Nishi 2025-11-30 08:00:44 +09:00
commit 1bd37963c8
Signed by: nishi
GPG key ID: 27EF69B208EB9343
7 changed files with 170 additions and 0 deletions

18
mimview/ui.c Normal file
View file

@ -0,0 +1,18 @@
#include "mimview.h"
static void* help_about;
static void menu_menu(MwWidget handle, void* user, void* client) {
if(client == help_about) {
MDEAboutDialog(window, "mimview", VERSION, pxprojector);
}
}
void ui_init(void) {
void* m;
m = MwMenuAdd(menu, NULL, "?Help");
help_about = MwMenuAdd(menu, m, "About");
MwAddUserHandler(menu, MwNmenuHandler, menu_menu, NULL);
}