summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryounix <younix@eva.hope>2011-02-08 15:44:26 +0100
committeryounix <younix@eva.hope>2011-02-08 15:44:26 +0100
commit088f652fc66a422eed024fe75eb4b5537fbe50e9 (patch)
tree265a7d728c9ba23d2d32744e5a0aab77d71463bc
parent3afa6fcb3e07dbe8a45227522b6c59340de37013 (diff)
downloadpa-sink-ctl-088f652fc66a422eed024fe75eb4b5537fbe50e9.tar.gz
pa-sink-ctl-088f652fc66a422eed024fe75eb4b5537fbe50e9.tar.bz2
pa-sink-ctl-088f652fc66a422eed024fe75eb4b5537fbe50e9.zip
Fix: output formating
- max_name_len(): add indentation space - add space between volume bar and border
-rw-r--r--src/interface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interface.c b/src/interface.c
index 416a018..0a065ef 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -163,7 +163,7 @@ void print_volume(pa_volume_t volume, int mute, int y)
1 /* space */ + max_name_len + 1 /* space */;
//gint vol = (gint) (VOLUME_BAR_LEN * volume / PA_VOLUME_NORM);
- int volume_bar_len = getmaxx(menu_win) - x - 5 /* mute button + brackets */;
+ int volume_bar_len = getmaxx(menu_win) - x - 6 /* mute button + brackets + space */;
gint vol = (gint) (volume_bar_len * volume / PA_VOLUME_NORM);
mvwprintw(menu_win, y, x - 1, "[%c]", mute ? 'M' : ' ');
@@ -196,7 +196,8 @@ void set_max_name_len(void)
input_num < sink_list_get(sink_num)->input_list->len;
++input_num) {
- len = strlen(sink_input_get(sink_num, input_num)->name);
+ len = strlen(sink_input_get(sink_num, input_num)->name)
+ + 1 /* indentation */;
if (len > max_name_len)
max_name_len = len;