comparison 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
comparison
equal deleted inserted replaced
7061:80fd120e180b 7062:86ed8b2aa665
1215 } 1215 }
1216 1216
1217 static void 1217 static void
1218 msn_got_info(gpointer data, char *url_text, unsigned long len) 1218 msn_got_info(gpointer data, char *url_text, unsigned long len)
1219 { 1219 {
1220 GaimConnection *gc = (GaimConnection *)data;
1220 char *stripped, *p, *q; 1221 char *stripped, *p, *q;
1221 char buf[1024]; 1222 char buf[1024];
1222 char *user_url = NULL; 1223 char *user_url = NULL;
1223 gboolean found; 1224 gboolean found;
1224 1225
1225 if (url_text == NULL || strcmp(url_text,"") == 0) 1226 if (url_text == NULL || strcmp(url_text,"") == 0)
1226 { 1227 {
1227 g_show_info_text(NULL, NULL, 2, 1228 gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL,
1228 _("<html><body><b>Error retrieving profile</b></body></html>"), 1229 _("<html><body><b>Error retrieving profile</b></body></html>"),
1229 NULL); 1230 NULL, NULL);
1230 1231
1231 return; 1232 return;
1232 } 1233 }
1233 1234
1234 /* If they have a homepage link, MSN masks it such that we need to 1235 /* If they have a homepage link, MSN masks it such that we need to
1419 strcat(url_text, buf); 1420 strcat(url_text, buf);
1420 } 1421 }
1421 1422
1422 /* Finish it off, and show it to them */ 1423 /* Finish it off, and show it to them */
1423 strcat(url_text, "</body></html>\n"); 1424 strcat(url_text, "</body></html>\n");
1424 g_show_info_text(NULL, NULL, 2, url_text, NULL); 1425
1426 gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL,
1427 url_text, NULL, NULL);
1428
1425 g_free(stripped); 1429 g_free(stripped);
1426 } 1430 }
1427 1431
1428 static void 1432 static void
1429 msn_get_info(GaimConnection *gc, const char *name) 1433 msn_get_info(GaimConnection *gc, const char *name)
1430 { 1434 {
1431 char url[256]; 1435 char url[256];
1432 g_snprintf(url, sizeof url, "%s%s", PROFILE_URL, name); 1436 g_snprintf(url, sizeof url, "%s%s", PROFILE_URL, name);
1433 grab_url(url, FALSE, msn_got_info, NULL,"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",1); 1437 grab_url(url, FALSE, msn_got_info, gc,
1438 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",1);
1434 } 1439 }
1435 1440
1436 static GaimPluginProtocolInfo prpl_info = 1441 static GaimPluginProtocolInfo prpl_info =
1437 { 1442 {
1438 GAIM_PROTO_MSN, 1443 GAIM_PROTO_MSN,