pspp
7 years agogui: Fix #includes for gtksourceview.
Ben Pfaff [Sat, 3 Dec 2016 06:18:16 +0000 (22:18 -0800)]
gui: Fix #includes for gtksourceview.

Newer versions of gtksourceview only allow gtksource.h to be included
directly, so this commit changes PSPPIRE to only include that header.

7 years agopo: Update German translation from translationproject.org.
Ben Pfaff [Tue, 22 Nov 2016 18:50:16 +0000 (10:50 -0800)]
po: Update German translation from translationproject.org.

7 years agotypo in XEXPORT documentation
pspp.freepost@ordinaryamerican.net [Mon, 7 Nov 2016 13:40:14 +0000 (14:40 +0100)]
typo in XEXPORT documentation

This typo was reported in the mailing list in message:
http://lists.gnu.org/archive/html/bug-gnu-pspp/2016-11/msg00001.html
Thank you for reporting the typo!

7 years agofixed func macro in documentation - closes bug #49549
pspp.freepost@ordinaryamerican.net [Mon, 7 Nov 2016 13:10:48 +0000 (14:10 +0100)]
fixed func macro in documentation - closes bug #49549

The func macro did not handle the argument correctly. All arguments were literally
replaced with NAME. I tested this on MacOS with the generated pdf.

Closes bug #49549

7 years agocompile without gnumeric and odf read support
pspp.freepost@ordinaryamerican.net [Mon, 7 Nov 2016 11:18:35 +0000 (12:18 +0100)]
compile without gnumeric and odf read support

This patch fixes the problem described in bug #49550. When libxml2 is
not installed, the gnumeric and odf read support is disabled. This was
not handled correctly. I changed the compilation requirements and the
error message handling if somebody tries to open a file.

Closes bug #49550.

7 years agoreversed CFLAGS, CPPFLAGS and LDFLAGS addition for q2c.c build
Friedrich Beckmann [Mon, 10 Oct 2016 20:34:08 +0000 (22:34 +0200)]
reversed CFLAGS, CPPFLAGS and LDFLAGS addition for q2c.c build

Ben mentioned that this will break the cross compile build. So
I reverted this change.

7 years agoadded CFLAGS, CPPFLAGS and LDFLAGS for PSPP.C and q2c.c compilation
Friedrich Beckmann [Mon, 10 Oct 2016 17:39:06 +0000 (19:39 +0200)]
added CFLAGS, CPPFLAGS and LDFLAGS for PSPP.C and q2c.c compilation

The hardening check during the debian build process showed that the
hardening compile flags are not issued to the compilation process of
PSPP.c (the perl module) and q2c.c (the lexer). Although q2c.c is only
relevant during the build process hardening this will not hurt.

7 years agoperl - added current directory path to calls
Friedrich Beckmann [Mon, 10 Oct 2016 10:55:01 +0000 (12:55 +0200)]
perl - added current directory path to calls

The perl INC path in debian does not include the current directory
anymore. Therefore I added the current directory path at the places
where a module is called and it is assumed that . is part of INC.

See: https://lwn.net/Articles/698853/

7 years agopo: Update Spanish translation from translationproject.org.
Ben Pfaff [Tue, 20 Sep 2016 18:03:30 +0000 (11:03 -0700)]
po: Update Spanish translation from translationproject.org.

7 years agohelp: added t-test reference to help page
Friedrich Beckmann [Fri, 16 Sep 2016 07:17:40 +0000 (09:17 +0200)]
help: added t-test reference to help page

The help button for the t-test dialogs ended on the main page. I added
a reference such that it lands on the t-test page in the documentation.

7 years agoexamples: t-test.sps fixed make process to include in distribution
Friedrich Beckmann [Thu, 15 Sep 2016 18:25:36 +0000 (20:25 +0200)]
examples: t-test.sps fixed make process to include in distribution

I forgot to add the t-test.sps example in the automake.mk file to
include it in the distribution.

7 years agot-test example: Change some wrong comments
Friedrich Beckmann [Thu, 15 Sep 2016 08:30:10 +0000 (10:30 +0200)]
t-test example: Change some wrong comments

I had some wrong comments describing the code.

7 years agoExamples: Added t-Test example code
Friedrich Beckmann [Thu, 15 Sep 2016 08:20:23 +0000 (10:20 +0200)]
Examples: Added t-Test example code

I added a simple t-Test example code with some plots as a
kind of beginners tutorial.

7 years agopo: Add Greek translation and update Catalan and Spanish translations.
Ben Pfaff [Tue, 6 Sep 2016 14:15:59 +0000 (07:15 -0700)]
po: Add Greek translation and update Catalan and Spanish translations.

From translationproject.org.

7 years agoFix missing buttonbox in frequencies dialog
John Darrington [Thu, 1 Sep 2016 07:21:51 +0000 (09:21 +0200)]
Fix missing buttonbox in frequencies dialog

7 years agopsppire-output-view: Avoid GtkWarnings
John Darrington [Thu, 1 Sep 2016 06:32:04 +0000 (08:32 +0200)]
psppire-output-view: Avoid GtkWarnings

7 years agoPSQL READER: Use the REPEATABLE READ isolation level.
John Darrington [Tue, 23 Aug 2016 19:41:13 +0000 (21:41 +0200)]
PSQL READER: Use the REPEATABLE READ isolation level.

Apparently SERIALIZABLE doesn't work if the server is in
"hot standby" mode.

7 years agoFix bugs in frequencies dialog.
John Darrington [Sat, 20 Aug 2016 15:04:30 +0000 (17:04 +0200)]
Fix bugs in frequencies dialog.

This seems to have crept in, in commit dc6d0e08956c6ad42cc943b7496a192c71bdbe02

Thanks to Harry for reporting it.

7 years agoAdded autoconf check for msgfmt
John Darrington [Sat, 20 Aug 2016 14:10:15 +0000 (16:10 +0200)]
Added autoconf check for msgfmt

7 years agoRe-enable the relocation feature.
John Darrington [Thu, 18 Aug 2016 15:44:47 +0000 (17:44 +0200)]
Re-enable the relocation feature.

Problem reported by Harry

7 years agoFix compiler warning
John Darrington [Mon, 15 Aug 2016 12:32:34 +0000 (14:32 +0200)]
Fix compiler warning

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Mon, 15 Aug 2016 12:16:26 +0000 (14:16 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

7 years agoDisable deprecation warnings for all sheet related code
John Darrington [Sun, 14 Aug 2016 12:46:34 +0000 (14:46 +0200)]
Disable deprecation warnings for all sheet related code

7 years agoRemove call to gtk_style_context_add_provider_for_screen
John Darrington [Mon, 15 Aug 2016 11:51:42 +0000 (13:51 +0200)]
Remove call to gtk_style_context_add_provider_for_screen

Contrary to advice I was previously given, this is neither necessary nor
desireable.

7 years agoFont Selection: Use a local css_provider instead of the default one
John Darrington [Mon, 15 Aug 2016 11:48:29 +0000 (13:48 +0200)]
Font Selection: Use a local css_provider instead of the default one

7 years agoPrevent the font selection of comment dialog affecting other widgets.
John Darrington [Mon, 15 Aug 2016 06:53:04 +0000 (08:53 +0200)]
Prevent the font selection of comment dialog affecting other widgets.

I had not properly understood how gtk_css_provider worked.  Hopefully my
understanding is now more accurate.

7 years agoVECTOR: Support creating string variables also.
Ben Pfaff [Sun, 14 Aug 2016 16:28:23 +0000 (09:28 -0700)]
VECTOR: Support creating string variables also.

Bug #48763.

7 years agoFix memory leak
John Darrington [Sun, 14 Aug 2016 13:21:53 +0000 (15:21 +0200)]
Fix memory leak

7 years agoUse modern method of setting font, instead of deprecated method
John Darrington [Sun, 14 Aug 2016 12:51:59 +0000 (14:51 +0200)]
Use modern method of setting font, instead of deprecated method

7 years agoAdded "translate" url to pspp.appdata.xml
John Darrington [Sun, 14 Aug 2016 08:45:48 +0000 (10:45 +0200)]
Added "translate" url to pspp.appdata.xml

7 years agoFix typos in comments
John Darrington [Sun, 14 Aug 2016 07:35:39 +0000 (09:35 +0200)]
Fix typos in comments

7 years agoPopulate the datum entry on cell change
John Darrington [Sun, 14 Aug 2016 07:19:23 +0000 (09:19 +0200)]
Populate the datum entry on cell change

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Sun, 14 Aug 2016 05:51:36 +0000 (07:51 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

Conflicts:
src/ui/gui/psppire-data-window.c

7 years agoFix compiler warning
John Darrington [Sun, 14 Aug 2016 05:47:48 +0000 (07:47 +0200)]
Fix compiler warning

7 years agoFix bug where the gui was unresponsive after starting with a file as command line...
John Darrington [Sun, 14 Aug 2016 05:38:15 +0000 (07:38 +0200)]
Fix bug where the gui was unresponsive after starting with a file as command line argument

7 years agoImprove the conversion to and from cell values
John Darrington [Sat, 13 Aug 2016 18:15:42 +0000 (20:15 +0200)]
Improve the conversion to and from cell values

7 years agoNew module value-variant
John Darrington [Sat, 13 Aug 2016 14:39:58 +0000 (16:39 +0200)]
New module value-variant

7 years agoFix bug inadvertently introduced by previous commit
John Darrington [Sat, 13 Aug 2016 07:13:42 +0000 (09:13 +0200)]
Fix bug inadvertently introduced by previous commit

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Sat, 13 Aug 2016 06:30:07 +0000 (08:30 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

7 years agoNew option --no-unique
John Darrington [Sat, 13 Aug 2016 06:25:03 +0000 (08:25 +0200)]
New option --no-unique

7 years agoAUTORECODE now optionally accepts / before INTO
John Darrington [Sat, 13 Aug 2016 05:29:30 +0000 (07:29 +0200)]
AUTORECODE now optionally accepts / before INTO

Fixes Bug #48762

7 years agoAdd markup to the option description strings
John Darrington [Fri, 12 Aug 2016 18:58:03 +0000 (20:58 +0200)]
Add markup to the option description strings

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Fri, 12 Aug 2016 16:40:23 +0000 (18:40 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

7 years agoFix GtkCriticals when --no-splash is given
John Darrington [Fri, 12 Aug 2016 16:22:14 +0000 (18:22 +0200)]
Fix GtkCriticals when --no-splash is given

7 years agoFix potential null pointer dereference
John Darrington [Fri, 12 Aug 2016 04:53:35 +0000 (06:53 +0200)]
Fix potential null pointer dereference

Found by cppcheck

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Fri, 12 Aug 2016 04:43:40 +0000 (06:43 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

7 years agoFix possible null pointer dereference
John Darrington [Thu, 11 Aug 2016 20:11:38 +0000 (22:11 +0200)]
Fix possible null pointer dereference

7 years agoFix possible null pointer dereference.
John Darrington [Thu, 11 Aug 2016 19:52:52 +0000 (21:52 +0200)]
Fix possible null pointer dereference.

Found by cppcheck

7 years agoAvoid unnecessary test
John Darrington [Thu, 11 Aug 2016 19:26:51 +0000 (21:26 +0200)]
Avoid unnecessary test

7 years agoFix possible buffer overrun
John Darrington [Thu, 11 Aug 2016 19:19:36 +0000 (21:19 +0200)]
Fix possible buffer overrun

Found by cppcheck

7 years agoRemove redundant "break"
John Darrington [Thu, 11 Aug 2016 18:59:22 +0000 (20:59 +0200)]
Remove redundant "break"

7 years agoRemove unused code
John Darrington [Wed, 10 Aug 2016 19:47:28 +0000 (21:47 +0200)]
Remove unused code

7 years agoRe-enable the goto-case dialog
John Darrington [Wed, 10 Aug 2016 19:44:52 +0000 (21:44 +0200)]
Re-enable the goto-case dialog

7 years agoAvoid compiler warning
John Darrington [Wed, 10 Aug 2016 17:19:10 +0000 (19:19 +0200)]
Avoid compiler warning

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Wed, 10 Aug 2016 05:51:08 +0000 (07:51 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

7 years agoFix compiler warning whilst building perl module
John Darrington [Wed, 10 Aug 2016 05:47:51 +0000 (07:47 +0200)]
Fix compiler warning whilst building perl module

7 years agoInitialise iter stamp and fix compiler warning
John Darrington [Tue, 9 Aug 2016 23:21:57 +0000 (01:21 +0200)]
Initialise iter stamp and fix compiler warning

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Tue, 9 Aug 2016 23:03:58 +0000 (01:03 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

7 years agoRemove call to deprecated gtk_style_context_get_font
John Darrington [Tue, 9 Aug 2016 23:02:07 +0000 (01:02 +0200)]
Remove call to deprecated gtk_style_context_get_font

7 years agoFail more gracefully when selecting cells out of range
John Darrington [Mon, 8 Aug 2016 21:01:41 +0000 (23:01 +0200)]
Fail more gracefully when selecting cells out of range

7 years agoEnable the Cut menuitem
John Darrington [Mon, 8 Aug 2016 19:19:56 +0000 (21:19 +0200)]
Enable the Cut menuitem

7 years agoFix compiler warning
John Darrington [Mon, 8 Aug 2016 18:52:06 +0000 (20:52 +0200)]
Fix compiler warning

7 years agoEnable the Edit Copy functionality
John Darrington [Sun, 7 Aug 2016 13:56:50 +0000 (15:56 +0200)]
Enable the Edit Copy functionality

7 years agoMerge branch 'master' into sheet
John Darrington [Sun, 7 Aug 2016 07:26:22 +0000 (09:26 +0200)]
Merge branch 'master' into sheet

7 years agoRemove obsolete file
John Darrington [Sun, 7 Aug 2016 06:02:47 +0000 (08:02 +0200)]
Remove obsolete file

7 years agoRe-enable the gridlines toggle and mark some other commented code with SHEET_MERGE
John Darrington [Sun, 7 Aug 2016 05:57:54 +0000 (07:57 +0200)]
Re-enable the gridlines toggle and mark some other commented code with SHEET_MERGE

7 years agoFix compiler warning
John Darrington [Sat, 6 Aug 2016 18:53:43 +0000 (20:53 +0200)]
Fix compiler warning

7 years agoFix compiler warning
John Darrington [Sat, 6 Aug 2016 18:54:22 +0000 (20:54 +0200)]
Fix compiler warning

7 years agoFix compiler warning
John Darrington [Sat, 6 Aug 2016 18:53:43 +0000 (20:53 +0200)]
Fix compiler warning

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Sat, 6 Aug 2016 17:40:31 +0000 (19:40 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

Conflicts:
src/ui/gui/automake.mk
src/ui/gui/psppire-data-editor.c
src/ui/gui/psppire-data-sheet.c
src/ui/gui/psppire-var-sheet.c

7 years agoRemove deprecated objects GtkAction and GtkUIManager
John Darrington [Sat, 6 Aug 2016 08:01:17 +0000 (10:01 +0200)]
Remove deprecated objects GtkAction and GtkUIManager

Instead use GAction and GMenuModel.  A lot of other code needed to be adjusted too.

7 years agoFix buffer overrun in sys-file-reader.c(text_match)
John Darrington [Sat, 6 Aug 2016 02:45:26 +0000 (04:45 +0200)]
Fix buffer overrun in sys-file-reader.c(text_match)

Found by valgrind

7 years agoAdd hu.po and update translations from translationproject.org
John Darrington [Mon, 1 Aug 2016 05:24:01 +0000 (07:24 +0200)]
Add hu.po and update translations from translationproject.org

7 years agoFix memory leak when T-TEST failed to parse
John Darrington [Sun, 31 Jul 2016 15:16:45 +0000 (17:16 +0200)]
Fix memory leak when T-TEST failed to parse

7 years agoFix memory leak in test program
John Darrington [Sun, 31 Jul 2016 13:47:06 +0000 (15:47 +0200)]
Fix memory leak in test program

7 years agoFix possible crash if no buttons are active (should never be the case)
John Darrington [Sat, 30 Jul 2016 14:09:18 +0000 (16:09 +0200)]
Fix possible crash if no buttons are active (should never be the case)

Found by cppcheck

7 years agoRemove unused variable.
John Darrington [Sat, 30 Jul 2016 14:08:00 +0000 (16:08 +0200)]
Remove unused variable.

Found by cppcheck.

7 years agoRemove PsppireVButtonBox and PsppireHButtonBox
John Darrington [Sat, 30 Jul 2016 05:19:40 +0000 (07:19 +0200)]
Remove PsppireVButtonBox and PsppireHButtonBox

Instead, use the orientable property of the ancester GtkButtonBox

7 years agorange-set-test: Remove special case for llvm-gcc on Mac OS.
Ben Pfaff [Wed, 27 Jul 2016 03:39:24 +0000 (20:39 -0700)]
range-set-test: Remove special case for llvm-gcc on Mac OS.

According to Jeremy Lavergne, recent llvm-gcc doesn't have the same bug.

7 years agoIncrement version number to 0.10.3.
Ben Pfaff [Mon, 25 Jul 2016 18:13:58 +0000 (11:13 -0700)]
Increment version number to 0.10.3.

7 years agoAllow the variable info dialog to paste more than one variables.
John Darrington [Sat, 23 Jul 2016 07:03:58 +0000 (09:03 +0200)]
Allow the variable info dialog to paste more than one variables.

Fixes bug #48596

7 years agoFix compiler warning on gcc 5.4
John Darrington [Thu, 14 Jul 2016 18:35:51 +0000 (20:35 +0200)]
Fix compiler warning on gcc 5.4

7 years agoReplace gtk_widget_get_style in favour of gtk_widget_get_style_context
John Darrington [Mon, 11 Jul 2016 19:51:42 +0000 (21:51 +0200)]
Replace gtk_widget_get_style in favour of gtk_widget_get_style_context

7 years agoLogistic Regression syntax generator: replace ds_data with ds_cstr
John Darrington [Mon, 11 Jul 2016 18:51:18 +0000 (20:51 +0200)]
Logistic Regression syntax generator: replace ds_data with ds_cstr

ds_data does not produce a terminating null.  So garbage could be appended at the end of the command.

Fixes bug #48467

7 years agoMerge remote-tracking branch 'origin/master' into sheet
John Darrington [Sun, 10 Jul 2016 05:47:34 +0000 (07:47 +0200)]
Merge remote-tracking branch 'origin/master' into sheet

7 years agoUpdate NEWS
John Darrington [Thu, 7 Jul 2016 05:07:05 +0000 (07:07 +0200)]
Update NEWS

7 years agoFixed GLM vs. missing values in the dependent variable
John Darrington [Thu, 23 Jun 2016 08:07:23 +0000 (10:07 +0200)]
Fixed GLM vs. missing values in the dependent variable

7 years agoFixed typo in comment
John Darrington [Thu, 23 Jun 2016 07:13:53 +0000 (09:13 +0200)]
Fixed typo in comment

7 years agoAvoid link error when compiling without libxml2 installed
John Darrington [Wed, 22 Jun 2016 05:09:58 +0000 (07:09 +0200)]
Avoid link error when compiling without libxml2 installed

7 years agoUpdate the Gnulib version
John Darrington [Sun, 19 Jun 2016 11:36:48 +0000 (13:36 +0200)]
Update the Gnulib version

The primary motive for doing this is to update gl/version_etc which changes
the copyright year to 2016.  This is the value which gets displayed by --version
I do not think it is ideal that we must update gnulib to get the current year
in our version string, but I did not design this aspect of the code.

7 years agoFixed a small bug in te variable info dialog.
John Darrington [Sun, 12 Jun 2016 07:03:33 +0000 (09:03 +0200)]
Fixed a small bug in te variable info dialog.

7 years agoadded FREQUENCIES regression test for bug#48128
Friedrich Beckmann [Wed, 8 Jun 2016 18:22:00 +0000 (20:22 +0200)]
added FREQUENCIES regression test for bug#48128

FREQUENCIES command crashed in a combination of /histogram /percentiles
and /statistics option. This was fixed in commit 86642e. Here a crash
test is added exactly for this situation.

7 years agosrc/output.tab.c: Format according to Gnu Coding Standards
John Darrington [Tue, 7 Jun 2016 18:44:13 +0000 (20:44 +0200)]
src/output.tab.c: Format according to Gnu Coding Standards

7 years agotab.c: Compile error in debug mode
Friedrich Beckmann [Sat, 4 Jun 2016 22:44:26 +0000 (00:44 +0200)]
tab.c: Compile error in debug mode

tab.c could not be compile with --enable-debug configuration because
the return value did not fit with the function. In addition a typo in
a "bad cell" check was fixed.

7 years agofrequencies: fixed bug #48128 in percentiles
Friedrich Beckmann [Sat, 4 Jun 2016 22:41:05 +0000 (00:41 +0200)]
frequencies: fixed bug #48128 in percentiles

The frequencies command crashed with a certain combination of
percentiles and histogram options. The bug was reported by
Cubyrk Zyrvay in
http://lists.gnu.org/archive/html/bug-gnu-pspp/2016-06/msg00000.html

Closes bug #48128

7 years agoRecode Dialog Action: Split into RecodeDialogAction, RecodeDialogActionSame and Recod...
John Darrington [Sun, 29 May 2016 08:48:24 +0000 (10:48 +0200)]
Recode Dialog Action: Split into RecodeDialogAction, RecodeDialogActionSame and RecodeDialogActionDifferent

7 years agoNEWS: added online help feature and T-Test gui bug for 0.10.2 version
Friedrich Beckmann [Sun, 29 May 2016 20:18:04 +0000 (22:18 +0200)]
NEWS: added online help feature and T-Test gui bug for 0.10.2 version

7 years agohelp-menu.c: start the default html browser via wscript instead of cmd
Friedrich Beckmann [Sat, 28 May 2016 09:42:30 +0000 (11:42 +0200)]
help-menu.c: start the default html browser via wscript instead of cmd

Harry mentioned that starting help via cmd shows the command window for
a short time on windows. With this patch the default html browser is
started via wscript instead of cmd /C <uri>.

Unfortunatly the nice function  g_app_info_launch_default_for_uri does
not work, at least on osx and windows.

7 years agoWhitespace changes only
John Darrington [Sat, 28 May 2016 06:01:54 +0000 (08:01 +0200)]
Whitespace changes only

7 years agoIndependent Samples Gui: Make the on_grp_var function and associated code less naive.
John Darrington [Sat, 28 May 2016 05:59:57 +0000 (07:59 +0200)]
Independent Samples Gui: Make the on_grp_var function and associated code less naive.

Addresses bug #48015