diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-18 22:14:59 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-18 22:17:38 +0100 |
commit | 971aa19546d72ba5e6dc78216a57aa6de0fc1c66 (patch) | |
tree | cb4bac0cfb2dd55fd5b320e8a1a657612acbc371 /src/interface.c | |
parent | 46daf142fe46b42ab75f0cc37480e74f7efc12e2 (diff) | |
download | pa-sink-ctl-971aa19546d72ba5e6dc78216a57aa6de0fc1c66.tar.gz pa-sink-ctl-971aa19546d72ba5e6dc78216a57aa6de0fc1c66.tar.bz2 pa-sink-ctl-971aa19546d72ba5e6dc78216a57aa6de0fc1c66.zip |
Initial support for printing available sources
Diffstat (limited to 'src/interface.c')
-rw-r--r-- | src/interface.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index ddd1bb6..c6ec5a1 100644 --- a/src/interface.c +++ b/src/interface.c @@ -157,6 +157,7 @@ void interface_redraw(struct interface *ifc) { struct context *ctx = container_of(ifc, struct context, interface); + gint x, y; werase(ifc->menu_win); box(ifc->menu_win, 0, 0); @@ -169,7 +170,14 @@ 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); + 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); + g_list_foreach(ctx->source_list, print_vol_ctl, ifc); wrefresh(ifc->menu_win); } |