diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-13 00:45:50 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-15 16:44:48 +0800 |
commit | 81537370686d895951625498a7c2b21d854bc384 (patch) | |
tree | 7655490cb96abf2b02d906a37176744c728445b4 /src | |
parent | 7660dd99c14c92e097eceade559297b8d569e34d (diff) | |
download | gsoc2013-empathy-81537370686d895951625498a7c2b21d854bc384.tar gsoc2013-empathy-81537370686d895951625498a7c2b21d854bc384.tar.gz gsoc2013-empathy-81537370686d895951625498a7c2b21d854bc384.tar.bz2 gsoc2013-empathy-81537370686d895951625498a7c2b21d854bc384.tar.lz gsoc2013-empathy-81537370686d895951625498a7c2b21d854bc384.tar.xz gsoc2013-empathy-81537370686d895951625498a7c2b21d854bc384.tar.zst gsoc2013-empathy-81537370686d895951625498a7c2b21d854bc384.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index e2e103c61..ef3359483 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); |