Mercurial > pidgin
comparison src/protocols/msn/msn.c @ 11533:c9b815aeddc1
[gaim-migrate @ 13782]
Pushing more of the userinfo stuff to the UI. Also, fixed a notify API warning in the perl plugin.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 12 Sep 2005 20:04:37 +0000 |
parents | bf763a1b2454 |
children | 11e95968c9ff |
comparison
equal
deleted
inserted
replaced
11532:57439a383f4f | 11533:c9b815aeddc1 |
---|---|
1481 if (url_text == NULL || strcmp(url_text, "") == 0) | 1481 if (url_text == NULL || strcmp(url_text, "") == 0) |
1482 { | 1482 { |
1483 g_snprintf(buf, 1024, "<html><body>%s<b>%s</b></body></html>", | 1483 g_snprintf(buf, 1024, "<html><body>%s<b>%s</b></body></html>", |
1484 tooltip_text, _("Error retrieving profile")); | 1484 tooltip_text, _("Error retrieving profile")); |
1485 | 1485 |
1486 gaim_notify_userinfo(info_data->gc, info_data->name, title, NULL, buf, NULL, NULL); | 1486 gaim_notify_userinfo(info_data->gc, info_data->name, buf, NULL, NULL); |
1487 | 1487 |
1488 g_free(tooltip_text); | 1488 g_free(tooltip_text); |
1489 return; | 1489 return; |
1490 } | 1490 } |
1491 | 1491 |
1790 char *stripped = info2_data->stripped; | 1790 char *stripped = info2_data->stripped; |
1791 char *url_buffer = info2_data->url_buffer; | 1791 char *url_buffer = info2_data->url_buffer; |
1792 GString *s = info2_data->s; | 1792 GString *s = info2_data->s; |
1793 char *photo_url_text = info2_data->photo_url_text; | 1793 char *photo_url_text = info2_data->photo_url_text; |
1794 char *tooltip_text = info2_data->tooltip_text; | 1794 char *tooltip_text = info2_data->tooltip_text; |
1795 const char *title = info2_data->title; | |
1796 | 1795 |
1797 /* Try to put the photo in there too, if there's one and is readable */ | 1796 /* Try to put the photo in there too, if there's one and is readable */ |
1798 if (data && url_text && len != 0) | 1797 if (data && url_text && len != 0) |
1799 { | 1798 { |
1800 if (strstr(url_text, "400 Bad Request") | 1799 if (strstr(url_text, "400 Bad Request") |
1817 | 1816 |
1818 /* We continue here from msn_got_info, as if nothing has happened */ | 1817 /* We continue here from msn_got_info, as if nothing has happened */ |
1819 #endif | 1818 #endif |
1820 | 1819 |
1821 g_string_prepend(s, tooltip_text); | 1820 g_string_prepend(s, tooltip_text); |
1822 gaim_notify_userinfo(info_data->gc, info_data->name, title, NULL, s->str, NULL, NULL); | 1821 gaim_notify_userinfo(info_data->gc, info_data->name, s->str, NULL, NULL); |
1823 | 1822 |
1824 g_free(stripped); | 1823 g_free(stripped); |
1825 g_free(url_buffer); | 1824 g_free(url_buffer); |
1826 g_string_free(s, TRUE); | 1825 g_string_free(s, TRUE); |
1827 g_free(tooltip_text); | 1826 g_free(tooltip_text); |