Mercurial > pidgin
comparison src/gtkimhtml.c @ 11920:52f27ffe68a5
[gaim-migrate @ 14211]
sf patch #1339035, from Sadrul Habib Chowdhury
"Remove the \n in Yahoo! status messages when showing them in the buddy
list inline."
Also some changes from me. I changed gaim_str_strip_cr(char *text) to
gaim_str_strip_char(char *text, char thechar). I don't know why, really,
but it seems like it could be more useful this way. Eh
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 31 Oct 2005 04:27:06 +0000 |
parents | ff02464a079f |
children | 53d8536c82f6 |
comparison
equal
deleted
inserted
replaced
11919:51832ad72a6b | 11920:52f27ffe68a5 |
---|---|
1638 | 1638 |
1639 if(gtk_imhtml_get_editable(imhtml) && sd->data){ | 1639 if(gtk_imhtml_get_editable(imhtml) && sd->data){ |
1640 switch (info) { | 1640 switch (info) { |
1641 case GTK_IMHTML_DRAG_URL: | 1641 case GTK_IMHTML_DRAG_URL: |
1642 /* TODO: Is it really ok to change sd->data...? */ | 1642 /* TODO: Is it really ok to change sd->data...? */ |
1643 gaim_str_strip_cr((char *)sd->data); | 1643 gaim_str_strip_char((char *)sd->data, '\r'); |
1644 | 1644 |
1645 links = g_strsplit((char *)sd->data, "\n", 0); | 1645 links = g_strsplit((char *)sd->data, "\n", 0); |
1646 while((link = links[i]) != NULL){ | 1646 while((link = links[i]) != NULL){ |
1647 if(gaim_str_has_prefix(link, "http://") || | 1647 if(gaim_str_has_prefix(link, "http://") || |
1648 gaim_str_has_prefix(link, "https://") || | 1648 gaim_str_has_prefix(link, "https://") || |