From 462df78982f565f2304373de4858f0155ceb61b7 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 13 Dec 2011 08:22:26 +0100 Subject: Add config property to select display name to use --- src/interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/interface.c') diff --git a/src/interface.c b/src/interface.c index 60c4468..e2e8f48 100644 --- a/src/interface.c +++ b/src/interface.c @@ -163,7 +163,7 @@ set_max_name_len(struct context *ctx) for (l = ctx->sink_list; l; l = l->next) { sink_info *sink = l->data; - len = strlen(sink->device != NULL ? sink->device : sink->name); + len = strlen(sink->name); if (len > ctx->max_name_len) ctx->max_name_len = len; @@ -202,8 +202,7 @@ print_sink_list(struct context *ctx) wattron(ctx->menu_win, A_REVERSE); mvwprintw(ctx->menu_win, offset, x, "%2u %-*s", - sink->index, ctx->max_name_len, - sink->device != NULL ? sink->device : sink->name); + sink->index, ctx->max_name_len, sink->name); if (selected) wattroff(ctx->menu_win, A_REVERSE); -- cgit