#include "menu-actions.h"
#include "data-sheet.h"
-#define _(A) A
-#define N_(A) A
extern GladeXML *xml;
/* Update the data_ref_entry with the reference of the active cell */
-static gint
-update_data_ref_entry(GtkSheet *sheet, gint row, gint col)
+gint
+update_data_ref_entry(const GtkSheet *sheet, gint row, gint col)
{
/* The entry where the reference to the current cell is displayed */
psppire_dict_get_variable(data_store->dict, col);
gchar *text ;
+ gchar *s ;
if ( !xml)
return FALSE;
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;
GTK_SIGNAL_FUNC (click2column),
0);
+ gtk_sheet_set_active_cell(GTK_SHEET(sheet), -1, -1);
gtk_widget_show(sheet);
return sheet;