From c86c9a16c9745020f2da51fcd561d3addd000d51 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 16 Feb 2009 21:25:39 +0000 Subject: Hook up the volume button Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2494 --- src/empathy-call-window.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/empathy-call-window.c') diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 6dece24c7..05681c6d6 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -109,6 +109,10 @@ static void empathy_call_window_hangup (EmpathyCallWindow *window); static void empathy_call_window_status_message (EmpathyCallWindow *window, gchar *message); +static void +empathy_call_window_volume_changed_cb (GtkScaleButton *button, + gdouble value, EmpathyCallWindow *window); + static void empathy_call_window_setup_menubar (EmpathyCallWindow *self) { @@ -126,7 +130,6 @@ empathy_call_window_setup_toolbar (EmpathyCallWindow *self) EmpathyCallWindowPriv *priv = GET_PRIV (self); GtkWidget *hangup; GtkWidget *mic; - GtkWidget *volume_button; GtkWidget *camera; GtkWidget *toolbar; GtkToolItem *tool_item; @@ -735,3 +738,13 @@ empathy_call_window_status_message (EmpathyCallWindow *window, gtk_statusbar_push (GTK_STATUSBAR (priv->statusbar), priv->context_id, message); } + +static void +empathy_call_window_volume_changed_cb (GtkScaleButton *button, + gdouble value, EmpathyCallWindow *window) +{ + EmpathyCallWindowPriv *priv = GET_PRIV (window); + + empathy_audio_sink_set_volume (EMPATHY_GST_AUDIO_SINK (priv->audio_output), + value); +} -- cgit v1.2.3