Mercurial > pidgin
comparison src/util.c @ 10623:14c32196fcfd
[gaim-migrate @ 12094]
The logic I used for dragging buddies and expanding them was so flawed it
floored me. People probably prefer it like this. Also fix up body tags with
bgcolors.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 22 Feb 2005 16:06:29 +0000 |
parents | 522b719ea774 |
children | 0f5c5e6fb27f |
comparison
equal
deleted
inserted
replaced
10622:78a43d6e1801 | 10623:14c32196fcfd |
---|---|
1120 color = g_string_append_c(color, *q); | 1120 color = g_string_append_c(color, *q); |
1121 q++; | 1121 q++; |
1122 } | 1122 } |
1123 g_string_append_printf(xhtml, "<span style='background: %s;'>", color->str); | 1123 g_string_append_printf(xhtml, "<span style='background: %s;'>", color->str); |
1124 g_string_free(color, TRUE); | 1124 g_string_free(color, TRUE); |
1125 c = strchr(c, '>') + 1; | 1125 if ((c = strchr(c, '>')) != NULL) |
1126 c++; | |
1127 else | |
1128 c = p; | |
1126 pt->src_tag = "body"; | 1129 pt->src_tag = "body"; |
1127 pt->dest_tag = "span"; | 1130 pt->dest_tag = "span"; |
1128 tags = g_list_prepend(tags, pt); | 1131 tags = g_list_prepend(tags, pt); |
1129 did_something = TRUE; | 1132 did_something = TRUE; |
1130 break; | 1133 break; |
2761 | 2764 |
2762 /* Just in case :) */ | 2765 /* Just in case :) */ |
2763 if (end == NULL) | 2766 if (end == NULL) |
2764 end = strchr(s, '\n'); | 2767 end = strchr(s, '\n'); |
2765 | 2768 |
2769 if (end == NULL) | |
2770 return FALSE; | |
2771 | |
2766 len = end - s; | 2772 len = end - s; |
2767 | 2773 |
2768 new_url = g_malloc(len + 1); | 2774 new_url = g_malloc(len + 1); |
2769 strncpy(new_url, s, len); | 2775 strncpy(new_url, s, len); |
2770 new_url[len] = '\0'; | 2776 new_url[len] = '\0'; |