changeset 15156:ff431329a01b

[gaim-migrate @ 17941] Update Bonjour to use Evan's snazzy new notify_user_info stuff committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 10 Dec 2006 09:02:48 +0000
parents 7696f5dec7d8
children e9b034a7d218
files libgaim/protocols/bonjour/bonjour.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/bonjour/bonjour.c	Sun Dec 10 09:02:47 2006 +0000
+++ b/libgaim/protocols/bonjour/bonjour.c	Sun Dec 10 09:02:48 2006 +0000
@@ -316,7 +316,7 @@
 }
 
 static void
-bonjour_tooltip_text(GaimBuddy *buddy, GString *str, gboolean full)
+bonjour_tooltip_text(GaimBuddy *buddy, GaimNotifyUserInfo *user_info, gboolean full)
 {
 	GaimPresence *presence;
 	GaimStatus *status;
@@ -334,9 +334,9 @@
 	else
 		status_description = gaim_status_get_name(status);
 
-	g_string_append_printf(str, _("\n<b>Status:</b> %s"), status_description);
+	gaim_notify_user_info_add_pair(user_info, _("Status"), status_description);
 	if (message != NULL)
-		g_string_append_printf(str, _("\n<b>Message:</b> %s"), message);
+		gaim_notify_user_info_add_pair(user_info, _("Message"), message);
 }
 
 static gboolean
@@ -414,7 +414,8 @@
 	NULL,                                                    /* new_xfer */
 	NULL,                                                    /* offline_message */
 	NULL,                                                    /* whiteboard_prpl_ops */
-	NULL,							 /* send_raw */
+	NULL,                                                    /* send_raw */
+	NULL,                                                    /* roomlist_room_serialize */
 };
 
 static GaimPluginInfo info =