Mercurial > pidgin
diff finch/libgnt/gnttree.c @ 18872:85b155a574a3
libgnt.localize
Start working towards non-utf8 locale support.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 11 Aug 2007 04:18:14 +0000 |
parents | b5d6e360eca0 |
children | 7066896f6628 |
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c Sat Aug 11 04:17:15 2007 +0000 +++ b/finch/libgnt/gnttree.c Sat Aug 11 04:18:14 2007 +0000 @@ -1486,6 +1486,7 @@ g_return_if_fail(colno < tree->ncol); + text = gnt_util_localize_string(text); row = g_hash_table_lookup(tree->hash, key); if (row) { @@ -1625,7 +1626,9 @@ col->text = iter->data; col->isbinary = TRUE; } else { - col->text = g_strdup(iter->data ? iter->data : ""); + const char *text = iter->data; + text = gnt_util_localize_string(text); + col->text = g_strdup(text ? text : ""); col->isbinary = FALSE; } @@ -1667,6 +1670,7 @@ void gnt_tree_set_column_title(GntTree *tree, int index, const char *title) { g_free(tree->columns[index].title); + title = gnt_util_localize_string(title); tree->columns[index].title = g_strdup(title); } @@ -1679,6 +1683,7 @@ for (i = 0; i < tree->ncol; i++) { const char *title = va_arg(args, const char *); + title = gnt_util_localize_string(title); tree->columns[i].title = g_strdup(title); } va_end(args);