aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-02-17 05:25:39 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-17 05:25:39 +0800
commitc86c9a16c9745020f2da51fcd561d3addd000d51 (patch)
treeb3ce67ae1ec74a35b9596659e15e0f3a38bb0530 /src/empathy-call-window.c
parentd014ca75a42de451478622dc4e41f7d930e7eccb (diff)
downloadgsoc2013-empathy-c86c9a16c9745020f2da51fcd561d3addd000d51.tar
gsoc2013-empathy-c86c9a16c9745020f2da51fcd561d3addd000d51.tar.gz
gsoc2013-empathy-c86c9a16c9745020f2da51fcd561d3addd000d51.tar.bz2
gsoc2013-empathy-c86c9a16c9745020f2da51fcd561d3addd000d51.tar.lz
gsoc2013-empathy-c86c9a16c9745020f2da51fcd561d3addd000d51.tar.xz
gsoc2013-empathy-c86c9a16c9745020f2da51fcd561d3addd000d51.tar.zst
gsoc2013-empathy-c86c9a16c9745020f2da51fcd561d3addd000d51.zip
Hook up the volume button
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2494
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c15
1 files changed, 14 insertions, 1 deletions
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
@@ -110,6 +110,10 @@ 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)
{
EmpathyCallWindowPriv *priv = GET_PRIV (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);
+}