aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-09 20:02:04 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-12 17:20:51 +0800
commit5531c75fbba792d0b6af2ba8e72fdced6e67ca74 (patch)
tree4a5ceb769f8b86e126fd3731e4fd34e1c6f8a630 /libempathy-gtk/empathy-contact-widget.c
parent0fd156b0466bf42db93a58b1426386c84ad7e43b (diff)
downloadgsoc2013-empathy-5531c75fbba792d0b6af2ba8e72fdced6e67ca74.tar
gsoc2013-empathy-5531c75fbba792d0b6af2ba8e72fdced6e67ca74.tar.gz
gsoc2013-empathy-5531c75fbba792d0b6af2ba8e72fdced6e67ca74.tar.bz2
gsoc2013-empathy-5531c75fbba792d0b6af2ba8e72fdced6e67ca74.tar.lz
gsoc2013-empathy-5531c75fbba792d0b6af2ba8e72fdced6e67ca74.tar.xz
gsoc2013-empathy-5531c75fbba792d0b6af2ba8e72fdced6e67ca74.tar.zst
gsoc2013-empathy-5531c75fbba792d0b6af2ba8e72fdced6e67ca74.zip
change empathy_avatar_chooser_set_connection to empathy_avatar_chooser_set_account
This is a first step in having a more account centric Empathy. This will be used once we'll have Protocol objects to set avatar on offline accounts.
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index b7f4a2696..062bcebf4 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -969,10 +969,14 @@ static void
update_avatar_chooser_account_cb (EmpathyAccountChooser *account_chooser,
EmpathyAvatarChooser *avatar_chooser)
{
- TpConnection *connection;
+ TpAccount *account;
+
+ account = empathy_account_chooser_dup_account (account_chooser);
+ if (account == NULL)
+ return;
- connection = empathy_account_chooser_get_connection (account_chooser);
- empathy_avatar_chooser_set_connection (avatar_chooser, connection);
+ empathy_avatar_chooser_set_account (avatar_chooser, account);
+ g_object_unref (account);
}
static void