From: John Darrington Date: Wed, 4 Mar 2009 01:15:18 +0000 (+0900) Subject: Convert variable name to utf8 before displaying in tooltips X-Git-Tag: v0.7.3~258 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf49191fb83586ae05ed9613ce229417c106055;p=pspp-builds.git Convert variable name to utf8 before displaying in tooltips --- 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; }