diff src/protocols/msn/msn.c @ 7062:86ed8b2aa665

[gaim-migrate @ 7626] g_show_info_text() is gone! Mwahahaha. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 30 Sep 2003 06:43:17 +0000
parents dece74f05509
children 2343c3aa1dec
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Tue Sep 30 05:58:48 2003 +0000
+++ b/src/protocols/msn/msn.c	Tue Sep 30 06:43:17 2003 +0000
@@ -1217,6 +1217,7 @@
 static void
 msn_got_info(gpointer data, char *url_text, unsigned long len)
 {
+	GaimConnection *gc = (GaimConnection *)data;
 	char *stripped, *p, *q;
 	char buf[1024];
 	char *user_url = NULL;
@@ -1224,9 +1225,9 @@
 
 	if (url_text == NULL || strcmp(url_text,"") == 0)
 	{
-		g_show_info_text(NULL, NULL, 2,
-				_("<html><body><b>Error retrieving profile</b></body></html>"),
-				NULL);
+		gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL,
+			_("<html><body><b>Error retrieving profile</b></body></html>"),
+			  NULL, NULL);
 
 		return;
 	}
@@ -1421,7 +1422,10 @@
 
 	/* Finish it off, and show it to them */
 	strcat(url_text, "</body></html>\n");
-	g_show_info_text(NULL, NULL, 2, url_text, NULL);
+
+	gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL,
+						  url_text, NULL, NULL);
+
 	g_free(stripped);
 }
 
@@ -1430,7 +1434,8 @@
 {
 	char url[256];
 	g_snprintf(url, sizeof url, "%s%s", PROFILE_URL, name);
-	grab_url(url, FALSE, msn_got_info, NULL,"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",1);
+	grab_url(url, FALSE, msn_got_info, gc,
+			 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",1);
 }
 
 static GaimPluginProtocolInfo prpl_info =