diff -r 1c0f16f3859c -r e794e3e11c43 src/buddy.c
--- a/src/buddy.c Sat Mar 22 22:24:33 2003 +0000
+++ b/src/buddy.c Sat Mar 22 22:59:26 2003 +0000
@@ -631,6 +631,7 @@
char *text = NULL;
struct prpl* prpl = find_prpl(b->account->protocol);
char *statustext = NULL;
+ char *aliastext = NULL, *nicktext = NULL;
char *warning = NULL, *idletime = NULL;
if (prpl->tooltip_text) {
@@ -657,6 +658,12 @@
idletime = g_strdup_printf(_("%dm"), imin);
}
+ if(b->alias)
+ aliastext = g_markup_escape_text(b->alias, -1);
+
+ if(b->server_alias)
+ nicktext = g_markup_escape_text(b->server_alias, -1);
+
if (b->evil > 0)
warning = g_strdup_printf(_("%d%%"), b->evil);
@@ -667,9 +674,9 @@
"%s %s" /* Warning */
"%s%s", /* Status */
b->name,
- b->alias && b->alias[0] ? _("\nAlias:") : "", b->alias ? b->alias : "",
- b->server_alias ? _("\nNickname:") : "", b->server_alias ? b->server_alias : "",
- b->idle ? _("\nIdle:") : "", b->idle ? idletime : "",
+ aliastext ? _("\nAlias:") : "", aliastext ? aliastext : "",
+ nicktext ? _("\nNickname:") : "", nicktext ? nicktext : "",
+ b->idle ? _("\nIdle:") : "", b->idle ? idletime : "",
b->evil ? _("\nWarned:") : "", b->evil ? warning : "",
statustext ? "\n" : "", statustext ? statustext : "");
if(warning)
@@ -678,6 +685,10 @@
g_free(idletime);
if(statustext)
g_free(statustext);
+ if(nicktext)
+ g_free(nicktext);
+ if(aliastext)
+ g_free(aliastext);
return text;
@@ -1186,6 +1197,7 @@
}
static gboolean get_iter_from_node_helper(GaimBlistNode *node, GtkTreeIter *iter, GtkTreeIter *root) {
+
do {
GaimBlistNode *n;
GtkTreeIter child;
@@ -1335,8 +1347,9 @@
}
oldersibling = node->prev;
- while (oldersibling && !get_iter_from_node(oldersibling, &oldersiblingiter))
+ while (oldersibling && !get_iter_from_node(oldersibling, &oldersiblingiter)) {
oldersibling = oldersibling->prev;
+ }
gtk_tree_store_insert_after(gtkblist->treemodel, &iter, &groupiter, oldersibling ? &oldersiblingiter : NULL);