From c3cfb3fe09defdcbd2937b915f3cb619940b2656 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 3 May 2015 16:46:50 -0400 Subject: [PATCH] Added a no menus option to the test program. --- test/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/main.c b/test/main.c index 156af1d3..73f20c98 100644 --- a/test/main.c +++ b/test/main.c @@ -30,10 +30,13 @@ int main(int argc, char *argv[]) const char *err; uiWindow *w; uiBox *page2; + int nomenus = 0; memset(&o, 0, sizeof (uiInitOptions)); for (i = 1; i < argc; i++) -{//TODO else { + if (strcmp(argv[i], "nomenus") == 0) + nomenus = 1; + else { fprintf(stderr, "%s: unrecognized option %s\n", argv[0], argv[i]); return 1; } @@ -45,7 +48,8 @@ int main(int argc, char *argv[]) return 1; } - initMenus(); + if (!nomenus) + initMenus(); w = newWindow("Main Window", 320, 240, 1); uiWindowOnClosing(w, onClosing, NULL);