]> git.0d.be Git - empathy.git/commitdiff
Hook up the volume button
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 16 Feb 2009 21:25:39 +0000 (21:25 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 16 Feb 2009 21:25:39 +0000 (21:25 +0000)
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2494

src/empathy-call-window.c

index 6dece24c79ad309c93bfc4d6efbd926d6e8ebd9f..05681c6d648e6fc27c2fa36bd2a63dcd86e41104 100644 (file)
@@ -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);
+}