From 971aa19546d72ba5e6dc78216a57aa6de0fc1c66 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 18 Dec 2011 22:14:59 +0100 Subject: Initial support for printing available sources --- src/interface.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/interface.c') 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); } -- cgit