projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
psppire-var-sheet: Add icons to combo boxes for alignment and measurement.
[pspp]
/
src
/
ui
/
gui
/
spreadsheet-test.c
diff --git
a/src/ui/gui/spreadsheet-test.c
b/src/ui/gui/spreadsheet-test.c
index 90a10375ec460dbfd04a76c2a5a5091a508d341e..bec577821a68076fc20831580b00ed1bf3739677 100644
(file)
--- a/
src/ui/gui/spreadsheet-test.c
+++ b/
src/ui/gui/spreadsheet-test.c
@@
-28,7
+28,10
@@
#include "data/spreadsheet-reader.h"
#include "data/casereader.h"
#include "data/case.h"
#include "data/spreadsheet-reader.h"
#include "data/casereader.h"
#include "data/case.h"
+#include "data/settings.h"
#include "libpspp/message.h"
#include "libpspp/message.h"
+#include "libpspp/i18n.h"
+
#include "gl/xalloc.h"
#include "gl/xalloc.h"
@@
-52,7
+55,8
@@
on_clicked (GtkButton *button, struct xxx *stuff)
opts.sheet_index = -1;
opts.cell_range = spreadsheet_get_sheet_range (stuff->sp, x);
opts.sheet_index = -1;
opts.cell_range = spreadsheet_get_sheet_range (stuff->sp, x);
- opts.sheet_name = spreadsheet_get_sheet_name (stuff->sp, x);
+ opts.sheet_name = CONST_CAST (char *,
+ spreadsheet_get_sheet_name (stuff->sp, x));
opts.read_names = TRUE;
opts.asw = -1;
opts.read_names = TRUE;
opts.asw = -1;
@@
-78,7
+82,7
@@
on_clicked (GtkButton *button, struct xxx *stuff)
else
{
char *ss = xzalloc (width + 1);
else
{
char *ss = xzalloc (width + 1);
-
strn
cpy (ss, value_str (val, width), width);
+
mem
cpy (ss, value_str (val, width), width);
printf ("%s ", ss);
free (ss);
printf ("%s ", ss);
free (ss);
@@
-109,6
+113,9
@@
main (int argc, char *argv[] )
GtkWidget *button;
struct xxx stuff;
GtkWidget *button;
struct xxx stuff;
+ i18n_init ();
+ settings_init ();
+
gtk_init (&argc, &argv);
if ( argc < 2)
gtk_init (&argc, &argv);
if ( argc < 2)