X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdata-sheet.c;h=a9d980ded2e74a584dd9d34d0f5ed9601f44d772;hb=a6df7a4863f51dd4121a067f947335fba197617b;hp=d32e6e373f265b6fa02f7b8d139bc666cfeaeb37;hpb=573068f2bdcd3f8796e9646668fed910a90f890b;p=pspp-builds.git diff --git a/src/ui/gui/data-sheet.c b/src/ui/gui/data-sheet.c index d32e6e37..a9d980de 100644 --- a/src/ui/gui/data-sheet.c +++ b/src/ui/gui/data-sheet.c @@ -85,7 +85,7 @@ click2column(GtkWidget *w, gint col, gpointer data) /* Update the data_ref_entry with the reference of the active cell */ static gint -update_data_ref_entry(GtkSheet *sheet, gint row, gint col) +update_data_ref_entry(const GtkSheet *sheet, gint row, gint col) { /* The entry where the reference to the current cell is displayed */ @@ -98,6 +98,7 @@ update_data_ref_entry(GtkSheet *sheet, gint row, gint col) psppire_dict_get_variable(data_store->dict, col); gchar *text ; + gchar *s ; if ( !xml) return FALSE; @@ -107,9 +108,13 @@ update_data_ref_entry(GtkSheet *sheet, gint row, gint col) cell_ref_entry = GTK_ENTRY(get_widget_assert(xml, "cell_ref_entry")); - gtk_entry_set_text(cell_ref_entry, text); + s = pspp_locale_to_utf8(text, -1, 0); g_free(text); + + gtk_entry_set_text(cell_ref_entry, s); + + g_free(s); } return FALSE;