From 4cf49191fb83586ae05ed9613ce229417c106055 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Wed, 4 Mar 2009 10:15:18 +0900 Subject: [PATCH] Convert variable name to utf8 before displaying in tooltips --- src/ui/gui/dict-display.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/dict-display.c b/src/ui/gui/dict-display.c index 356758be..63d9f3c9 100644 --- a/src/ui/gui/dict-display.c +++ b/src/ui/gui/dict-display.c @@ -197,7 +197,13 @@ set_tooltip_for_variable (GtkTreeView *treeview, if ( ! var_has_label (var)) return FALSE; - gtk_tooltip_set_text (tooltip, var_get_name (var)); + { + char *name = pspp_locale_to_utf8 (var_get_name (var), -1, NULL); + + gtk_tooltip_set_text (tooltip, name); + + g_free (name); + } return TRUE; } -- 2.30.2