[empathy] Enable 'send video' buttons and display the preview if call has 'initial video' (#601288)



commit 4db67c186241cca03b2f4002ac592b4d86601eb8
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Nov 9 18:05:28 2009 +0000

    Enable 'send video' buttons and display the preview if call has 'initial video' (#601288)

 src/empathy-call-window.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c6c69ae..ce05a49 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]