diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-chooser.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-contact-chooser.c b/libempathy-gtk/empathy-contact-chooser.c index a4a0aad1d..7faee3e09 100644 --- a/libempathy-gtk/empathy-contact-chooser.c +++ b/libempathy-gtk/empathy-contact-chooser.c @@ -201,7 +201,7 @@ get_contacts_cb (TpConnection *connection, if (n_contacts != 1) return; - account = g_object_get_data (G_OBJECT (connection), "account"); + account = tp_connection_get_account (connection); store = tpf_persona_store_new (account); personas = GEE_SET ( @@ -252,10 +252,6 @@ add_temporary_individuals (EmpathyContactChooser *self, if (conn == NULL) continue; - /* One day we'll have tp_connection_get_account()... */ - g_object_set_data_full (G_OBJECT (conn), "account", - g_object_ref (account), g_object_unref); - tp_connection_get_contacts_by_id (conn, 1, &id, G_N_ELEMENTS (features), features, get_contacts_cb, self->priv->add_temp_ctx, NULL, G_OBJECT (self)); |