]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-tube.c
tp-file: ready property has to be read only
[empathy.git] / libempathy / empathy-tp-tube.c
index 557ae9d878e6055c49c24f8ed0f2c0e0cf436645..5979615ef2c93f21f9f6ac74b2e210da0cf1dffe 100644 (file)
@@ -63,8 +63,6 @@ free_empathy_tp_tube_accept_data (gpointer data)
 typedef struct
 {
   TpChannel *channel;
-  /* FIXME readd support for parameters.. */
-  GHashTable *parameters;
   EmpTubeChannelState state;
 } EmpathyTpTubePriv;
 
@@ -199,9 +197,6 @@ tp_tube_finalize (GObject *object)
       g_object_unref (priv->channel);
     }
 
-  if (priv->parameters != NULL)
-  g_hash_table_destroy (priv->parameters);
-
   G_OBJECT_CLASS (empathy_tp_tube_parent_class)->finalize (object);
 }
 
@@ -259,8 +254,6 @@ empathy_tp_tube_new_stream_tube (EmpathyContact *contact,
                                  const gchar *service,
                                  GHashTable *parameters)
 {
-  MissionControl *mc;
-  McAccount *account;
   TpConnection *connection;
   TpChannel *channel;
   gchar *object_path;
@@ -277,12 +270,7 @@ empathy_tp_tube_new_stream_tube (EmpathyContact *contact,
   g_return_val_if_fail (hostname != NULL, NULL);
   g_return_val_if_fail (service != NULL, NULL);
 
-  mc = empathy_mission_control_dup_singleton ();
-  account = empathy_contact_get_account (contact);
-  connection = mission_control_get_tpconnection (mc, account, NULL);
-  g_object_unref (mc);
-
-  tp_connection_run_until_ready (connection, FALSE, NULL, NULL);
+  connection = empathy_contact_get_connection (contact);
 
   request = g_hash_table_new_full (g_str_hash, g_str_equal, NULL,
       (GDestroyNotify) tp_g_value_slice_free);