]> git.0d.be Git - empathy.git/commitdiff
Drop usage of McAccount from EmpathyTpTube
authorXavier Claessens <xclaesse@gmail.com>
Tue, 17 Feb 2009 15:59:31 +0000 (16:59 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 22 Apr 2009 10:21:11 +0000 (12:21 +0200)
libempathy/empathy-tp-tube.c

index 64e45962d1eb50810d1e821b9a248c916084e179..5979615ef2c93f21f9f6ac74b2e210da0cf1dffe 100644 (file)
@@ -254,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;
@@ -272,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);