im.pidgin.pidgin: ec67b1544528adb30f7d2edac30b22912b2da19b

sadrul at pidgin.im sadrul at pidgin.im
Tue Dec 4 18:33:34 EST 2007


-----------------------------------------------------------------
Revision: ec67b1544528adb30f7d2edac30b22912b2da19b
Ancestor: 61fbfa070eaf4d115029c2d7f46cf278600aab12
Author: sadrul at pidgin.im
Date: 2007-12-04T23:25:04
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Show the topic of a chat, when available, in the tooltip.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	5933304f6217bea4062f54576d4be735fd34a6b8
+++ pidgin/gtkblist.c	3158c1c8d473795c4f8f7f2d8270829fc7c104ea
@@ -3170,6 +3170,7 @@ static char *pidgin_get_tooltip_text(Pur
 		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 @@ static char *pidgin_get_tooltip_text(Pur
 			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


More information about the Commits mailing list