From 4db67c186241cca03b2f4002ac592b4d86601eb8 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 9 Nov 2009 18:05:28 +0000 Subject: Enable 'send video' buttons and display the preview if call has 'initial video' (#601288) --- src/empathy-call-window.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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); -- cgit v1.2.3