Mercurial > pidgin
comparison src/buddy.c @ 4794:642444078976
[gaim-migrate @ 5114]
let groups have funky characters in them w/o crashing
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 16 Mar 2003 00:34:10 +0000 |
parents | 01e349782075 |
children | 433ff974bee6 |
comparison
equal
deleted
inserted
replaced
4793:677d3cb193a1 | 4794:642444078976 |
---|---|
1130 | 1130 |
1131 if(node->parent && !get_iter_from_node(node->parent, &groupiter)) { | 1131 if(node->parent && !get_iter_from_node(node->parent, &groupiter)) { |
1132 /* This buddy's group has not yet been added. We do that here */ | 1132 /* This buddy's group has not yet been added. We do that here */ |
1133 GdkPixbuf *groupicon = gtk_widget_render_icon(gtkblist->treeview, | 1133 GdkPixbuf *groupicon = gtk_widget_render_icon(gtkblist->treeview, |
1134 GTK_STOCK_OPEN, GTK_ICON_SIZE_SMALL_TOOLBAR, NULL); | 1134 GTK_STOCK_OPEN, GTK_ICON_SIZE_SMALL_TOOLBAR, NULL); |
1135 char *mark = g_strdup_printf("<span weight='bold'>%s</span>", ((struct group*)node->parent)->name); | 1135 char *esc = g_markup_escape_text(((struct group*)node->parent)->name, -1); |
1136 char *mark = g_strdup_printf("<span weight='bold'>%s</span>", esc); | |
1137 g_free(esc); | |
1136 oldersibling = node->parent->prev; | 1138 oldersibling = node->parent->prev; |
1137 | 1139 |
1138 /* We traverse backwards through the buddy list to find the node in the tree to insert it after */ | 1140 /* We traverse backwards through the buddy list to find the node in the tree to insert it after */ |
1139 while (oldersibling && !get_iter_from_node(oldersibling, &oldersiblingiter)) | 1141 while (oldersibling && !get_iter_from_node(oldersibling, &oldersiblingiter)) |
1140 oldersibling = oldersibling->prev; | 1142 oldersibling = oldersibling->prev; |