Mercurial > pidgin
changeset 21771:3303c02a46f5
Show the topic of a chat, when available, in the tooltip.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 04 Dec 2007 23:25:04 +0000 |
parents | 7f79f3099c72 |
children | 21371ea85970 e8e9a53b7694 |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Tue Dec 04 22:58:38 2007 +0000 +++ b/pidgin/gtkblist.c Tue Dec 04 23:25:04 2007 +0000 @@ -3170,6 +3170,7 @@ GList *cur; struct proto_chat_entry *pce; char *name, *value; + PidginBlistNode *bnode = node->ui_data; chat = (PurpleChat *)node; prpl = purple_find_prpl(purple_account_get_protocol_id(chat->account)); @@ -3182,6 +3183,11 @@ g_free(tmp); } + if (bnode && bnode->conv.conv) { + const char *topic = purple_conv_chat_get_topic(PURPLE_CONV_CHAT(bnode->conv.conv)); + g_string_append_printf(str, _("\n<b>Topic:</b> %s"), topic ? topic : _("(no topic set)")); + } + if (prpl_info->chat_info != NULL) cur = prpl_info->chat_info(chat->account->gc); else