[gnome-flashback] sound-applet: set volume and amplified before adjustment
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] sound-applet: set volume and amplified before adjustment
- Date: Wed, 16 Sep 2015 23:12:15 +0000 (UTC)
commit 433aa814a258885206e0632148bab25ab63509f0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Sep 17 02:10:46 2015 +0300
sound-applet: set volume and amplified before adjustment
.../libsound-applet/gvc-stream-status-icon.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gnome-flashback/libsound-applet/gvc-stream-status-icon.c
b/gnome-flashback/libsound-applet/gvc-stream-status-icon.c
index 70044ca..3affe28 100644
--- a/gnome-flashback/libsound-applet/gvc-stream-status-icon.c
+++ b/gnome-flashback/libsound-applet/gvc-stream-status-icon.c
@@ -554,6 +554,11 @@ gvc_stream_status_icon_set_mixer_stream (GvcStreamStatusIcon *icon,
g_object_ref (icon->priv->mixer_stream);
+ gvc_channel_bar_set_base_volume (GVC_CHANNEL_BAR (icon->priv->bar),
+ gvc_mixer_stream_get_base_volume (stream));
+ gvc_channel_bar_set_is_amplified (GVC_CHANNEL_BAR (icon->priv->bar),
+ gvc_mixer_stream_get_can_decibel (stream));
+
icon->priv->thaw = TRUE;
adj = GTK_ADJUSTMENT (gvc_channel_bar_get_adjustment (GVC_CHANNEL_BAR (icon->priv->bar)));
gtk_adjustment_set_value (adj,
@@ -569,10 +574,6 @@ gvc_stream_status_icon_set_mixer_stream (GvcStreamStatusIcon *icon,
G_CALLBACK (on_stream_is_muted_notify),
icon);
- gvc_channel_bar_set_base_volume (GVC_CHANNEL_BAR (icon->priv->bar),
- gvc_mixer_stream_get_base_volume (stream));
- gvc_channel_bar_set_is_amplified (GVC_CHANNEL_BAR (icon->priv->bar),
- gvc_mixer_stream_get_can_decibel (stream));
}
update_icon (icon);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]