diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-19 18:20:02 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-19 18:51:44 +0800 |
commit | b9582cf3bee2de40dc4dbb9b73e0c2d998e25875 (patch) | |
tree | 4dd8b10d585b88067eaaa340b15a725bf6172308 /libempathy-gtk | |
parent | 010b9fefd050ad4d4c2627cad084b55573a455a3 (diff) | |
download | gsoc2013-empathy-b9582cf3bee2de40dc4dbb9b73e0c2d998e25875.tar gsoc2013-empathy-b9582cf3bee2de40dc4dbb9b73e0c2d998e25875.tar.gz gsoc2013-empathy-b9582cf3bee2de40dc4dbb9b73e0c2d998e25875.tar.bz2 gsoc2013-empathy-b9582cf3bee2de40dc4dbb9b73e0c2d998e25875.tar.lz gsoc2013-empathy-b9582cf3bee2de40dc4dbb9b73e0c2d998e25875.tar.xz gsoc2013-empathy-b9582cf3bee2de40dc4dbb9b73e0c2d998e25875.tar.zst gsoc2013-empathy-b9582cf3bee2de40dc4dbb9b73e0c2d998e25875.zip |
contact-chooser: use tp_connection_get_account()
https://bugzilla.gnome.org/show_bug.cgi?id=656866
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)); |