]> git.0d.be Git - empathy.git/commitdiff
Set the intial volume button level to a more correct one
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 16 Feb 2009 21:25:46 +0000 (21:25 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 16 Feb 2009 21:25:46 +0000 (21:25 +0000)
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2496

src/empathy-call-window.c

index b9dd5e5b3c3d893c102c3c2b20204b7a72f425eb..2d7b8dd43222ab5933790464622d4ec257e3ad88 100644 (file)
@@ -152,6 +152,10 @@ empathy_call_window_setup_toolbar (EmpathyCallWindow *self)
   gtk_toolbar_insert (GTK_TOOLBAR (toolbar), tool_item, -1);
 
   priv->volume_button = gtk_volume_button_new ();
+  /* FIXME listen to the audiosinks signals and update the button according to
+   * that, for now starting out at 1.0 and assuming only the app changes the
+   * volume will do */
+  gtk_scale_button_set_value (GTK_SCALE_BUTTON (priv->volume_button), 1.0);
   g_signal_connect (G_OBJECT (priv->volume_button), "value-changed",
     G_CALLBACK (empathy_call_window_volume_changed_cb), self);