comparison src/protocols/toc/toc.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 083d1e4a9c78
children 7fdac700deb1
comparison
equal deleted inserted replaced
7061:80fd120e180b 7062:86ed8b2aa665
497 static void toc_got_info(gpointer data, char *url_text, unsigned long len) 497 static void toc_got_info(gpointer data, char *url_text, unsigned long len)
498 { 498 {
499 if (!url_text) 499 if (!url_text)
500 return; 500 return;
501 501
502 g_show_info_text(NULL, NULL, 2, url_text, NULL); 502 gaim_notify_formatted(data, NULL, _("Buddy Information"), NULL,
503 url_text, NULL, NULL);
503 } 504 }
504 505
505 static char *show_error_message() 506 static char *show_error_message()
506 { 507 {
507 int no = atoi(strtok(NULL, ":")); 508 int no = atoi(strtok(NULL, ":"));
897 url = strtok(NULL, ":"); 898 url = strtok(NULL, ":");
898 899
899 g_snprintf(tmp, sizeof(tmp), "http://%s:%d/%s", tdt->toc_ip, 900 g_snprintf(tmp, sizeof(tmp), "http://%s:%d/%s", tdt->toc_ip,
900 gaim_account_get_int(gc->account, "port", TOC_PORT), 901 gaim_account_get_int(gc->account, "port", TOC_PORT),
901 url); 902 url);
902 grab_url(tmp, FALSE, toc_got_info, NULL, NULL, 0); 903 grab_url(tmp, FALSE, toc_got_info, gc, NULL, 0);
903 } else if (!g_ascii_strcasecmp(c, "DIR_STATUS")) { 904 } else if (!g_ascii_strcasecmp(c, "DIR_STATUS")) {
904 } else if (!g_ascii_strcasecmp(c, "ADMIN_NICK_STATUS")) { 905 } else if (!g_ascii_strcasecmp(c, "ADMIN_NICK_STATUS")) {
905 } else if (!g_ascii_strcasecmp(c, "ADMIN_PASSWD_STATUS")) { 906 } else if (!g_ascii_strcasecmp(c, "ADMIN_PASSWD_STATUS")) {
906 gaim_notify_info(gc, NULL, _("Password Change Successful"), NULL); 907 gaim_notify_info(gc, NULL, _("Password Change Successful"), NULL);
907 } else if (!g_ascii_strcasecmp(c, "PAUSE")) { 908 } else if (!g_ascii_strcasecmp(c, "PAUSE")) {