From 81537370686d895951625498a7c2b21d854bc384 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Fri, 12 Aug 2011 17:45:50 +0100 Subject: [PATCH] CallWindow: get the mic volume upon init Otherwise it'll be zero and when we unmute the mic, we'll set the volume to zero as we won't know the old value. https://bugzilla.gnome.org/show_bug.cgi?id=656415 --- src/empathy-call-window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index e2e103c6..ef335948 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -984,6 +984,11 @@ empathy_call_window_init (EmpathyCallWindow *self) empathy_call_window_show_hangup_button (self, TRUE); priv->settings = g_settings_new (EMPATHY_PREFS_CALL_SCHEMA); + + /* Retrieve initial volume */ + priv->volume = g_settings_get_double (priv->settings, + EMPATHY_PREFS_CALL_SOUND_VOLUME) / 100.0; + g_signal_connect (priv->settings, "changed::"EMPATHY_PREFS_CALL_SOUND_VOLUME, G_CALLBACK (empathy_call_window_prefs_volume_changed_cb), self); -- 2.39.2