pidgin: 48b95d7d: Add a section break between resources in...

malu at pidgin.im malu at pidgin.im
Wed May 6 15:05:29 EDT 2009


-----------------------------------------------------------------
Revision: 48b95d7d853b96052d4478dd475e60a97e7bda8b
Ancestor: 0cb6e54b872e187a678895961106518e55aab987
Author: malu at pidgin.im
Date: 2009-05-06T19:01:31
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/48b95d7d853b96052d4478dd475e60a97e7bda8b

Modified files:
        ChangeLog libpurple/protocols/jabber/buddy.c

ChangeLog: 

Add a section break between resources in "Get info"

-------------- next part --------------
============================================================
--- ChangeLog	0847e0e7ff4926dbd7a86831ff7c92404025d726
+++ ChangeLog	35b87b9f602c316c18719675895826ea21acd8a3
@@ -33,6 +33,7 @@ version 2.6.0 (??/??/2009):
 	* Better support for receiving remote users' nicknames.
 	* /affiliate and /role will now list the room members with the specified
 	  affiliation/role if possible. (Andrei Mozzhuhin)
+	* Put section breaks between resources to improve readability
 
 	Yahoo:
 	* P2P file transfers. (Sulabh Mahajan)
============================================================
--- libpurple/protocols/jabber/buddy.c	2d47a35921aedf99c5bc00f8855701d0ad75c8c9
+++ libpurple/protocols/jabber/buddy.c	b707531ebde0a917aca9c10393e4f5ec6ec4b42c
@@ -852,6 +852,13 @@ static void jabber_buddy_info_show_if_re
 
 			jbr = resources->data;
 
+			/* put a section break between resources, this is not needed if
+			 we are at the first, because one was already added for the vcard
+			 section */
+			if (resources != jbi->jb->resources) {
+				purple_notify_user_info_prepend_section_break(user_info);
+			}
+
 			if(jbr->client.name) {
 				tmp = g_strdup_printf("%s%s%s", jbr->client.name,
 									  (jbr->client.version ? " " : ""),


More information about the Commits mailing list