projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some memory leaks in GUI.
[pspp-builds.git]
/
src
/
ui
/
gui
/
data-sheet.c
diff --git
a/src/ui/gui/data-sheet.c
b/src/ui/gui/data-sheet.c
index d32e6e373f265b6fa02f7b8d139bc666cfeaeb37..a9d980ded2e74a584dd9d34d0f5ed9601f44d772 100644
(file)
--- 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 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 */
{
/* 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 ;
psppire_dict_get_variable(data_store->dict, col);
gchar *text ;
+ gchar *s ;
if ( !xml)
return FALSE;
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"));
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);
g_free(text);
+
+ gtk_entry_set_text(cell_ref_entry, s);
+
+ g_free(s);
}
return FALSE;
}
return FALSE;