aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-02-17 05:25:39 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-02-17 05:25:39 +0800
commit035f78d1d667788c7b78d4ebfc9d81d246e9c5c8 (patch)
treeb3ce67ae1ec74a35b9596659e15e0f3a38bb0530
parentbfef4aa86d87667720a64f6e320e33992783c680 (diff)
downloadgsoc2013-empathy-035f78d1d667788c7b78d4ebfc9d81d246e9c5c8.tar
gsoc2013-empathy-035f78d1d667788c7b78d4ebfc9d81d246e9c5c8.tar.gz
gsoc2013-empathy-035f78d1d667788c7b78d4ebfc9d81d246e9c5c8.tar.bz2
gsoc2013-empathy-035f78d1d667788c7b78d4ebfc9d81d246e9c5c8.tar.lz
gsoc2013-empathy-035f78d1d667788c7b78d4ebfc9d81d246e9c5c8.tar.xz
gsoc2013-empathy-035f78d1d667788c7b78d4ebfc9d81d246e9c5c8.tar.zst
gsoc2013-empathy-035f78d1d667788c7b78d4ebfc9d81d246e9c5c8.zip
Hook up the volume button
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2494 4ee84921-47dd-4033-b63a-18d7a039a3e4
-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);
+}