Mercurial > pidgin
diff console/libgnt/gnttextview.c @ 14010:7573bd40a190
[gaim-migrate @ 16602]
Allow plugins to be loaded and unloaded.
Remember the window positions and sizes.
All turning on/off shadow from ~/.gntrc (off by default).
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 31 Jul 2006 23:19:12 +0000 |
parents | df8183b7fa2c |
children | 0e70bb6d32fd |
line wrap: on
line diff
--- a/console/libgnt/gnttextview.c Sat Jul 29 20:22:39 2006 +0000 +++ b/console/libgnt/gnttextview.c Mon Jul 31 23:19:12 2006 +0000 @@ -182,14 +182,22 @@ view->list = g_list_first(view->list); - split = g_strsplit(text, "\n", 0); + split = g_strsplit(text, "\n", -1); for (i = 0; split[i]; i++) { - GntTextLine *line = view->list->data; + GntTextLine *line; int len = g_utf8_strlen(split[i], -1); char *iter = split[i]; int prev = 0; + if (i) + { + line = g_new0(GntTextLine, 1); + view->list = g_list_prepend(g_list_first(view->list), line); + } + + line = view->list->data; + while (iter && *iter) { GntTextSegment *seg = g_new0(GntTextSegment, 1);