aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-03-09 04:18:41 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-09 04:18:41 +0800
commit8f73d98bc357c0a4b8991e86113250fcdcea31b0 (patch)
tree3c051b3eb2be6cf2ed3ae9a8d57ef9cbcf9fe484 /src
parent61f15230eed6c996c562bd4670961e8434b8db7a (diff)
downloadgsoc2013-empathy-8f73d98bc357c0a4b8991e86113250fcdcea31b0.tar
gsoc2013-empathy-8f73d98bc357c0a4b8991e86113250fcdcea31b0.tar.gz
gsoc2013-empathy-8f73d98bc357c0a4b8991e86113250fcdcea31b0.tar.bz2
gsoc2013-empathy-8f73d98bc357c0a4b8991e86113250fcdcea31b0.tar.lz
gsoc2013-empathy-8f73d98bc357c0a4b8991e86113250fcdcea31b0.tar.xz
gsoc2013-empathy-8f73d98bc357c0a4b8991e86113250fcdcea31b0.tar.zst
gsoc2013-empathy-8f73d98bc357c0a4b8991e86113250fcdcea31b0.zip
Set the camera button sensitive while connected and there is a video input
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2641
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 0564daaa2..efc304811 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -188,6 +188,7 @@ empathy_call_window_setup_toolbar (EmpathyCallWindow *self)
camera = glade_xml_get_widget (priv->glade, "camera");
priv->camera_button = camera;
gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (camera), FALSE);
+ gtk_widget_set_sensitive (priv->camera_button, FALSE);
g_signal_connect (G_OBJECT (camera), "toggled",
G_CALLBACK (empathy_call_window_camera_toggled_cb), self);
@@ -835,6 +836,9 @@ empathy_call_window_connected (gpointer user_data)
if (empathy_tp_call_has_dtmf (call))
gtk_widget_set_sensitive (priv->dtmf_panel, TRUE);
+ if (priv->video_input != NULL)
+ gtk_widget_set_sensitive (priv->camera_button, TRUE);
+
g_object_unref (call);
g_mutex_lock (priv->lock);