# HG changeset patch # User Sadrul Habib Chowdhury # Date 1196810704 0 # Node ID 3303c02a46f52baacb4409b2cb90b0146386cbe8 # Parent 7f79f3099c72fbc7c00420304b43c9067c9c40df Show the topic of a chat, when available, in the tooltip. diff -r 7f79f3099c72 -r 3303c02a46f5 pidgin/gtkblist.c --- 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, _("\nTopic: %s"), topic ? topic : _("(no topic set)")); + } + if (prpl_info->chat_info != NULL) cur = prpl_info->chat_info(chat->account->gc); else