changeset 26912:6028712210ca

Add a section break between resources in "Get info"
author Marcus Lundblad <ml@update.uu.se>
date Wed, 06 May 2009 19:01:31 +0000
parents 1a1c12c122c9
children 7ff22eb86083
files ChangeLog libpurple/protocols/jabber/buddy.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed May 06 06:40:24 2009 +0000
+++ b/ChangeLog	Wed May 06 19:01:31 2009 +0000
@@ -33,6 +33,7 @@
 	* 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)
--- a/libpurple/protocols/jabber/buddy.c	Wed May 06 06:40:24 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Wed May 06 19:01:31 2009 +0000
@@ -852,6 +852,13 @@
 
 			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 ? " " : ""),