aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-11-18 04:14:01 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-11-19 01:49:56 +0800
commitad8497cb0edb8e6801e277cecf43b0c2129e6c41 (patch)
tree11f25d5c9316a111214cba5e5870cc3bafc9ffe1 /src/empathy-call-window.c
parent94f5ae453c43090c86913e1589d3ffb3873c50e6 (diff)
downloadgsoc2013-empathy-ad8497cb0edb8e6801e277cecf43b0c2129e6c41.tar
gsoc2013-empathy-ad8497cb0edb8e6801e277cecf43b0c2129e6c41.tar.gz
gsoc2013-empathy-ad8497cb0edb8e6801e277cecf43b0c2129e6c41.tar.bz2
gsoc2013-empathy-ad8497cb0edb8e6801e277cecf43b0c2129e6c41.tar.lz
gsoc2013-empathy-ad8497cb0edb8e6801e277cecf43b0c2129e6c41.tar.xz
gsoc2013-empathy-ad8497cb0edb8e6801e277cecf43b0c2129e6c41.tar.zst
gsoc2013-empathy-ad8497cb0edb8e6801e277cecf43b0c2129e6c41.zip
Remove call input volume configuration
As we rely on pulseaudio there is no point in saving our own volume configuration, pulseaudio does that for us. If we do save it, then we have no idea which volume to pick after connecting to pulse (the one we save, the one pulse saved, a random value?). On top of that our configuration implementation is plain ugly, the level meter didn't work etc. This is all much better configured using the gnome-control-center sound panel, which is pretty nice for inputs and saves its volume on pulse for us to re-use :)
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index a2b89f2ba..5b7c6e1c1 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -200,8 +200,6 @@ struct _EmpathyCallWindowPriv
gulong video_output_motion_handler_id;
guint bus_message_source_id;
- gdouble volume;
-
/* String that contains the queued tones to send after the current ones
are sent */
GString *tones;
@@ -411,39 +409,6 @@ dtmf_start_tone_cb (EmpathyDialpadWidget *dialpad,
}
static void
-empathy_call_window_mic_volume_changed (EmpathyCallWindow *self)
-{
- EmpathyCallWindowPriv *priv = GET_PRIV (self);
- gdouble volume;
-
- volume = g_settings_get_double (priv->settings,
- EMPATHY_PREFS_CALL_SOUND_VOLUME) / 100.0;
-
- /* Don't store the volume because of muting */
- if (volume > 0 || gtk_toggle_tool_button_get_active (
- GTK_TOGGLE_TOOL_BUTTON (priv->mic_button)))
- priv->volume = volume;
-
- /* Ensure that the toggle button is active if the volume is > 0 and inactive
- * if it's smaller than 0 */
- if ((volume > 0) != gtk_toggle_tool_button_get_active (
- GTK_TOGGLE_TOOL_BUTTON (priv->mic_button)))
- gtk_toggle_tool_button_set_active (
- GTK_TOGGLE_TOOL_BUTTON (priv->mic_button), volume > 0);
-
- empathy_audio_src_set_volume (EMPATHY_GST_AUDIO_SRC (priv->audio_input),
- volume);
-}
-
-static void
-empathy_call_window_prefs_volume_changed_cb (GSettings *settings,
- gchar *key,
- EmpathyCallWindow *self)
-{
- empathy_call_window_mic_volume_changed (self);
-}
-
-static void
empathy_call_window_raise_actors (EmpathyCallWindow *self)
{
clutter_actor_raise_top (self->priv->floating_toolbar);
@@ -1904,13 +1869,6 @@ empathy_call_window_init (EmpathyCallWindow *self)
empathy_call_window_show_hangup_button (self, TRUE);
- /* 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);
-
empathy_geometry_bind (GTK_WINDOW (self), "call-window");
/* These signals are used to track the window position and save it
* when the window is destroyed. We need to do this as we don't want
@@ -4094,12 +4052,6 @@ empathy_call_window_restart_call (EmpathyCallWindow *window)
(GtkCallback) gtk_widget_destroy, NULL);
create_video_output_widget (window);
-
- /* While the call was disconnected, the input volume might have changed.
- * However, since the audio_input source was destroyed, its volume has not
- * been updated during that time. That's why we manually update it here */
- empathy_call_window_mic_volume_changed (window);
-
priv->outgoing = TRUE;
empathy_call_window_set_state_connecting (window);