[gnome-control-center] sound: volume is unsigned so cannot be <= 0
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sound: volume is unsigned so cannot be <= 0
- Date: Thu, 20 Oct 2011 15:11:35 +0000 (UTC)
commit bafe9c40200ab33e43b255c76ff6ec34ef30dade
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 20 16:08:53 2011 +0100
sound: volume is unsigned so cannot be <= 0
panels/sound/gvc-stream-status-icon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/sound/gvc-stream-status-icon.c b/panels/sound/gvc-stream-status-icon.c
index 8cf4e13..6071de8 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]