summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-18 14:50:36 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-18 14:51:17 +0100
commit2d4dcc93891570391a993fa151f0ef02997e2307 (patch)
treeda41f1dca6acc7ca0c576647ea0659a7c934fe1b /src
parent1e9081f969a292013f522d70fff8b10333aca2e8 (diff)
downloadpa-sink-ctl-2d4dcc93891570391a993fa151f0ef02997e2307.tar.gz
pa-sink-ctl-2d4dcc93891570391a993fa151f0ef02997e2307.tar.bz2
pa-sink-ctl-2d4dcc93891570391a993fa151f0ef02997e2307.zip
interface: Dont postfix spaces, always prefix
This'll make it possible to have proper displaying when clamping ctx::max_name_len in future.
Diffstat (limited to 'src')
-rw-r--r--src/interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface.c b/src/interface.c
index 009a0ca..f904407 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -114,14 +114,14 @@ static void
print_volume(struct context *ctx, struct vol_ctl *ctl, int y)
{
gint x = 2 /* left */ + 2 /* index num width */ + 1 /* space */ +
- 1 /* space */ + ctx->max_name_len + 1 /* space */;
+ 1 /* space */ + ctx->max_name_len;
/* mute button + brackets + space */
- int volume_bar_len = getmaxx(ctx->menu_win) - x - 6;
+ int volume_bar_len = getmaxx(ctx->menu_win) - x - 7;
gint vol = (gint) (volume_bar_len * ctl->vol / PA_VOLUME_NORM);
- mvwprintw(ctx->menu_win, y, x - 1, "[%c]", ctl->mute ? 'M' : ' ');
- x += 3;
+ mvwprintw(ctx->menu_win, y, x - 1, " [%c]", ctl->mute ? 'M' : ' ');
+ x += 4;
mvwprintw(ctx->menu_win, y, x - 1 , "[");
for (gint i = 0; i < vol; ++i)