aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-10 02:05:28 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-28 00:33:42 +0800
commit4db67c186241cca03b2f4002ac592b4d86601eb8 (patch)
treedef222d0caf9e8790359182cb44c13f990fa01b9
parentaf3cc2af6c30341cc2a12f63b397d733d3de8a6f (diff)
downloadgsoc2013-empathy-4db67c186241cca03b2f4002ac592b4d86601eb8.tar
gsoc2013-empathy-4db67c186241cca03b2f4002ac592b4d86601eb8.tar.gz
gsoc2013-empathy-4db67c186241cca03b2f4002ac592b4d86601eb8.tar.bz2
gsoc2013-empathy-4db67c186241cca03b2f4002ac592b4d86601eb8.tar.lz
gsoc2013-empathy-4db67c186241cca03b2f4002ac592b4d86601eb8.tar.xz
gsoc2013-empathy-4db67c186241cca03b2f4002ac592b4d86601eb8.tar.zst
gsoc2013-empathy-4db67c186241cca03b2f4002ac592b4d86601eb8.zip
Enable 'send video' buttons and display the preview if call has 'initial video' (#601288)
-rw-r--r--src/empathy-call-window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c6c69aeb2..ce05a4923 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1021,6 +1021,16 @@ empathy_call_window_constructed (GObject *object)
empathy_call_window_setup_avatars (self, priv->handler);
empathy_call_window_set_state_connecting (self);
+
+ if (empathy_call_handler_has_initial_video (priv->handler))
+ {
+ /* Enable 'send video' buttons and display the preview */
+ gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (priv->send_video), TRUE);
+ gtk_toggle_tool_button_set_active (
+ GTK_TOGGLE_TOOL_BUTTON (priv->camera_button), TRUE);
+
+ display_video_preview (self, TRUE);
+ }
}
static void empathy_call_window_dispose (GObject *object);