wip
This commit is contained in:
parent
44f6e9e1ca
commit
1bd37963c8
7 changed files with 170 additions and 0 deletions
18
mimview/ui.c
Normal file
18
mimview/ui.c
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue