[empathy] CallWindow: get the mic volume upon init
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] CallWindow: get the mic volume upon init
- Date: Mon, 15 Aug 2011 08:47:39 +0000 (UTC)
commit 81537370686d895951625498a7c2b21d854bc384
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Fri Aug 12 17:45:50 2011 +0100
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 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index e2e103c..ef33594 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]