[gnome-media] Applet should not set volume on startup
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-media] Applet should not set volume on startup
- Date: Tue, 2 Feb 2010 15:21:29 +0000 (UTC)
commit 5554b40bed97a01ecca979ff8c94f09e6b710f94
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 2 15:18:17 2010 +0000
Applet should not set volume on startup
When the applet sets its initial value, if the value is different
from the default, we'd set the scale value. Which would then
feed back into the value-changed for the scale, and sometimes
clip the value.
We shouldn't touch the sound on startup, when setting the
scale's initial value.
https://bugzilla.gnome.org/show_bug.cgi?id=606914
gnome-volume-control/src/gvc-stream-status-icon.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-stream-status-icon.c b/gnome-volume-control/src/gvc-stream-status-icon.c
index 9185f1a..4dad262 100644
--- a/gnome-volume-control/src/gvc-stream-status-icon.c
+++ b/gnome-volume-control/src/gvc-stream-status-icon.c
@@ -541,9 +541,11 @@ gvc_stream_status_icon_set_mixer_stream (GvcStreamStatusIcon *icon,
g_object_ref (icon->priv->mixer_stream);
+ icon->priv->thaw = TRUE;
adj = GTK_ADJUSTMENT (gvc_channel_bar_get_adjustment (GVC_CHANNEL_BAR (icon->priv->bar)));
gtk_adjustment_set_value (adj,
gvc_mixer_stream_get_volume (icon->priv->mixer_stream));
+ icon->priv->thaw = FALSE;
g_signal_connect (icon->priv->mixer_stream,
"notify::volume",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]