summaryrefslogtreecommitdiff
path: root/finch/gntrequest.c
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2022-12-14 03:35:59 -0600
committerGary Kramlich <grim@reaperworld.com>2022-12-14 03:35:59 -0600
commit344c125bd3a949bed089f995314f5789344de24d (patch)
treedd006ab4197ceccc8275c7dcb42e59b39ecac8f2 /finch/gntrequest.c
parent411808c73b10620e65fa7f36582fe7e1aed6ccf4 (diff)
downloadpidgin-344c125bd3a949bed089f995314f5789344de24d.tar.gz
Update Finch for the PurpleAccount deprecations
Testing Done: Compiled and ran the tests Reviewed at https://reviews.imfreedom.org/r/2132/
Diffstat (limited to 'finch/gntrequest.c')
-rw-r--r--finch/gntrequest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/finch/gntrequest.c b/finch/gntrequest.c
index 9d0d13a4e3..7f0cb9d412 100644
--- a/finch/gntrequest.c
+++ b/finch/gntrequest.c
@@ -516,10 +516,11 @@ create_list_field(PurpleRequestField *field)
static void
add_account_to_combo(GntWidget *combo, PurpleAccount *account) {
+ PurpleContactInfo *info = PURPLE_CONTACT_INFO(account);
char *text = NULL;
text = g_strdup_printf("%s (%s)",
- purple_account_get_username(account),
+ purple_contact_info_get_username(info),
purple_account_get_protocol_name(account));
gnt_combo_box_add_data(GNT_COMBO_BOX(combo), account, text);
g_free(text);