pidgin: 8ef03a3e: Show the count of users when joining a c...

sadrul at pidgin.im sadrul at pidgin.im
Sun Jul 13 06:10:50 EDT 2008


-----------------------------------------------------------------
Revision: 8ef03a3edef528af90c03195f4225c8ee97214fd
Ancestor: 13cd7e63f2ef3cff7b18d5b797b9064f2ce6ede6
Author: sadrul at pidgin.im
Date: 2008-07-11T11:24:50
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8ef03a3edef528af90c03195f4225c8ee97214fd

Modified files:
        finch/gntconv.c

ChangeLog: 

Show the count of users when joining a chat.

-------------- next part --------------
============================================================
--- finch/gntconv.c	0f03247f6d08305fd7bae0331f8d40039abbe95e
+++ finch/gntconv.c	b98c9a4a2de42e9591493a7286ccfc2106f92140
@@ -1059,9 +1059,12 @@ finch_chat_add_users(PurpleConversation 
 	if (!new_arrivals)
 	{
 		/* Print the list of users in the room */
-		GString *string = g_string_new(_("List of users:\n"));
+		GString *string = g_string_new(NULL);
 		GList *iter;
+		int count = g_list_length(users);
 
+		g_string_printf(string,
+				ngettext("List of %d user:\n", "List of %d users:\n", count), count);
 		for (iter = users; iter; iter = iter->next)
 		{
 			PurpleConvChatBuddy *cbuddy = iter->data;


More information about the Commits mailing list