]> git.0d.be Git - empathy.git/commitdiff
empathy_call_new_with_streams: remove initial_audio arg
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 24 Feb 2014 13:33:55 +0000 (14:33 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 26 Feb 2014 09:32:36 +0000 (10:32 +0100)
We always pass TRUE.

https://bugzilla.gnome.org/show_bug.cgi?id=725070

libempathy-gtk/empathy-call-utils.c
libempathy-gtk/empathy-call-utils.h
libempathy-gtk/empathy-individual-menu.c
libempathy-gtk/empathy-log-window.c
libempathy-gtk/empathy-new-call-dialog.c
src/empathy-call-handler.c

index a235e7b999a25fed1a3200169481c715953bd8b2..261205b0f71841a22c722a8b7f0384f3fdc3afe1 100644 (file)
@@ -73,7 +73,6 @@ show_call_error (GError *error)
 
 GHashTable *
 empathy_call_create_call_request (const gchar *contact,
-    gboolean initial_audio,
     gboolean initial_video)
 {
   GHashTable *asv = tp_asv_new (
@@ -83,13 +82,12 @@ empathy_call_create_call_request (const gchar *contact,
       TP_HANDLE_TYPE_CONTACT,
     TP_PROP_CHANNEL_TARGET_ID, G_TYPE_STRING,
       contact,
+    TP_PROP_CHANNEL_TYPE_CALL_INITIAL_AUDIO, G_TYPE_BOOLEAN,
+      TRUE,
     NULL);
 
-  /* Only add InitialAudio or InitialVideo if they are true: it should work
+  /* Only add InitialVideo if it is true: it should work
    * with genuinely voice-only CMs. */
-  if (initial_audio)
-    tp_asv_set_boolean (asv, TP_PROP_CHANNEL_TYPE_CALL_INITIAL_AUDIO,
-                        initial_audio);
   if (initial_video)
     tp_asv_set_boolean (asv, TP_PROP_CHANNEL_TYPE_CALL_INITIAL_VIDEO,
                         initial_video);
@@ -116,7 +114,6 @@ create_call_channel_cb (GObject *source,
 void
 empathy_call_new_with_streams (const gchar *contact,
     TpAccount *account,
-    gboolean initial_audio,
     gboolean initial_video,
     gint64 timestamp)
 {
@@ -124,9 +121,7 @@ empathy_call_new_with_streams (const gchar *contact,
   TpAccountChannelRequest *call_req;
 
   /* Call */
-  call_request = empathy_call_create_call_request (contact,
-      initial_audio,
-      initial_video);
+  call_request = empathy_call_create_call_request (contact, initial_video);
 
   call_req = tp_account_channel_request_new (account, call_request, timestamp);
 
index 788d828f56ca470e5aa6407c5a55e829554bae1c..d8656e896a6ebc24ce29665a811036bf6b51c959 100644 (file)
@@ -28,12 +28,10 @@ G_BEGIN_DECLS
 /* Calls */
 void empathy_call_new_with_streams (const gchar *contact,
     TpAccount *account,
-    gboolean initial_audio,
     gboolean initial_video,
     gint64 timestamp);
 
 GHashTable * empathy_call_create_call_request (const gchar *contact,
-    gboolean initial_audio,
     gboolean initial_video);
 
 TpSendingState empathy_call_channel_get_video_state (TpCallChannel *self);
index 7f53a7a83d3d2af5af69ede4408abecde4096152..286eeaa70327f0be8b74371e723a9f38952478c9 100644 (file)
@@ -345,7 +345,7 @@ call_phone_number (FolksPhoneFieldDetails *details,
   DEBUG ("Try to call %s", number);
 
   empathy_call_new_with_streams (number,
-      account, TRUE, FALSE, empathy_get_current_action_time ());
+      account, FALSE, empathy_get_current_action_time ());
 
   g_free (number);
 }
@@ -1432,8 +1432,7 @@ empathy_individual_audio_call_menu_item_activated (GtkMenuItem *item,
 
   empathy_call_new_with_streams (empathy_contact_get_id (contact),
       empathy_contact_get_account (contact),
-      TRUE, FALSE,
-      empathy_get_current_action_time ());
+      FALSE, empathy_get_current_action_time ());
 
   emit_menu_item_activated (item);
 }
@@ -1468,8 +1467,7 @@ empathy_individual_video_call_menu_item_activated (GtkMenuItem *item,
 
   empathy_call_new_with_streams (empathy_contact_get_id (contact),
       empathy_contact_get_account (contact),
-      TRUE, TRUE,
-      empathy_get_current_action_time ());
+      TRUE, empathy_get_current_action_time ());
 
   emit_menu_item_activated (item);
 }
index 55202d3beb9e02e2293e652a216077b54240a5e9..d58de82e4e20b889e123ee752f5616c1a750f50f 100644 (file)
@@ -346,7 +346,7 @@ toolbutton_av_clicked (GtkToolButton *toolbutton,
   empathy_call_new_with_streams (
       empathy_contact_get_id (self->priv->selected_contact),
       empathy_contact_get_account (self->priv->selected_contact),
-      TRUE, video, gtk_get_current_event_time ());
+      video, gtk_get_current_event_time ());
 }
 
 static void
index d96d0bb5be944f02817912f074c5287c11222770..e981be279e02a009e17e3c030d3b16e6c680d8b1 100644 (file)
@@ -84,7 +84,7 @@ empathy_new_call_dialog_response (GtkDialog *dialog,
   g_assert (contact != NULL);
 
   empathy_call_new_with_streams (empathy_contact_get_id (contact),
-      empathy_contact_get_account (contact), TRUE,
+      empathy_contact_get_account (contact),
       response_id == RESPONSE_VIDEO, empathy_get_current_action_time ());
 
   g_object_unref (individual);
index 1c4939af11f23e22ac89c2e3639581f3c47cc85c..9d8da00ae0295d1d429ba3800c919181644e076f 100644 (file)
@@ -933,8 +933,7 @@ empathy_call_handler_start_call (EmpathyCallHandler *handler,
 
   account = empathy_contact_get_account (priv->contact);
   request = empathy_call_create_call_request (
-      empathy_contact_get_id (priv->contact),
-      priv->initial_audio, priv->initial_video);
+      empathy_contact_get_id (priv->contact), priv->initial_video);
 
   req = tp_account_channel_request_new (account, request, timestamp);