summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-20 10:11:49 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-20 10:13:23 +0100
commite2e7ba1a6e74b33fe79d2f46e961d383200f458e (patch)
tree96fee0c4e4be03d6691ee7322c2bbbdf9c985fbf
parent2922071f2c1fee46bdaf60a820345632d3162b16 (diff)
downloadpa-sink-ctl-e2e7ba1a6e74b33fe79d2f46e961d383200f458e.tar.gz
pa-sink-ctl-e2e7ba1a6e74b33fe79d2f46e961d383200f458e.tar.bz2
pa-sink-ctl-e2e7ba1a6e74b33fe79d2f46e961d383200f458e.zip
interface: Add labels to the sink and source lists
-rw-r--r--src/interface.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index bbe902f..d6ab8b0 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -121,7 +121,6 @@ interface_redraw(struct interface *ifc)
werase(ifc->menu_win);
box(ifc->menu_win, 0, 0);
- wmove(ifc->menu_win, 2, 2); /* set initial cursor offset */
ifc->max_name_len = 0;
if (ifc->volume_bar) {
g_free(ifc->volume_bar);
@@ -136,11 +135,16 @@ interface_redraw(struct interface *ifc)
g_list_foreach(ctx->sink_list, max_name_len_helper, ifc);
g_list_foreach(ctx->source_list, max_name_len_helper, ifc);
+ wmove(ifc->menu_win, 2, 2);
+ wprintw(ifc->menu_win, "Sinks");
+ wmove(ifc->menu_win, 3, 2); /* set initial cursor offset */
g_list_foreach(ctx->sink_list, print_vol_ctl, ifc);
getmaxyx(ifc->menu_win, y, x);
whline(ifc->menu_win, 0, x - 4);
getyx(ifc->menu_win, y, x);
wmove(ifc->menu_win, y + 1, x);
+ wprintw(ifc->menu_win, "Sources");
+ wmove(ifc->menu_win, y + 2, x);
g_list_foreach(ctx->source_list, print_vol_ctl, ifc);
wrefresh(ifc->menu_win);