comparison finch/gntblist.c @ 19305:f0b25c6fa806

Fix #2607. (Finch tooltip HTML display)
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 17 Aug 2007 18:26:10 +0000
parents 5551e5ec1ce0
children f520bf6dd4bc 722d5dc9f0bc
comparison
equal deleted inserted replaced
19304:9e9f3442764c 19305:f0b25c6fa806
1290 user_info = purple_notify_user_info_new(); 1290 user_info = purple_notify_user_info_new();
1291 1291
1292 account = purple_buddy_get_account(buddy); 1292 account = purple_buddy_get_account(buddy);
1293 presence = purple_buddy_get_presence(buddy); 1293 presence = purple_buddy_get_presence(buddy);
1294 1294
1295 if (!full || g_utf8_collate(purple_buddy_get_name(buddy), alias)) 1295 if (!full || g_utf8_collate(purple_buddy_get_name(buddy), alias)) {
1296 purple_notify_user_info_add_pair(user_info, _("Nickname"), alias); 1296 char *esc = g_markup_escape_text(alias, -1);
1297 purple_notify_user_info_add_pair(user_info, _("Nickname"), esc);
1298 g_free(esc);
1299 }
1297 1300
1298 tmp = g_strdup_printf("%s (%s)", 1301 tmp = g_strdup_printf("%s (%s)",
1299 purple_account_get_username(account), 1302 purple_account_get_username(account),
1300 purple_account_get_protocol_name(account)); 1303 purple_account_get_protocol_name(account));
1301 purple_notify_user_info_add_pair(user_info, _("Account"), tmp); 1304 purple_notify_user_info_add_pair(user_info, _("Account"), tmp);