ref: dac34eb2939538350059a480d08b81b20ed18b98
parent: 2e785d75830e6da013f4c15516dc80ed65fa56b9
author: cancel <cancel@cancel.fm>
date: Mon Dec 17 21:56:20 EST 2018
Cleanup
--- a/term_util.h
+++ b/term_util.h
@@ -58,9 +58,7 @@
bool stack_changed;
} Qnav_stack;
-typedef struct {
- Qblock qblock;
-} Qmsg;
+typedef struct Qmsg Qmsg;
typedef struct Qmenu Qmenu;
--- a/tui_main.c
+++ b/tui_main.c
@@ -1498,6 +1498,7 @@
void push_main_menu(void) {
Qmenu* qm = qmenu_create(Main_menu_id);
+ qmenu_set_title(qm, "ORCA");
qmenu_add_choice(qm, "Save", Main_menu_save);
qmenu_add_choice(qm, "Save As...", Main_menu_save_as);
qmenu_add_spacer(qm);
@@ -1506,7 +1507,6 @@
qmenu_add_spacer(qm);
qmenu_add_choice(qm, "Quit", Main_menu_quit);
qmenu_push_to_nav(qm);
- qmenu_set_title(qm, "ORCA");
}
void push_about_msg(void) {
@@ -1604,8 +1604,8 @@
int mid_pad = 2;
int total_width = 1 + w_input + mid_pad + w_desc;
Qmsg* qm = qmsg_push(ORCA_ARRAY_COUNTOF(items), total_width);
- WINDOW* w = qmsg_window(qm);
qmsg_set_title(qm, "Controls");
+ WINDOW* w = qmsg_window(qm);
for (int i = 0; i < (int)ORCA_ARRAY_COUNTOF(items); ++i) {
if (items[i].input) {
wmove(w, i, 1 + w_input - (int)strlen(items[i].input));
@@ -1634,9 +1634,9 @@
void push_save_as_form(void) {
Qform* qf = qform_create(Save_as_form_id);
+ qform_set_title(qf, "Save As");
qform_add_text_line(qf, 0, "file name");
qform_push_to_nav(qf);
- qform_set_title(qf, "Save As");
}
//