[gnome-media] Make changing the volume unmute
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-media] Make changing the volume unmute
- Date: Wed, 3 Feb 2010 11:54:24 +0000 (UTC)
commit 2810b464dc594357dcafdbbaef5c7d29a1fbbbe1
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 3 11:49:15 2010 +0000
Make changing the volume unmute
In the volume preferences as in the applet.
https://bugzilla.gnome.org/show_bug.cgi?id=599663
gnome-volume-control/src/gvc-channel-bar.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-channel-bar.c b/gnome-volume-control/src/gvc-channel-bar.c
index 0e33d03..ff3a7ee 100644
--- a/gnome-volume-control/src/gvc-channel-bar.c
+++ b/gnome-volume-control/src/gvc-channel-bar.c
@@ -412,14 +412,9 @@ on_scale_button_release_event (GtkWidget *widget,
value = gtk_adjustment_get_value (adj);
- if (bar->priv->show_mute == FALSE) {
- /* this means the adjustment moved away from zero and
- * therefore we should unmute and set the volume. */
- if (value > 0)
- gvc_channel_bar_set_is_muted (bar, FALSE);
- else
- gvc_channel_bar_set_is_muted (bar, TRUE);
- }
+ /* this means the adjustment moved away from zero and
+ * therefore we should unmute and set the volume. */
+ gvc_channel_bar_set_is_muted (bar, (value == 0.0));
/* Play a sound! */
ca_gtk_play_for_widget (GTK_WIDGET (bar), 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]