]> git.0d.be Git - empathy.git/commitdiff
Enable 'send video' buttons and display the preview if call has 'initial video' ...
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 9 Nov 2009 18:05:28 +0000 (18:05 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 27 Nov 2009 16:33:42 +0000 (16:33 +0000)
src/empathy-call-window.c

index c6c69aeb27d26bf2567290c697431a6816973a11..ce05a4923ef3acb2c77c931f4de1409a49080c0d 100644 (file)
@@ -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);