pspp
3 years agooutput-item: Make label a part of every output_item. dev3
Ben Pfaff [Sun, 27 Dec 2020 20:12:13 +0000 (12:12 -0800)]
output-item: Make label a part of every output_item.

I didn't understand before that every output_item had a label of its own
that users could separately edit.

3 years agowork on pspp-output modify command
Ben Pfaff [Sun, 27 Dec 2020 18:04:32 +0000 (10:04 -0800)]
work on pspp-output modify command

3 years agospv-file-format: Better describe structure member labels and table notes.
Ben Pfaff [Sun, 27 Dec 2020 06:23:58 +0000 (22:23 -0800)]
spv-file-format: Better describe structure member labels and table notes.

3 years agopsppire-output-view: Set tooltips on tables from table_item notes.
Ben Pfaff [Sun, 27 Dec 2020 06:22:32 +0000 (22:22 -0800)]
psppire-output-view: Set tooltips on tables from table_item notes.

3 years agopsppire-window: Fix use-after-free error in read_spv_file().
Ben Pfaff [Sun, 27 Dec 2020 06:16:39 +0000 (22:16 -0800)]
psppire-window: Fix use-after-free error in read_spv_file().

spv_item_get_table() returns a borrowed reference, but read_spv_file()
treated it as if it owned it.  This fixes the problem.

This fixes crashes opening .spv files in PSPPIRE with File|Open.

Also, change spv_item_get_table() to return a const pointer, to make it
clearer that the reference is a borrowed one.

3 years agotable: Get rid of accessor functions for 'h' and 'n' members.
Ben Pfaff [Sun, 27 Dec 2020 04:27:05 +0000 (20:27 -0800)]
table: Get rid of accessor functions for 'h' and 'n' members.

It's easier to read them directly.

3 years agotable: Delete some functions that were unused or barely used.
Ben Pfaff [Sun, 27 Dec 2020 04:26:37 +0000 (20:26 -0800)]
table: Delete some functions that were unused or barely used.

3 years agomessage-item: Fix reference counting in message_item_to_text_item().
Ben Pfaff [Sun, 27 Dec 2020 04:24:53 +0000 (20:24 -0800)]
message-item: Fix reference counting in message_item_to_text_item().

This function should take ownership of the message_item passed in, but it
leaked a reference to it.

3 years agorender: Only scale to fit vertically with drivers that support it.
Ben Pfaff [Sun, 27 Dec 2020 01:57:46 +0000 (17:57 -0800)]
render: Only scale to fit vertically with drivers that support it.

Fixes: bdd73954cd30 ("cairo: Support scaling tables to fit page width and page length.")
3 years agohtml: Pop up tooltip with table notes in output.
Ben Pfaff [Sun, 27 Dec 2020 01:54:56 +0000 (17:54 -0800)]
html: Pop up tooltip with table notes in output.

I can't see how to do this for ODP or PDF output.  (PDF supports tooltips
but Cairo doesn't expose the feature; ODP doesn't seem to support it at
all.)

3 years agocairo: Label pages in PDFs with page numbers.
Ben Pfaff [Sun, 27 Dec 2020 01:54:07 +0000 (17:54 -0800)]
cairo: Label pages in PDFs with page numbers.

These normally wouldn't do much, but PSPP does support an "initial page
number" setting, and if that is set to anything but 1 then it will make
a difference.

3 years agocairo: Support scaling tables to fit page width and page length.
Ben Pfaff [Sun, 27 Dec 2020 01:47:50 +0000 (17:47 -0800)]
cairo: Support scaling tables to fit page width and page length.

3 years agocairo-fsm: Remove code that was #if'd out.
Ben Pfaff [Sat, 26 Dec 2020 23:52:16 +0000 (15:52 -0800)]
cairo-fsm: Remove code that was #if'd out.

This was missed during an earlier refactoring.

3 years agopo: Update French translation from translationproject.org.
Ben Pfaff [Sat, 26 Dec 2020 18:24:16 +0000 (10:24 -0800)]
po: Update French translation from translationproject.org.

Thanks to Stéphane Aulery <lkppo@free.fr>.

3 years agotex-rendering.c: Add missing include directive
John Darrington [Sat, 26 Dec 2020 13:10:30 +0000 (14:10 +0100)]
tex-rendering.c: Add missing include directive

3 years agoMake cross-building slightly more reliable
John Darrington [Sat, 26 Dec 2020 12:23:53 +0000 (13:23 +0100)]
Make cross-building slightly more reliable

3 years agoFix reproducibility issues in png files
John Darrington [Sat, 26 Dec 2020 10:13:46 +0000 (11:13 +0100)]
Fix reproducibility issues in png files

3 years agoStart of a crosstabs example
John Darrington [Sat, 26 Dec 2020 09:47:47 +0000 (10:47 +0100)]
Start of a crosstabs example

3 years agoAdd copyright and licence notices to files which lack them
John Darrington [Sat, 26 Dec 2020 09:11:56 +0000 (10:11 +0100)]
Add copyright and licence notices to files which lack them

3 years agoFix compiler warning
John Darrington [Sat, 26 Dec 2020 08:34:41 +0000 (09:34 +0100)]
Fix compiler warning

3 years agopspp-dev (Graphic User Interface): New chapter.
John Darrington [Sat, 26 Dec 2020 07:44:38 +0000 (08:44 +0100)]
pspp-dev (Graphic User Interface): New chapter.

3 years agocairo-pager: Add outline to PDF output.
Ben Pfaff [Fri, 25 Dec 2020 20:14:38 +0000 (12:14 -0800)]
cairo-pager: Add outline to PDF output.

3 years agocairo: Avoid using cairo_t for a destroyed cairo_surface_t.
Ben Pfaff [Sat, 26 Dec 2020 05:54:48 +0000 (21:54 -0800)]
cairo: Avoid using cairo_t for a destroyed cairo_surface_t.

xr_pager_destroy() would destroy the latest cairo_t, if there was one.
Generally there wasn't, since in the common case it got destroyed by
xr_pager_run() when the fsm emptied out, but in the case of the last page
in a produced output file, xr_destroy() would call xr_pager_destroy()
after first destroying the surface_t it was drawing on.  I don't think this
is an actual bug, because everything is properly reference-counted inside
Cairo (the cairo_t holds a reference on its cairo_surface_t) but I found it
confusing.

3 years agodoc: Suppress fontconfig warnings from Leak Sanitizer running pspp-output.
Ben Pfaff [Sat, 26 Dec 2020 05:55:57 +0000 (21:55 -0800)]
doc: Suppress fontconfig warnings from Leak Sanitizer running pspp-output.

Otherwise building the docs fails if one builds with Address Sanitizer or
Leak Sanitizer.

3 years agoFix memory leaks reported by Address Sanitizer.
Ben Pfaff [Sat, 26 Dec 2020 00:22:14 +0000 (16:22 -0800)]
Fix memory leaks reported by Address Sanitizer.

3 years agoAdd more Valgrind leak report suppressions.
Ben Pfaff [Sat, 26 Dec 2020 05:56:53 +0000 (21:56 -0800)]
Add more Valgrind leak report suppressions.

These leaks seem unavoidable and they are not worth reporting.

Valgrind still reports a lot of leaks that I haven't determined to either
be fixable or unavoidable.

3 years agocairo: Add missing new-lines at the end of messages written to stderr.
Ben Pfaff [Fri, 25 Dec 2020 20:17:36 +0000 (12:17 -0800)]
cairo: Add missing new-lines at the end of messages written to stderr.

3 years agoAdd --table-look command line option and SET TLOOK command.
Ben Pfaff [Tue, 22 Dec 2020 07:49:26 +0000 (23:49 -0800)]
Add --table-look command line option and SET TLOOK command.

3 years agoFix building --without-cairo
John Darrington [Sun, 20 Dec 2020 22:06:11 +0000 (23:06 +0100)]
Fix building --without-cairo

3 years agoconfigure.ac: Abort attempts to cross build in source
John Darrington [Sun, 20 Dec 2020 21:49:20 +0000 (22:49 +0100)]
configure.ac: Abort attempts to cross build in source

3 years agoNew function width_of_m to get the width of M rendered in a widget.
John Darrington [Sun, 20 Dec 2020 19:11:10 +0000 (20:11 +0100)]
New function width_of_m to get the width of M rendered in a widget.

helper.c (width_of_m): New function.

3 years agoAdd new popup menu to the dictionary view widget
John Darrington [Sun, 20 Dec 2020 09:40:27 +0000 (10:40 +0100)]
Add new popup menu to the dictionary view widget

Some users have expressed a wish to be able to view details
of variables from within dialogs.  Hopefully this change will
fulfill this requirement.

3 years agoFix make distcheck
John Darrington [Sun, 20 Dec 2020 08:43:21 +0000 (09:43 +0100)]
Fix make distcheck

The generated figure files have to depend on utilities/pspp-output

3 years agoReimplement the variable info dialog.
John Darrington [Sun, 20 Dec 2020 21:38:28 +0000 (22:38 +0100)]
Reimplement the variable info dialog.

Instead of using a rendered output fragment, display the information
in Gtk+ widgets.

3 years agoPsppireButtonBox: Allow widget to be explicitly created.
John Darrington [Sun, 20 Dec 2020 09:42:15 +0000 (10:42 +0100)]
PsppireButtonBox: Allow widget to be explicitly created.

* psppire-buttonbox.h (psppire_button_box_new): New function
* psppire-buttonbox.c (psppire_button_box_new): New function

3 years agopivot-table: Make pivot_table_look a refcounted object.
Ben Pfaff [Mon, 21 Dec 2020 07:10:59 +0000 (23:10 -0800)]
pivot-table: Make pivot_table_look a refcounted object.

This is a first step toward adding a default pivot_table_look as a user
setting.

3 years agoMEANS: Remove one more assignment to omit_empty missed in previous commit.
Ben Pfaff [Mon, 21 Dec 2020 04:33:57 +0000 (20:33 -0800)]
MEANS: Remove one more assignment to omit_empty missed in previous commit.

I missed this in preparing commit 0200682d517f ("pivot-table: Change the
default format to omit empty rows and columns.")

3 years agopivot-table: Change the default format to omit empty rows and columns.
Ben Pfaff [Mon, 21 Dec 2020 04:30:18 +0000 (20:30 -0800)]
pivot-table: Change the default format to omit empty rows and columns.

By making this the default, it doesn't become necessary to make a lot of
procedures that yield output change the format to produce reasonable
output.  This means that the user's settings for the format won't get
overridden.

This changes a lot of output that had empty columns, in particular
anything that used DISPLAY DICTIONARY with a dictionary that had no
variable labels or missing values.  This commit also updates the expected
output to match.

An unexpected side effect was that some tables became empty entirely, for
example LIST with no rows.  This seemed undesirable, so I changed
pivot_table_enumerate_axis() so if an axis was entirely empty due to
omit_empty, then omit_empty was suppressed for that axis.

3 years agodoc: Fix formatting of output in formats that use text output.
Ben Pfaff [Mon, 21 Dec 2020 00:22:57 +0000 (16:22 -0800)]
doc: Fix formatting of output in formats that use text output.

This fixes a mistake introduced in commit 1d447973271c ("doc: Add .png
output to the Info manual.").

3 years agodoc: Add .png output to the Info manual.
Ben Pfaff [Sun, 20 Dec 2020 23:38:21 +0000 (15:38 -0800)]
doc: Add .png output to the Info manual.

3 years agocairo: Add support for png and trim.
Ben Pfaff [Sat, 19 Dec 2020 08:12:28 +0000 (00:12 -0800)]
cairo: Add support for png and trim.

This also allows dropping the librsvg dependency.

3 years agocairo-pager: New.
Ben Pfaff [Sat, 12 Dec 2020 07:20:56 +0000 (23:20 -0800)]
cairo-pager: New.

3 years agocairo: Use pango_cairo_context_set_resolution() to get font sizes correct.
Ben Pfaff [Tue, 15 Dec 2020 07:36:31 +0000 (23:36 -0800)]
cairo: Use pango_cairo_context_set_resolution() to get font sizes correct.

I never understood before why fonts didn't appear the right side in PDF
and PostScript output.  This fixes the problem.

3 years agocairo: Use arrays for page sizes and margins, to simplify code.
Ben Pfaff [Wed, 9 Dec 2020 17:34:10 +0000 (09:34 -0800)]
cairo: Use arrays for page sizes and margins, to simplify code.

3 years agocairo: Move chart code into cairo-chart.
Ben Pfaff [Mon, 7 Dec 2020 06:06:57 +0000 (22:06 -0800)]
cairo: Move chart code into cairo-chart.

3 years agocairo: Get rid of unused PangoLayouts.
Ben Pfaff [Mon, 7 Dec 2020 05:50:59 +0000 (21:50 -0800)]
cairo: Get rid of unused PangoLayouts.

3 years agocairo: Factor out code for basic rendering.
Ben Pfaff [Sun, 6 Dec 2020 22:18:26 +0000 (14:18 -0800)]
cairo: Factor out code for basic rendering.

3 years agocairo: Remove "emphasis" font option because it had no real effect.
Ben Pfaff [Sun, 6 Dec 2020 21:33:00 +0000 (13:33 -0800)]
cairo: Remove "emphasis" font option because it had no real effect.

3 years agooptions: Make parse_color() parse alpha.
Ben Pfaff [Sat, 19 Dec 2020 08:00:28 +0000 (00:00 -0800)]
options: Make parse_color() parse alpha.

cell_color includes an alpha channel so we might as well use it.

3 years agodoc: Use "rm", not nonexistent variable $(RM), in uninstall-local.
Ben Pfaff [Sun, 20 Dec 2020 23:57:29 +0000 (15:57 -0800)]
doc: Use "rm", not nonexistent variable $(RM), in uninstall-local.

3 years agodoc: Use $(infodir) for Info, not $(prefix)/share/info.
Ben Pfaff [Sun, 20 Dec 2020 23:02:37 +0000 (15:02 -0800)]
doc: Use $(infodir) for Info, not $(prefix)/share/info.

3 years agoFix make distcheck
John Darrington [Sun, 20 Dec 2020 14:10:27 +0000 (15:10 +0100)]
Fix make distcheck

3 years agoAdd missing parentheses
John Darrington [Sun, 20 Dec 2020 13:52:30 +0000 (14:52 +0100)]
Add missing parentheses

3 years agoFix reproducibility issues when generating .eps files
John Darrington [Sat, 19 Dec 2020 16:14:22 +0000 (17:14 +0100)]
Fix reproducibility issues when generating .eps files

3 years agoUse clean-temp module instead of tmpdir module
John Darrington [Sat, 19 Dec 2020 15:34:21 +0000 (16:34 +0100)]
Use clean-temp module instead of tmpdir module

psppire-output_view.c: Use gnulib's clean-temp module instead of the
path_search function.

3 years agoInstall the documentation screenshots in the correct place.
John Darrington [Sat, 19 Dec 2020 15:22:49 +0000 (16:22 +0100)]
Install the documentation screenshots in the correct place.

The screenshots should be installed into $prefix/info/screenshots
NOT $prefix/info

Reported by: opensuse.lietuviu.kalba <opensuse.lietuviu.kalba@gmail.com>

3 years agorender: Make struct render_params a little smaller.
Ben Pfaff [Sun, 6 Dec 2020 21:08:34 +0000 (13:08 -0800)]
render: Make struct render_params a little smaller.

This factors out pieces that currently in practice are always the same for
a particular driver.

3 years agopage-eject-item: Factor out of text_item.
Ben Pfaff [Sun, 6 Dec 2020 21:08:24 +0000 (13:08 -0800)]
page-eject-item: Factor out of text_item.

These really don't have much in common.

3 years agopsppire-output-view: Consistently apply "transparent" and "systemcolors".
Ben Pfaff [Sun, 6 Dec 2020 01:07:12 +0000 (17:07 -0800)]
psppire-output-view: Consistently apply "transparent" and "systemcolors".

Commit 81dece3642da ("output view: make items selectable and use system
colours") add transparency and system colors to the driver in the GUI,
but it did so somewhat after the driver was created.  I don't know why.
It makes more sense to me to set these options when creating the driver.
This commit makes that change.  It also deletes the function to change
the options; it had no other user.

3 years agocairo: Drop unused line_spacing, line_width members from xr_driver.
Ben Pfaff [Sun, 6 Dec 2020 01:35:24 +0000 (17:35 -0800)]
cairo: Drop unused line_spacing, line_width members from xr_driver.

3 years agorender: Add comment.
Ben Pfaff [Sun, 6 Dec 2020 22:18:15 +0000 (14:18 -0800)]
render: Add comment.

3 years agooutput: Fix typos in copyright notices.
Ben Pfaff [Sun, 6 Dec 2020 21:05:41 +0000 (13:05 -0800)]
output: Fix typos in copyright notices.

3 years agosys-file-reader: Omit @(#) from file strings in sfm_get_strings().
Ben Pfaff [Sat, 19 Dec 2020 05:10:28 +0000 (21:10 -0800)]
sys-file-reader: Omit @(#) from file strings in sfm_get_strings().

This function returns strings so that the user can figure out the file's
correct encoding.  @(#) has different interpretations in a few encodings
(sometimes 0x23 is not #) and there's no value in displaying different
versions of it, so skip it.

3 years agoexpressions: Improve error messages.
Ben Pfaff [Thu, 17 Dec 2020 07:45:30 +0000 (23:45 -0800)]
expressions: Improve error messages.

Also, introduce tests to trigger the error messages.

Prompted by bug #59697.
Thanks to Stéphane Aulery for reporting the poor error messages.

3 years agotests: Restore tests that were commented out by buggy commit.
Ben Pfaff [Thu, 17 Dec 2020 06:41:06 +0000 (22:41 -0800)]
tests: Restore tests that were commented out by buggy commit.

These were commented out by commit 691a034d7f21 ("Add copyright and
licence notices to files which lack them.").  Subsequent commit
691a034d7f21 ("Add copyright and licence notices to files which lack
them.") fixed some but not all of the bugs.  I think that this
commit fixes the rest.

Also, fix the one test that was broken in the meantime.

3 years agoUpdated the fr.po translation
Stéphane Aulery [Sun, 13 Dec 2020 08:03:15 +0000 (09:03 +0100)]
Updated the fr.po translation

3 years agodoc/automake.mk (html-local): Add dependency on the directory doc/pspp.html
John Darrington [Sun, 13 Dec 2020 09:34:21 +0000 (10:34 +0100)]
doc/automake.mk (html-local): Add dependency on the directory doc/pspp.html

Fixes bug #59577 (hopefully).

3 years agoWhen cross-compiling, also build native binaries, and use them to create
John Darrington [Sun, 13 Dec 2020 11:25:55 +0000 (12:25 +0100)]
When cross-compiling, also build native binaries, and use them to create
the files in doc/pspp-figures.  Obviously an effect of this is that cross
builds require both native and host libraries.

3 years agopsppire-dialog-action-crosstabs: Mention Cramer's V along with Phi.
Ben Pfaff [Sun, 13 Dec 2020 19:24:22 +0000 (11:24 -0800)]
psppire-dialog-action-crosstabs: Mention Cramer's V along with Phi.

Asking for Phi already produced Cramer's V also, but the label didn't
indicate that.  This just updates the label.

Bug #59670.

3 years agooutput: Move parse_color() from cairo.c to options.c.
Ben Pfaff [Sat, 5 Dec 2020 06:53:03 +0000 (22:53 -0800)]
output: Move parse_color() from cairo.c to options.c.

Seems like a more natural place for it.

3 years agooptions: Fix error message for parsing chart file names.
Ben Pfaff [Sat, 5 Dec 2020 06:53:28 +0000 (22:53 -0800)]
options: Fix error message for parsing chart file names.

3 years agocairo: Remove 'x' from struct xr_driver.
Ben Pfaff [Mon, 30 Nov 2020 06:50:27 +0000 (22:50 -0800)]
cairo: Remove 'x' from struct xr_driver.

It always had value 0.

3 years agocairo: Remove 'heading_vars' from struct xr_driver.
Ben Pfaff [Mon, 30 Nov 2020 04:40:09 +0000 (20:40 -0800)]
cairo: Remove 'heading_vars' from struct xr_driver.

This was accessed in a few places but they didn't have any visible effects
on behavior.

3 years agocairo: Remove unused 'command_name', 'title', 'subtitle' from xr_driver.
Ben Pfaff [Mon, 30 Nov 2020 04:39:25 +0000 (20:39 -0800)]
cairo: Remove unused 'command_name', 'title', 'subtitle' from xr_driver.

These really weren't used anywhere.

3 years agocairo: Remove obsolete 'nest' member from struct xr_driver.
Ben Pfaff [Mon, 30 Nov 2020 04:32:54 +0000 (20:32 -0800)]
cairo: Remove obsolete 'nest' member from struct xr_driver.

Commit a8799bb1d22a ("output: Remove support for nested tables.")
removed the real users for this member but didn't remove the member
itself or two unneeded uses of it.

3 years agocairo: Simplify and modernize xr_create().
Ben Pfaff [Sat, 28 Nov 2020 04:00:35 +0000 (20:00 -0800)]
cairo: Simplify and modernize xr_create().

Move common code from callers into xr_create(), and initialize variables at
point of creation.

3 years agoDocumentation: Add the generated screenshots to the git repository
John Darrington [Sat, 28 Nov 2020 20:44:56 +0000 (21:44 +0100)]
Documentation: Add the generated screenshots to the git repository

3 years agoDocumentation: Add some screenshots to the user manual.
John Darrington [Sat, 28 Nov 2020 20:32:24 +0000 (21:32 +0100)]
Documentation: Add some screenshots to the user manual.

Added a mechanism to automatically generate screenshots from the
graphic user interface for inclusion in the manual.

3 years agodoc/variables.texi: Rearrange sections into a more logical reading order.
John Darrington [Sat, 28 Nov 2020 13:07:29 +0000 (14:07 +0100)]
doc/variables.texi: Rearrange sections into a more logical reading order.

3 years agoDocumentation: Add an example for SORT CASES
John Darrington [Sat, 28 Nov 2020 10:50:39 +0000 (11:50 +0100)]
Documentation: Add an example for SORT CASES

3 years agoDocumentation: Add an example showing how AGGREGATE works
John Darrington [Sat, 28 Nov 2020 10:29:43 +0000 (11:29 +0100)]
Documentation: Add an example showing how AGGREGATE works

3 years agoDocumentation: Add an example showing the use of SELECT IF.
John Darrington [Sat, 28 Nov 2020 10:22:41 +0000 (11:22 +0100)]
Documentation: Add an example showing the use of SELECT IF.

3 years agoDocumentation: New example for the temporary command
John Darrington [Sat, 28 Nov 2020 10:11:11 +0000 (11:11 +0100)]
Documentation: New example for the temporary command

3 years agodoc: Make figure references relative to doc/, not to doc/pspp-figures.
Ben Pfaff [Sat, 28 Nov 2020 02:56:35 +0000 (18:56 -0800)]
doc: Make figure references relative to doc/, not to doc/pspp-figures.

This frame of reference is what the viewers for the generated XML and Info
files expect (from testing).  It also seems to be what the Makefile expects
since this allows us to eliminate a couple of include directory options.

3 years agodoc: Use $(convert) variable consistently.
Ben Pfaff [Sat, 28 Nov 2020 02:23:59 +0000 (18:23 -0800)]
doc: Use $(convert) variable consistently.

Apparently I introduced this halfway.

3 years agodoc: Be consistent about plurals in figure target and variable names.
Ben Pfaff [Sat, 28 Nov 2020 02:21:44 +0000 (18:21 -0800)]
doc: Be consistent about plurals in figure target and variable names.

Before this commit, "txt" and "texi" used plural forms, "html" and "pdf"
used singular, and "spv" was mixed (!).  This consistently uses the plural.

3 years agodoc: Move output examples from "examples" to "pspp-figures".
Ben Pfaff [Fri, 27 Nov 2020 23:38:07 +0000 (15:38 -0800)]
doc: Move output examples from "examples" to "pspp-figures".

The Texinfo manual suggests this convention:

     If you want to install image files for use by Info readers too, we
  recommend putting them in a subdirectory like 'FOO-figures' for a
  package FOO.  Copying the files into '$(infodir)/FOO-figures/' should be
  done in your 'Makefile'.

Although it suggests this convention for the installed Info, it helps to
use the convention for the source and build directories, because "makeinfo"
looks for the files at Info build time.

3 years agoMakefile: Fix spelling of "prerequisites".
Ben Pfaff [Fri, 27 Nov 2020 22:58:22 +0000 (14:58 -0800)]
Makefile: Fix spelling of "prerequisites".

3 years agosrc/libpspp/Makefile.am: Fix atomicity of version.c generation.
Ben Pfaff [Fri, 27 Nov 2020 23:05:55 +0000 (15:05 -0800)]
src/libpspp/Makefile.am: Fix atomicity of version.c generation.

If the Makefile has a bug, or someone runs two "make"s in parallel, the
approach of truncating version.c then appending to it line by line,
reopening the file each time, can wind up with a nasty partial result.  By
generating it in a single go, and then replacing the file atomically, we
avoid that problem.

3 years agosrc/ui/gui/psppire-import-textfile.c: Fix compiler warnings
John Darrington [Tue, 17 Nov 2020 17:27:38 +0000 (18:27 +0100)]
src/ui/gui/psppire-import-textfile.c: Fix compiler warnings

3 years agoOnly reset the separators page when going forwards
John Darrington [Tue, 17 Nov 2020 17:27:38 +0000 (18:27 +0100)]
Only reset the separators page when going forwards

3 years agoFix on_quote_combo_change callback
John Darrington [Tue, 17 Nov 2020 17:27:38 +0000 (18:27 +0100)]
Fix on_quote_combo_change callback

3 years agoRemove diagnostic
John Darrington [Tue, 17 Nov 2020 17:27:38 +0000 (18:27 +0100)]
Remove diagnostic

3 years agosrc/data/dictionary.c (make_hinted_name): Limit generated name to 64 bytes long
John Darrington [Tue, 17 Nov 2020 17:27:38 +0000 (18:27 +0100)]
src/data/dictionary.c (make_hinted_name): Limit generated name to 64 bytes long

3 years agoMove syntax generation to the psppire-import-textfile module
John Darrington [Tue, 17 Nov 2020 17:27:38 +0000 (18:27 +0100)]
Move syntax generation to the psppire-import-textfile module

3 years agoPartial revert "work on getting better output into documentation"
John Darrington [Sun, 15 Nov 2020 14:33:16 +0000 (15:33 +0100)]
Partial revert "work on getting better output into documentation"

This change reverts part of commit 543a4fc802d42256c8f7b950580343fa81370f73
which I think was committed in error.

3 years agowindows: EXEEXT was at wrong place
Friedrich Beckmann [Mon, 16 Nov 2020 20:35:00 +0000 (21:35 +0100)]
windows: EXEEXT was at wrong place

The EXEXT must only be in the dependency but not in the executable.

3 years agosvg2png: Speed up gimp startup with -d option.
Ben Pfaff [Mon, 16 Nov 2020 18:13:21 +0000 (10:13 -0800)]
svg2png: Speed up gimp startup with -d option.

This option prevents gimp from loading patterns, gradients, palettes,
and brushes.  I think that these are mostly for interactive use.  I didn't
see any difference in output quality.

On my system this sped up "make -f Smake -j128 icons" from 1.8 to 1.6
seconds.  On other systems I guess it will make a bigger difference.

3 years agoSmake: Clean icons from "clean" target and add clean-icons target.
Ben Pfaff [Mon, 16 Nov 2020 17:58:24 +0000 (09:58 -0800)]
Smake: Clean icons from "clean" target and add clean-icons target.

3 years agowork on getting better output into documentation
Ben Pfaff [Fri, 13 Nov 2020 16:45:45 +0000 (08:45 -0800)]
work on getting better output into documentation