projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace syntactical keywords in error/warning messages by printf directives
[pspp]
/
src
/
ui
/
gui
/
aggregate-dialog.c
diff --git
a/src/ui/gui/aggregate-dialog.c
b/src/ui/gui/aggregate-dialog.c
index 5d477d30c554c172b9e8a1493810962bbd164316..e89943b6c4ad027f1c0362d6556ae1930780a9f8 100644
(file)
--- a/
src/ui/gui/aggregate-dialog.c
+++ b/
src/ui/gui/aggregate-dialog.c
@@
-1,5
+1,5
@@
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2010, 2011, 2012 Free Software Foundation
+ Copyright (C) 2010, 2011, 2012
, 2013, 2014
Free Software Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-18,6
+18,7
@@
#include "dialog-common.h"
#include "dialog-common.h"
+#include <float.h>
#include <gl/c-xvasprintf.h>
#include <language/stats/aggregate.h>
#include <gl/c-xvasprintf.h>
#include <language/stats/aggregate.h>
@@
-167,6
+168,11
@@
choose_filename (struct aggregate *fd)
gtk_file_filter_add_mime_type (filter, "application/x-spss-sav");
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
gtk_file_filter_add_mime_type (filter, "application/x-spss-sav");
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
+ filter = gtk_file_filter_new ();
+ gtk_file_filter_set_name (filter, _("Compressed System Files (*.zsav)"));
+ gtk_file_filter_add_pattern (filter, "*.zsav");
+ gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
+
filter = gtk_file_filter_new ();
gtk_file_filter_set_name (filter, _("Portable Files (*.por) "));
gtk_file_filter_add_mime_type (filter, "application/x-spss-por");
filter = gtk_file_filter_new ();
gtk_file_filter_set_name (filter, _("Portable Files (*.por) "));
gtk_file_filter_add_mime_type (filter, "application/x-spss-por");
@@
-427,11
+433,11
@@
on_acr_change (const struct aggregate *agg, GtkTreeView *tv)
gtk_entry_set_text (GTK_ENTRY (agg->summary_var_label_entry), label);
gtk_entry_set_text (GTK_ENTRY (agg->summary_sv_entry), srcvar);
gtk_entry_set_text (GTK_ENTRY (agg->summary_var_label_entry), label);
gtk_entry_set_text (GTK_ENTRY (agg->summary_sv_entry), srcvar);
- text = c_xasprintf ("%
g"
, arg1);
+ text = c_xasprintf ("%
.*g", DBL_DIG + 1
, arg1);
gtk_entry_set_text (GTK_ENTRY (agg->summary_arg1_entry), text);
g_free (text);
gtk_entry_set_text (GTK_ENTRY (agg->summary_arg1_entry), text);
g_free (text);
- text = c_xasprintf ("%
g"
, arg2);
+ text = c_xasprintf ("%
.*g", DBL_DIG + 1
, arg2);
gtk_entry_set_text (GTK_ENTRY (agg->summary_arg2_entry), text);
g_free (text);
gtk_entry_set_text (GTK_ENTRY (agg->summary_arg2_entry), text);
g_free (text);
@@
-676,10
+682,10
@@
append_summary_spec (const struct aggregate *agg, GtkTreeIter *iter, GString *st
ds_put_cstr (&dss, srcvar);
if ( arity > 0)
ds_put_cstr (&dss, srcvar);
if ( arity > 0)
- ds_put_c_format (&dss, ", %
g"
, arg1);
+ ds_put_c_format (&dss, ", %
.*g", DBL_DIG + 1
, arg1);
if ( arity > 1)
if ( arity > 1)
- ds_put_c_format (&dss, ", %
g"
, arg2);
+ ds_put_c_format (&dss, ", %
.*g", DBL_DIG + 1
, arg2);
ds_put_cstr (&dss, ")");
ds_put_cstr (&dss, ")");