summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-07-21 16:52:45 +0200
committerben <benjaminfranzke@googlemail.com>2010-07-21 16:52:45 +0200
commitbc5846ff488f8ec7418c2a91ef0794c3f0405d8d (patch)
treed75ba330a1093f5d2f3427f6b4a915a476048ab7
parent717bbe0a3245b2d66b2611d365c80b2e39d2b659 (diff)
downloadpa-sink-ctl-bc5846ff488f8ec7418c2a91ef0794c3f0405d8d.tar.gz
pa-sink-ctl-bc5846ff488f8ec7418c2a91ef0794c3f0405d8d.tar.bz2
pa-sink-ctl-bc5846ff488f8ec7418c2a91ef0794c3f0405d8d.zip
message window working now
-rw-r--r--src/interface.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/interface.c b/src/interface.c
index 2d8abb4..d88f6a0 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -75,7 +75,7 @@ void interface_init(void)
curs_set(0); /* hide cursor */
mvwprintw(msg_win, 0, 0, "Use arrow keys to go up and down, Press enter to select a choice");
// resize the windows into the correct form
-// interface_resize();
+ interface_resize();
set_resize_callback();
refresh();
}
@@ -94,7 +94,7 @@ void interface_resize(void)
wresize(menu_win, height - H_MSG_BOX, width);
wresize(msg_win, H_MSG_BOX, width);
- wmove(msg_win, height - H_MSG_BOX, 0);
+ mvwin(msg_win, height - H_MSG_BOX, 0);
print_sink_list();
}
@@ -106,11 +106,13 @@ void print_sink_list(void)
int y = 2;
int offset = 0;
- werase(menu_win);
werase(msg_win);
- box(menu_win, 0, 0);
box(msg_win, 0, 0);
- mvwprintw(msg_win, 0, 0, "Test!");
+ mvwprintw(msg_win, 1, 1, "Test!");
+ wrefresh(msg_win);
+
+ werase(menu_win);
+ box(menu_win, 0, 0);
/* derive chooser_input from selected_index (this is set when input is moved) */
if (chooser_input == -2) {