aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-avatar-chooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-avatar-chooser.c')
-rw-r--r--libempathy-gtk/empathy-avatar-chooser.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-avatar-chooser.c b/libempathy-gtk/empathy-avatar-chooser.c
index 1c5ff7b5e..bd878608e 100644
--- a/libempathy-gtk/empathy-avatar-chooser.c
+++ b/libempathy-gtk/empathy-avatar-chooser.c
@@ -1073,9 +1073,11 @@ empathy_avatar_chooser_get_image_data (EmpathyAvatarChooser *chooser,
}
void
-empathy_avatar_chooser_set_connection (EmpathyAvatarChooser *self,
- TpConnection *connection)
+empathy_avatar_chooser_set_account (EmpathyAvatarChooser *self,
+ TpAccount *account)
{
- avatar_chooser_set_connection (self, connection);
+ g_return_if_fail (account != NULL);
+
+ avatar_chooser_set_connection (self, tp_account_get_connection (account));
g_object_notify (G_OBJECT (self), "connection");
}