pspp
3 years agoMakefile.am: Suppress GCC 10.x warning in gl/careadlinkat.c.
Ben Pfaff [Mon, 31 Aug 2020 16:03:24 +0000 (09:03 -0700)]
Makefile.am: Suppress GCC 10.x warning in gl/careadlinkat.c.

This suppresses an error in gl/careadlinkat.c that otherwise can't be
avoided in GCC 10.x:
  ../../gl/careadlinkat.c: In function ‘careadlinkat’:
  cc1: error: function may return address of local variable

3 years agoGFUNC_COMPAT_CAST also for dialog-common.c
Friedrich Beckmann [Sun, 30 Aug 2020 20:24:18 +0000 (22:24 +0200)]
GFUNC_COMPAT_CAST also for dialog-common.c

I missed that one - Thanks!

3 years agoWork around bug in Automake 1.16.1
John Darrington [Sun, 30 Aug 2020 13:09:13 +0000 (15:09 +0200)]
Work around bug in Automake 1.16.1

3 years agomoved GFunc cast to macro GFUNC_COMPAT_CAST
Friedrich Beckmann [Sun, 30 Aug 2020 12:56:21 +0000 (14:56 +0200)]
moved GFunc cast to macro GFUNC_COMPAT_CAST

I moved the GFunc cast for g_list_foreach to a macro with
some explaining comment. The macro is in helper.h

3 years agopsppire-spread-sheetmodel.c: modified userdata increment using GPOINTER_TO_INT
Friedrich Beckmann [Sun, 30 Aug 2020 11:50:14 +0000 (13:50 +0200)]
psppire-spread-sheetmodel.c: modified userdata increment using GPOINTER_TO_INT

3 years agopo/pl.po - replaced strange character in comment
Friedrich Beckmann [Sun, 30 Aug 2020 11:55:39 +0000 (13:55 +0200)]
po/pl.po - replaced strange character in comment

This results in sed on MacOS to report an error.

3 years agodummy.c: Conform to exact prototypes
John Darrington [Sun, 30 Aug 2020 05:43:32 +0000 (07:43 +0200)]
dummy.c: Conform to exact prototypes

Apparently certain toolchains complain if the symbols in dummy.c do not
exactly match their declarations.  This should not be a problem unless
the compiler has enabled a lot of warnings, and is treating those warnings
as errors, (which is inadvisable except under very special circumstances).
However, it appears that some people are doing that.

This change ensures that they are identical.

3 years agoPrefer GTK+ style casts rather than C-style casts.
John Darrington [Sun, 30 Aug 2020 05:48:26 +0000 (07:48 +0200)]
Prefer GTK+ style casts rather than C-style casts.

3 years agoReplace '(GObjectClass*) class' with 'G_OBJECT_CLASS(class)'
John Darrington [Sun, 30 Aug 2020 05:46:03 +0000 (07:46 +0200)]
Replace '(GObjectClass*) class' with 'G_OBJECT_CLASS(class)'

3 years agoRemove _base_init functions from custom widget definitions.
John Darrington [Sun, 30 Aug 2020 05:45:01 +0000 (07:45 +0200)]
Remove _base_init functions from custom widget definitions.

These served no purpose, and are in Gtk+ only for reasons of
legacy so far as I can make out.   Also use G_TYPE_DEFINE macros
instead of explicit *_get_type function definitions.

3 years agoINSTALL: Remove reference to --with-gui-tools which no longer exists
John Darrington [Sun, 30 Aug 2020 05:43:32 +0000 (07:43 +0200)]
INSTALL: Remove reference to --with-gui-tools which no longer exists

3 years agoswitched off unused-paramter warning for lib-essential gui files
Friedrich Beckmann [Sat, 29 Aug 2020 22:26:35 +0000 (00:26 +0200)]
switched off unused-paramter warning for lib-essential gui files

I disabled the unused-parameter warning as for the other
gui files. Same as before the introduction of the essential
library.

3 years agosrc/ui/gui/automake.mk: Add missing AM_CFLAGS parameter
John Darrington [Sat, 29 Aug 2020 18:06:25 +0000 (20:06 +0200)]
src/ui/gui/automake.mk: Add missing AM_CFLAGS parameter

3 years agoWarnings: correct cast for psppire-spread-sheet model
Friedrich Beckmann [Sat, 29 Aug 2020 16:29:06 +0000 (18:29 +0200)]
Warnings: correct cast for psppire-spread-sheet model

This fixes the compiler warning:
warning: wrong type argument to increment [-Wpointer-arith]

3 years agoRemove src/ui/gui/memorandum.txt
John Darrington [Sat, 29 Aug 2020 13:41:37 +0000 (15:41 +0200)]
Remove src/ui/gui/memorandum.txt

Almost all of the information in this file is out of date.

3 years agoAdd convenience library libwidgets-essential
John Darrington [Sat, 29 Aug 2020 13:40:16 +0000 (15:40 +0200)]
Add convenience library libwidgets-essential

This avoids having to compile large numbers of modules twice.

3 years agoxml-parser-generator - iterate over sorted dict - #58975
Friedrich Beckmann [Sat, 29 Aug 2020 13:19:36 +0000 (15:19 +0200)]
xml-parser-generator - iterate over sorted dict - #58975

I sort the dict before iteration because the normal
iterator over a dict is not reproducible and will generate
different code in each run. This will work but the
build is not reproducible.

Closes: https://savannah.gnu.org/bugs/index.php?58975
3 years agosrc/ui/gui/psppire-conf.c: Use GError instead of strerror.
John Darrington [Sat, 29 Aug 2020 06:26:23 +0000 (08:26 +0200)]
src/ui/gui/psppire-conf.c: Use GError instead of strerror.

Apparently the use of strerror was causing problems on certain
platforms.  In this case, since the function being checked provides
a GError argument it makes sense to use that instead.

Closes bug #59034

3 years agoreplace finite with isfinite
Friedrich Beckmann [Tue, 25 Aug 2020 12:58:17 +0000 (14:58 +0200)]
replace finite with isfinite

finite function is deprecated on MacOS.

3 years agoWarning: added missing initializer for closure_callback in GSourceFuncs
Friedrich Beckmann [Tue, 25 Aug 2020 08:18:42 +0000 (10:18 +0200)]
Warning: added missing initializer for closure_callback in GSourceFuncs

3 years agoWarning: "static const" instead of "const static"
Friedrich Beckmann [Tue, 25 Aug 2020 07:56:57 +0000 (09:56 +0200)]
Warning: "static const" instead of "const static"

Remove warning:
 ‘static’ is not at beginning of declaration

3 years agoWarning: avoid warning that weekday may be used uninitialized
Friedrich Beckmann [Tue, 25 Aug 2020 07:50:12 +0000 (09:50 +0200)]
Warning: avoid warning that weekday may be used uninitialized

3 years agoWarning: adhere to const qualifier for initializations and assignments
Friedrich Beckmann [Tue, 25 Aug 2020 07:42:55 +0000 (09:42 +0200)]
Warning: adhere to const qualifier for initializations and assignments

This commit avoids the warnings:
warning: initialization discards ‘const’ qualifier from pointer target type
warning: assignment discards ‘const’ qualifier from pointer target type

3 years agoWarnings: fix missing function prototypes
Friedrich Beckmann [Mon, 24 Aug 2020 20:46:48 +0000 (22:46 +0200)]
Warnings: fix missing function prototypes

In most cases I added the static qualifier which was
missing. Some functions are never called so I either
removed them or I put them in #if DEBUG

3 years agoWarnings: removed fallthrough in case statements
Friedrich Beckmann [Mon, 24 Aug 2020 11:20:21 +0000 (13:20 +0200)]
Warnings: removed fallthrough in case statements

I guess the fallthroughs in the case statements were not intentional.
This avoids the warning:
warning: this statement may fall through

3 years agoWarnings: added cast for enumaration types
Friedrich Beckmann [Mon, 24 Aug 2020 11:08:35 +0000 (13:08 +0200)]
Warnings: added cast for enumaration types

This avoids the warning:
warning: implicit conversion from ‘enum <anonymous>’ to ...

3 years agoAdded tooltip for statistics in dialogs
Friedrich Beckmann [Mon, 24 Aug 2020 10:48:33 +0000 (12:48 +0200)]
Added tooltip for statistics in dialogs

This removed the warning:

warning: missing initializer for field ‘tooltip’

3 years agoWarnings: function type cast for g_list_foreach
Friedrich Beckmann [Mon, 24 Aug 2020 09:19:33 +0000 (11:19 +0200)]
Warnings: function type cast for g_list_foreach

I added a cast for the functions used in g_list_foreach. Without
the cast, the warning
warning: cast between incompatible function types
is reported.

3 years agoWarnings: missing initializer for value_tables and function type cast (GObject)
Friedrich Beckmann [Mon, 24 Aug 2020 08:57:10 +0000 (10:57 +0200)]
Warnings: missing initializer for value_tables and function type cast (GObject)

I fixed the warnings:
warning: missing initializer for field ‘value_table’ of ‘GTypeInfo’
warning: cast between incompatible function types
by replacing the handwritten type info code with G_DEFINE_TYPE...
macros (preferred). When this was not possible due to usage of
base init functions I added casts and the initializer.

3 years agoWarnings: add AM_CFLAGS also for the psppire build
Friedrich Beckmann [Mon, 24 Aug 2020 18:07:21 +0000 (20:07 +0200)]
Warnings: add AM_CFLAGS also for the psppire build

With the new setup the psppire and glade build honours the
AM_CFLAGS setup. This includes the Wextra warnings which
show some more warnings. The two checks which are disabled are

-Wno-sign-compare     : disabled also for core pspp
-Wno-unused-parameter : many callbacks result in unused parameters

3 years agoFixed bug which caused a crash when using the Find feature
John Darrington [Sun, 23 Aug 2020 07:10:01 +0000 (09:10 +0200)]
Fixed bug which caused a crash when using the Find feature

3 years agosrc/ui/gui/dummy.c: Eliminate warnings when building with gcc-10.2.0
John Darrington [Sat, 22 Aug 2020 11:54:14 +0000 (13:54 +0200)]
src/ui/gui/dummy.c: Eliminate warnings when building with gcc-10.2.0

3 years agoUpdated translations from translationproject.org
John Darrington [Sat, 22 Aug 2020 07:16:46 +0000 (09:16 +0200)]
Updated translations from translationproject.org

3 years agosrc/ui/gui/automake.mk: Remove yelp-check rule
John Darrington [Sun, 16 Aug 2020 08:50:17 +0000 (10:50 +0200)]
src/ui/gui/automake.mk: Remove yelp-check rule

3 years agopsppire-marshaller.c: Include the header file
John Darrington [Sun, 16 Aug 2020 08:36:02 +0000 (10:36 +0200)]
psppire-marshaller.c: Include the header file

3 years agohtml.c: Reimplement as HTML5
John Darrington [Sun, 5 Jul 2020 06:15:20 +0000 (08:15 +0200)]
html.c: Reimplement as HTML5

3 years agoget_language: New function
John Darrington [Sun, 5 Jul 2020 06:12:41 +0000 (08:12 +0200)]
get_language: New function

3 years agoIssue error message if failing to change directory
John Darrington [Wed, 19 Aug 2020 05:13:13 +0000 (07:13 +0200)]
Issue error message if failing to change directory

3 years agobarchart.c: Sort the categories before displaying them.
John Darrington [Tue, 18 Aug 2020 09:52:57 +0000 (11:52 +0200)]
barchart.c: Sort the categories before displaying them.

Partial fix for bug #58968

3 years agolimit the number of variables in barchart from crosstabs #58968
Friedrich Beckmann [Mon, 17 Aug 2020 17:43:37 +0000 (19:43 +0200)]
limit the number of variables in barchart from crosstabs #58968

The barchart was created with more than two variables from
the crosstabs subcommand. I added an assertion and limit
the number of variables to two. This bug resulted in a
regression failure (crash) for test

493: CROSSTABS barchart

on i386 architecture.

see: https://savannah.gnu.org/bugs/?58968

3 years agofixed range check in parse_record_placement (32Bit/64Bit issue) #58968
Friedrich Beckmann [Mon, 17 Aug 2020 09:52:47 +0000 (11:52 +0200)]
fixed range check in parse_record_placement (32Bit/64Bit issue) #58968

The regression failed for test "lexer crash due to overflow" (403)
on i386 architecture. The reason is that long is 64Bit on amd64 while
it is 32Bit on i386. The code used long as type that can hold larger
values than int which does not work on 32Bit systems.

The change keeps the value as double as long as the range checks are done.

see: https://savannah.gnu.org/bugs/?58968

3 years agofixed git distribution check for .gitattributes added in previous commit
Friedrich Beckmann [Mon, 17 Aug 2020 10:22:04 +0000 (12:22 +0200)]
fixed git distribution check for .gitattributes added in previous commit

3 years agoadded .gitattributes file such that lexer.at shows diff
Friedrich Beckmann [Mon, 17 Aug 2020 09:45:07 +0000 (11:45 +0200)]
added .gitattributes file such that lexer.at shows diff

3 years agofactor.c: added translation hint
Friedrich Beckmann [Sun, 16 Aug 2020 15:28:49 +0000 (17:28 +0200)]
factor.c: added translation hint

3 years agoRemoved stray newline in acinclude.m4
John Darrington [Sun, 16 Aug 2020 18:56:06 +0000 (20:56 +0200)]
Removed stray newline in acinclude.m4

Reported-by: Michel Boaventura
3 years agoFixed error running 'make distcheck'
John Darrington [Sun, 16 Aug 2020 12:32:31 +0000 (14:32 +0200)]
Fixed error running 'make distcheck'

3 years agoFixed some errors in format and orthography of printed strings.
John Darrington [Sun, 16 Aug 2020 10:36:00 +0000 (12:36 +0200)]
Fixed some errors in format and orthography of printed strings.

Reported-by: Anonymous https://lists.gnu.org/archive/html/bug-gnu-pspp/2020-08/msg00004.html
3 years agopspp-convert.1 - fixed a syntax typo
Friedrich Beckmann [Sun, 16 Aug 2020 08:43:04 +0000 (10:43 +0200)]
pspp-convert.1 - fixed a syntax typo

The debian build checks reported a bug in the man page:

troff: <standard input>:129: '\-' is not allowed in an escape name

The man page can be checked with:

LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 \
man --warnings -E UTF-8 -l -Tutf8 -Z ./pspp-convert.1 >/dev/null

3 years agoRevive psppire's glade compatibility
John Darrington [Mon, 10 Aug 2020 07:15:09 +0000 (09:15 +0200)]
Revive psppire's glade compatibility

3 years agoPsppireSelector: Don't attempt to unref a null pointer
John Darrington [Sun, 9 Aug 2020 16:16:27 +0000 (18:16 +0200)]
PsppireSelector: Don't attempt to unref a null pointer

3 years agoUpdate GtkBuilder files to mention gtk+ version 3.22
John Darrington [Sun, 9 Aug 2020 14:37:45 +0000 (16:37 +0200)]
Update GtkBuilder files to mention gtk+ version 3.22

3 years agosrc/language/stats/chart-category.h: Add #include directive
jdarrington [Sun, 9 Aug 2020 14:21:33 +0000 (16:21 +0200)]
src/language/stats/chart-category.h: Add #include directive

3 years agoPsppireVarView: Use g_realloc instead of xrealloc
jdarrington [Sun, 9 Aug 2020 14:19:16 +0000 (16:19 +0200)]
PsppireVarView: Use g_realloc instead of xrealloc

3 years agosrc/ui/gui/automake.mk: Sort the manifest
jdarrington [Sun, 9 Aug 2020 11:19:03 +0000 (13:19 +0200)]
src/ui/gui/automake.mk: Sort the manifest

3 years agoRename PsppireButtonbox to PsppireButtonBox
jdarrington [Sun, 9 Aug 2020 11:10:47 +0000 (13:10 +0200)]
Rename PsppireButtonbox to PsppireButtonBox

This is more consistent with other names.

3 years agosrc/ui/gui/psppire-conf.c: On error, give a reason for failure to create file
John Darrington [Sun, 2 Aug 2020 17:17:19 +0000 (19:17 +0200)]
src/ui/gui/psppire-conf.c: On error, give a reason for failure to create file

3 years agoAvoid warnings about ! being passed a non-boolean
John Darrington [Sun, 2 Aug 2020 09:44:18 +0000 (11:44 +0200)]
Avoid warnings about ! being passed a non-boolean

3 years agoPsppireImportAssistant: Proceed to next page when a file is double clicked
John Darrington [Sun, 19 Jul 2020 09:35:56 +0000 (11:35 +0200)]
PsppireImportAssistant: Proceed to next page when a file is double clicked

3 years agoRemove/Replace some obsolete gnulib modules
John Darrington [Sun, 19 Jul 2020 07:51:09 +0000 (09:51 +0200)]
Remove/Replace some obsolete gnulib modules

3 years agoSmake: create build-aux/config.rpath
John Darrington [Mon, 10 Aug 2020 08:44:22 +0000 (10:44 +0200)]
Smake: create build-aux/config.rpath

3 years agoUpdate to more recent GNULIB
jdarrington [Sun, 9 Aug 2020 10:53:32 +0000 (12:53 +0200)]
Update to more recent GNULIB

3 years agoBump version to 1.5.0
John Darrington [Sun, 16 Aug 2020 06:57:16 +0000 (08:57 +0200)]
Bump version to 1.5.0

3 years agoRelease PSPP version 1.4.0.
Ben Pfaff [Sat, 15 Aug 2020 22:53:21 +0000 (22:53 +0000)]
Release PSPP version 1.4.0.

3 years agosys-file-reader: get_text_token did not set delimiter - bug #58943
Friedrich Beckmann [Fri, 14 Aug 2020 00:53:11 +0000 (02:53 +0200)]
sys-file-reader: get_text_token did not set delimiter - bug #58943

parse_mrsets used loop local variables which were not initialized.
The regression worked with low compiler optimization levels because
the value for "delimiter" was kept over the loop iterations.
get_text_token did not set the delimiter value when only delimiters
are left in the string. I set the delimiter value to the last value
in the string in that case. I initialized the variables to see the
bug also in -O0.

Closes: https://savannah.gnu.org/bugs/?58943
3 years agorender-test: Initialize i18n to make tests pass on mingw.
Ben Pfaff [Mon, 3 Aug 2020 04:31:22 +0000 (04:31 +0000)]
render-test: Initialize i18n to make tests pass on mingw.

On mingw, filename recoding requires i18n to be initialized.

3 years agotests: Tolerate 3-digit exponents in output for chart tick format.
Ben Pfaff [Mon, 3 Aug 2020 04:30:44 +0000 (04:30 +0000)]
tests: Tolerate 3-digit exponents in output for chart tick format.

This makes the test pass on mingw.

3 years agotests: Ignore Pango warnings when generating charts.
Ben Pfaff [Mon, 3 Aug 2020 04:28:38 +0000 (04:28 +0000)]
tests: Ignore Pango warnings when generating charts.

On mingw, Pango complains about font names.  It's harmless.  I don't know
a way to suppress the warning.

3 years agoplacement-parser: Properly handle LONG_MAX != INT_MAX.
Ben Pfaff [Mon, 3 Aug 2020 00:44:40 +0000 (00:44 +0000)]
placement-parser: Properly handle LONG_MAX != INT_MAX.

Also, delete spurious null bytes from the related test.  The null
bytes spurred a test failure on mingw although I am not sure why.

3 years agotests: More character encoding issues on command line.
Ben Pfaff [Sun, 2 Aug 2020 21:26:31 +0000 (21:26 +0000)]
tests: More character encoding issues on command line.

Unix-like systems don't have a command-line encoding, so we can pass
whatever bytes we want.  mingw uses some particular encoding for
command line arguments, so this screws up trying to pass UTF-8 in.  This
commit side-steps the problem by passing only ASCII characters on the
command line and making the test program decode the bytes.

This fixes several test failures under mingw.

3 years agotests: Use AUTOTEST_PATH to find chart test programs.
Ben Pfaff [Sun, 2 Aug 2020 22:10:42 +0000 (22:10 +0000)]
tests: Use AUTOTEST_PATH to find chart test programs.

Otherwise the test wrappers feature can't help to find it on mingw, so
the chart geometry tests fail.

3 years agozip-test: Open files in binary mode.
Ben Pfaff [Sun, 2 Aug 2020 21:57:31 +0000 (21:57 +0000)]
zip-test: Open files in binary mode.

Fixes a test failure on mingw.

3 years agotests: Avoid dealing with character encoding issues on command line.
Ben Pfaff [Sun, 2 Aug 2020 21:26:31 +0000 (21:26 +0000)]
tests: Avoid dealing with character encoding issues on command line.

Unix-like systems don't have a command-line encoding, so we can pass
whatever bytes we want.  mingw uses some particular encoding for
command line arguments, so this screws up trying to pass UTF-8 in.  This
commit side-steps the problem by passing only ASCII characters on the
command line and making the test program decode the bytes.

This fixes several test failures under mingw.

3 years agotests: Tolerate carriage-returns in output for SAMPLE test.
Ben Pfaff [Sun, 2 Aug 2020 20:44:14 +0000 (20:44 +0000)]
tests: Tolerate carriage-returns in output for SAMPLE test.

This fixes a test failure with mingw.

3 years agotests: Always set a paper size.
Ben Pfaff [Sun, 2 Aug 2020 19:05:52 +0000 (19:05 +0000)]
tests: Always set a paper size.

Normally PSPP can find a default paper size but this isn't necessarily true
inside, e.g., a build container, so set a default to avoid test failures.

3 years agotests: Don't output to PDF without a good reason.
Ben Pfaff [Sun, 2 Aug 2020 19:03:42 +0000 (19:03 +0000)]
tests: Don't output to PDF without a good reason.

PDF output can cause spurious error messages from Pango to appear in the
output (which would be nice to fix but I'm not sure how) and it's not
always configured in, so omit it in MRSETS where it's not really needed.

3 years agotests: Fix synthetic system file reader tests on Windows.
Ben Pfaff [Sun, 2 Aug 2020 18:23:35 +0000 (18:23 +0000)]
tests: Fix synthetic system file reader tests on Windows.

The system files were being written as text files, so any \n character was
getting translated into \r\n, corrupting the output.

3 years agoSmake: added 16x16, 32x32 and 256x256 pspp.png icons
Friedrich Beckmann [Fri, 31 Jul 2020 14:10:11 +0000 (16:10 +0200)]
Smake: added 16x16, 32x32 and 256x256 pspp.png icons

3 years agoRecent spread-sheet-widget to version 0.6
John Darrington [Sun, 26 Jul 2020 18:54:57 +0000 (20:54 +0200)]
Recent spread-sheet-widget to version 0.6

3 years agoFix typo in po/automake.mk
John Darrington [Sun, 19 Jul 2020 13:07:33 +0000 (15:07 +0200)]
Fix typo in po/automake.mk

3 years agoRecent spread-sheet-widget to 0.5 or later
John Darrington [Sat, 18 Jul 2020 06:00:37 +0000 (08:00 +0200)]
Recent spread-sheet-widget to 0.5 or later

3 years agoImport Assistant Sheet Page: Set the sheet selector sentitivity
John Darrington [Sun, 12 Jul 2020 09:43:39 +0000 (11:43 +0200)]
Import Assistant Sheet Page: Set the sheet selector sentitivity

3 years agogui: normalize clipboard cut selection rectangle (#58756)
Friedrich Beckmann [Sun, 12 Jul 2020 19:32:28 +0000 (21:32 +0200)]
gui: normalize clipboard cut selection rectangle (#58756)

With this patch the selection rectangle for the clipboard cut
operation is normalize, i.e. it does not matter in which corner
you start the selection.

Closes: https://savannah.gnu.org/bugs/index.php?58756
3 years agogui: clipboard CUT and COPY store same data with/without label
Friedrich Beckmann [Sun, 12 Jul 2020 18:59:35 +0000 (20:59 +0200)]
gui: clipboard CUT and COPY store same data with/without label

clipboard store data with or without value labels depending on
the setting in the data view. clipboard cut was always storing
the raw data.
With this patch copy and cut both store raw data or labels
depending on the view setting.

Closes: https://savannah.gnu.org/bugs/?58757
3 years agogui: Pasting also considers labels as valid data
Friedrich Beckmann [Sun, 12 Jul 2020 16:36:16 +0000 (18:36 +0200)]
gui: Pasting also considers labels as valid data

With this patch pasting from clipboard also interprets labels as
valid data. First it is checked if the pasted data is a label for
the destination variable. Then the corresponding data is stored.

3 years agopsppire-import-assistant (struct _PsppireImportAssistant): Remove unused member.
John Darrington [Sat, 11 Jul 2020 19:49:00 +0000 (21:49 +0200)]
psppire-import-assistant (struct _PsppireImportAssistant): Remove unused member.

3 years agoFix memory leak in the value labels dialog
John Darrington [Sat, 11 Jul 2020 15:35:57 +0000 (17:35 +0200)]
Fix memory leak in the value labels dialog

3 years agosrc/ui/gui/org.fsf.pspp.desktop.in: Add translator hint
John Darrington [Sat, 11 Jul 2020 13:31:33 +0000 (15:31 +0200)]
src/ui/gui/org.fsf.pspp.desktop.in: Add translator hint

Add an instruction to not translate the Icon name.   Recent versions of
xgettext (correctly) ignore this entry.  But earlier versions erroneously
include it in the list of strings to translate.

3 years agopsppire-data-window.c: Remove ssw api protection
John Darrington [Sat, 11 Jul 2020 10:58:41 +0000 (12:58 +0200)]
psppire-data-window.c: Remove ssw api protection

3 years agoSpreadLevel Plot: Don't try to take the logarithm of a negative
John Darrington [Sat, 11 Jul 2020 09:08:23 +0000 (11:08 +0200)]
SpreadLevel Plot: Don't try to take the logarithm of a negative

3 years agosrc/output/cairo-chart.h (xrchart_write_scale): Check the range and deal with the...
John Darrington [Sat, 11 Jul 2020 07:35:29 +0000 (09:35 +0200)]
src/output/cairo-chart.h (xrchart_write_scale): Check the range and deal with the consequences.

If a chart was requested where either scale had an range of zero
(the minimum value and the maximum value were equal), then all
sorts of memory errors could occur later in the chart's rendering.

This change checks for this condition early and refuses to draw the
chart in this case.

3 years agopsppire-data-window.c (on_cut): Do not append trailing whitespace to clip.
John Darrington [Sat, 11 Jul 2020 05:46:14 +0000 (07:46 +0200)]
psppire-data-window.c (on_cut): Do not append trailing whitespace to clip.

3 years agopsppire-data-window.c (on_cut): Deal properly with string variables.
John Darrington [Sat, 11 Jul 2020 05:40:09 +0000 (07:40 +0200)]
psppire-data-window.c (on_cut): Deal properly with string variables.

3 years agoDo not attempt to use the output driver while it's being destroyed.
John Darrington [Sat, 11 Jul 2020 05:32:30 +0000 (07:32 +0200)]
Do not attempt to use the output driver while it's being destroyed.

3 years agosrc/ui/gui/automake.mk: Remove OBSOLETE
John Darrington [Sat, 11 Jul 2020 05:24:25 +0000 (07:24 +0200)]
src/ui/gui/automake.mk: Remove OBSOLETE

This definition is indeed obsolete.

3 years ago#undef close which was causing problems on w32
John Darrington [Sat, 11 Jul 2020 05:09:11 +0000 (07:09 +0200)]
#undef close which was causing problems on w32

3 years agoRevert "Conditional Compilation per GCS 3.5"
John Darrington [Sat, 11 Jul 2020 04:55:28 +0000 (06:55 +0200)]
Revert "Conditional Compilation per GCS 3.5"

This reverts commit 002a30f274ced97769ebc3373c493a8e5329c2bc.

3 years agoRevert "Keep systems happy which do not have sys/resource.h"
John Darrington [Sat, 11 Jul 2020 04:55:28 +0000 (06:55 +0200)]
Revert "Keep systems happy which do not have sys/resource.h"

This reverts commit f4ba0d4b24301f389dfb76a66094b093125fac9b.

3 years agoHistogram Dialog: Allow only numeric variables to be selected
John Darrington [Sat, 11 Jul 2020 04:37:36 +0000 (06:37 +0200)]
Histogram Dialog: Allow only numeric variables to be selected

3 years agoReduce the length of the icon names.
John Darrington [Sat, 11 Jul 2020 04:37:36 +0000 (06:37 +0200)]
Reduce the length of the icon names.

This was causing problems for the autobuilder.

3 years agopo/metainfo.its: New file.
John Darrington [Sat, 11 Jul 2020 04:37:36 +0000 (06:37 +0200)]
po/metainfo.its: New file.

Add a ITS file for metainfo.xml format, and use it when extracting strings for
for translation.