From bafe9c40200ab33e43b255c76ff6ec34ef30dade Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 20 Oct 2011 16:08:53 +0100 Subject: [PATCH] sound: volume is unsigned so cannot be <= 0 --- panels/sound/gvc-stream-status-icon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/sound/gvc-stream-status-icon.c b/panels/sound/gvc-stream-status-icon.c index 8cf4e1398..6071de8a3 100644 --- a/panels/sound/gvc-stream-status-icon.c +++ b/panels/sound/gvc-stream-status-icon.c @@ -388,7 +388,7 @@ update_icon (GvcStreamStatusIcon *icon) can_decibel = gvc_mixer_stream_get_can_decibel (icon->priv->mixer_stream); /* select image */ - if (volume <= 0 || is_muted) { + if (volume == 0 || is_muted) { n = 0; } else { n = 3 * volume / PA_VOLUME_NORM + 1;