summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-07-13 13:34:26 +0200
committerben <benjaminfranzke@googlemail.com>2010-07-13 13:34:26 +0200
commit853e749c94eac7263a1568a73216d9d74eb5d36c (patch)
treeffb0cf257e3cc7d0fc707c5d1dc8d752ff893ea6 /src
parent3975b995067165991833c3d738b3618190227434 (diff)
downloadpa-sink-ctl-853e749c94eac7263a1568a73216d9d74eb5d36c.tar.gz
pa-sink-ctl-853e749c94eac7263a1568a73216d9d74eb5d36c.tar.bz2
pa-sink-ctl-853e749c94eac7263a1568a73216d9d74eb5d36c.zip
remove all tabs and use direct positioning
Diffstat (limited to 'src')
-rw-r--r--src/interface.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/interface.c b/src/interface.c
index 7e80023..d5e8923 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -63,7 +63,7 @@ void print_sink_list(void) {
if (i == chooser_sink && chooser_input == -1)
wattron(menu_win, A_REVERSE);
- mvwprintw(menu_win, y+i+offset, x, "%d\t%-10s",
+ mvwprintw(menu_win, y+i+offset, x, "%2d %-13s",
sink_list[i]->index,
sink_list[i]->name);
@@ -102,7 +102,7 @@ void print_input_list(int sink_num) {
if (chooser_sink == sink_num && chooser_input == i)
wattron(menu_win, A_REVERSE);
- mvwprintw(menu_win, offset + i, 2, "\t %-9s",
+ mvwprintw(menu_win, offset + i, 2, "%*s%-*s", 2+1+1, "", 13 - 1,
sink_list[sink_num]->input_list[i]->name);
if (chooser_sink == sink_num && chooser_input == i)
@@ -115,7 +115,9 @@ void print_input_list(int sink_num) {
void print_volume(pa_volume_t volume, int y) {
- int x = 20;
+ //int x = 20;
+ int x = 2 /* left */ + 2 /* index num width */ + 1 /* space */ +
+ 1 /* space */ + 13 /* input name*/ + 1 /* space */;
unsigned int vol = (unsigned int) ( (((double)volume) / ((double)VOLUME_MAX)) * VOLUME_BAR_LEN );
mvwprintw(menu_win, y, x - 1 , "[");