aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-31 16:20:28 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-31 16:49:53 +0800
commit022c807d5dee69a54c565051cea62571b29d3ebf (patch)
tree81c45f82dfcf55b3be5f7692debd49be6808769b /src/empathy-call-window.c
parent7da7c9f115124a274a8566a77624338816c641b3 (diff)
downloadgsoc2013-empathy-022c807d5dee69a54c565051cea62571b29d3ebf.tar
gsoc2013-empathy-022c807d5dee69a54c565051cea62571b29d3ebf.tar.gz
gsoc2013-empathy-022c807d5dee69a54c565051cea62571b29d3ebf.tar.bz2
gsoc2013-empathy-022c807d5dee69a54c565051cea62571b29d3ebf.tar.lz
gsoc2013-empathy-022c807d5dee69a54c565051cea62571b29d3ebf.tar.xz
gsoc2013-empathy-022c807d5dee69a54c565051cea62571b29d3ebf.tar.zst
gsoc2013-empathy-022c807d5dee69a54c565051cea62571b29d3ebf.zip
CallWindow: make video buttons unsensitive when video not supported
If we're calling an audio-only contact, make the camera buttons unsensitive. https://bugzilla.gnome.org/show_bug.cgi?id=656871
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c936bb503..ccec9f628 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -2004,6 +2004,12 @@ empathy_call_window_constructed (GObject *object)
g_object_get (priv->handler, "target-contact", &priv->contact, NULL);
g_assert (priv->contact != NULL);
+ if (!empathy_contact_can_voip_video (priv->contact))
+ {
+ gtk_widget_set_sensitive (priv->video_call_button, FALSE);
+ gtk_widget_set_sensitive (priv->camera_button, FALSE);
+ }
+
empathy_call_window_setup_avatars (self, priv->handler);
empathy_call_window_set_state_connecting (self);