pidgin: 4d3eb692: Add number of occupants to the tooltip f...
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Wed Apr 2 08:30:48 EDT 2008
-----------------------------------------------------------------
Revision: 4d3eb6927ae6a1624885df1266da1fc681d35cde
Ancestor: 65096df30342ded83da196d39f2823839a692bd6
Author: nosnilmot at pidgin.im
Date: 2008-04-02T12:29:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4d3eb6927ae6a1624885df1266da1fc681d35cde
Modified files:
pidgin/gtkblist.c
ChangeLog:
Add number of occupants to the tooltip for chats. Fixes #3346
-------------- next part --------------
============================================================
--- pidgin/gtkblist.c dcdd29eeecc444d06605b662b800fd04b29ff968
+++ pidgin/gtkblist.c 0db209ac2d7b9108a07813e6720b0e6aa4bcf953
@@ -3165,11 +3165,16 @@ static char *pidgin_get_tooltip_text(Pur
chat->account);
g_free(chat_name);
}
- if (conv && prpl_info && (prpl_info->options & OPT_PROTO_CHAT_TOPIC) &&
- !purple_conv_chat_has_left(PURPLE_CONV_CHAT(conv))) {
- char *topic = g_markup_escape_text(purple_conv_chat_get_topic(PURPLE_CONV_CHAT(conv)), -1);
- g_string_append_printf(str, _("\n<b>Topic:</b> %s"), topic ? topic : _("(no topic set)"));
- g_free(topic);
+
+ if (conv && !purple_conv_chat_has_left(PURPLE_CONV_CHAT(conv))) {
+ g_string_append_printf(str, _("\n<b>Occupants:</b> %d"),
+ g_list_length(purple_conv_chat_get_users(PURPLE_CONV_CHAT(conv))));
+
+ if (prpl_info && (prpl_info->options & OPT_PROTO_CHAT_TOPIC)) {
+ char *topic = g_markup_escape_text(purple_conv_chat_get_topic(PURPLE_CONV_CHAT(conv)), -1);
+ g_string_append_printf(str, _("\n<b>Topic:</b> %s"), topic ? topic : _("(no topic set)"));
+ g_free(topic);
+ }
}
if (prpl_info->chat_info != NULL)
More information about the Commits
mailing list