#include <assert.h>
#include <libintl.h>
+#include <gsl/gsl_errno.h>
#include "relocatable.h"
psppire_data_store_set_case_file (the_data_store, pcf);
}
+#define _(msgid) gettext (msgid)
+#define N_(msgid) msgid
+
+
void
initialize (void)
{
bindtextdomain (PACKAGE, locale_dir);
- textdomain (PACKAGE);
glade_init ();
+ gsl_set_error_handler_off ();
fmt_init ();
fn_init ();
outp_init ();
- settings_init ();
+ settings_init (&viewer_width, &viewer_length);
fh_init ();
the_source_stream =
create_source_stream (
fn_getenv_default ("STAT_INCLUDE_PATH", include_path)
);
- the_dataset = create_dataset (NULL, NULL);
+ the_dataset = create_dataset ();
message_dialog_init (the_source_stream);
outp_configure_driver_line (
ss_cstr ("gui:ascii:screen:squeeze=on headers=off top-margin=0 "
- "bottom-margin=0 paginate=off length=50 "
- "width=" OUTPUT_LINE_WIDTH_str " emphasis=none "
+ "bottom-margin=0 paginate=off length=auto width=auto "
+ "emphasis=none "
"output-file=\"" OUTPUT_FILE_NAME "\" append=yes"));
unlink (OUTPUT_FILE_NAME);
journal_enable ();
+ textdomain (PACKAGE);
new_data_window (NULL, NULL);
}
}
+
struct icon_info
{
const char *file_name;
}
}
+
+ {
+ /* Create our own "pspp-stock-reset" item, using the
+ GTK_STOCK_REFRESH icon set */
+
+ GtkStockItem item = {"pspp-stock-reset", N_("_Reset"), 0, 0, PACKAGE};
+ GtkIconSet *icon_set =
+ gtk_icon_factory_lookup_default (GTK_STOCK_REFRESH);
+
+ gtk_stock_add (&item, 1);
+ gtk_icon_factory_add (factory, "pspp-stock-reset", icon_set);
+ }
+
gtk_icon_factory_add_default (factory);
}