pspp
11 years agoMerge 'master' into 'psppsheet'.
Ben Pfaff [Sun, 28 Oct 2012 20:02:13 +0000 (13:02 -0700)]
Merge 'master' into 'psppsheet'.

11 years agopspp-sheet-view: Make Shift+Tab select only one cell when switching rows.
Ben Pfaff [Sun, 28 Oct 2012 20:01:47 +0000 (13:01 -0700)]
pspp-sheet-view: Make Shift+Tab select only one cell when switching rows.

Before this commit, Shift+Tab at the start of a row in the data sheet would
select both the new cell and the cell below it.  After this commit, only
the new cell is selected, as one would expect.

Reported by John Darrington.

11 years agoAnova Dialog: Fix widget associations 20121027030509/pspp 20121028030503/pspp 20121029030502/pspp
John Darrington [Sat, 27 Oct 2012 08:42:28 +0000 (10:42 +0200)]
Anova Dialog: Fix widget associations

11 years agologistic.c : Avoid compiler warnings
John Darrington [Sat, 27 Oct 2012 05:34:20 +0000 (07:34 +0200)]
logistic.c  : Avoid compiler warnings

11 years agoGUI: Added Mnemonic keys to Examine dialog
John Darrington [Sat, 27 Oct 2012 05:21:05 +0000 (07:21 +0200)]
GUI: Added Mnemonic keys to Examine dialog

11 years agogui: Make Tab, Shift+Tab skip row head and new-var columns in data sheet. 20121025032015/pspp 20121026032030/pspp 20121027032008/pspp 20121028032032/pspp
Ben Pfaff [Thu, 25 Oct 2012 06:24:25 +0000 (23:24 -0700)]
gui: Make Tab, Shift+Tab skip row head and new-var columns in data sheet.

Before this commit, Tab and Shift+Tab acted just like Left and Right in
the data sheet, that is, they visit every column except the row head
column and always stay on the same row.  After this commit, Tab and
Shift+Tab skip the row head and new-variable columns.  Also, Tab at the
end of a row goes to the beginning of the next row, and Shift+Tab at the
beginning of a row goes to the end of the previous row.

Suggested by John Darrington.

11 years agoFirst attempt at a LOGISTIC REGRESSION command 20121025030511/pspp 20121026030503/pspp
John Darrington [Tue, 16 Oct 2012 18:41:44 +0000 (20:41 +0200)]
First attempt at a LOGISTIC REGRESSION command

11 years agoUpdated my entry in AUTHORS 20121018030506/pspp 20121019030515/pspp 20121020030503/pspp 20121021030504/pspp 20121022030502/pspp 20121023030502/pspp 20121024030503/pspp
John Darrington [Thu, 18 Oct 2012 09:28:44 +0000 (11:28 +0200)]
Updated my entry in AUTHORS

11 years agopsppire-data-sheet: Implement Edit|Paste. 20121015032559/pspp 20121016032601/pspp 20121017032604/pspp 20121018032547/pspp 20121019032041/pspp 20121020032030/pspp 20121021032034/pspp 20121022032020/pspp 20121023032020/pspp 20121024032018/pspp
Ben Pfaff [Mon, 15 Oct 2012 04:02:31 +0000 (21:02 -0700)]
psppire-data-sheet: Implement Edit|Paste.

This missing feature was reported by John Darrington.

11 years agopsppire-data-sheet: Implement Edit|Cut.
Ben Pfaff [Sun, 14 Oct 2012 21:32:05 +0000 (14:32 -0700)]
psppire-data-sheet: Implement Edit|Cut.

I overlooked this earlier.

Reported by John Darrington.

11 years agopsppire-var-sheet: Make clicking on Variables column select all data.
Ben Pfaff [Sun, 14 Oct 2012 18:45:36 +0000 (11:45 -0700)]
psppire-var-sheet: Make clicking on Variables column select all data.

This does what users expect in the variable sheet.

Reported by John Darrington.

11 years agopsppire-data-sheet: Make clicking on Cases column select all data.
Ben Pfaff [Sun, 14 Oct 2012 18:40:28 +0000 (11:40 -0700)]
psppire-data-sheet: Make clicking on Cases column select all data.

This does what users expect in the data sheet.

Reported by John Darrington.

11 years agopspp-sheet-view-column: Make clicking on a row head column select all data.
Ben Pfaff [Sun, 14 Oct 2012 18:36:13 +0000 (11:36 -0700)]
pspp-sheet-view-column: Make clicking on a row head column select all data.

This is what users typically expect: clicking on the upper-left of a
spreadsheet selects all of the cells in the spreadsheet.

11 years agopsppire-data-sheet: Use specific functions instead of g_object_set().
Ben Pfaff [Sun, 14 Oct 2012 18:35:06 +0000 (11:35 -0700)]
psppire-data-sheet: Use specific functions instead of g_object_set().

Using particular functions seems less error-prone, since it avoids the
possibility of misspelling a property name or getting their values' types
wrong.

11 years agopspp-sheet-view-column: Be consistent about use of !! for booleans.
Ben Pfaff [Sun, 14 Oct 2012 18:33:42 +0000 (11:33 -0700)]
pspp-sheet-view-column: Be consistent about use of !! for booleans.

When "x = !!x;" is used, there's no need to use "x?TRUE:FALSE" later,
since one knows that the value is already 0 or 1, but some code did this
anyway.

This is a cleanup only that should not change behavior.

11 years agodoc/introduction.texi: Update documentations introductory section 20121014030516/pspp 20121015030503/pspp 20121016030503/pspp 20121017030503/pspp
John Darrington [Sat, 13 Oct 2012 15:41:59 +0000 (17:41 +0200)]
doc/introduction.texi: Update documentations introductory section

11 years agodoc/automake.mk: Added a convenience rule for building all the documentation formats
John Darrington [Sat, 13 Oct 2012 14:46:22 +0000 (16:46 +0200)]
doc/automake.mk: Added a convenience rule for building all the documentation formats

11 years agodoc/automake.mk: Replace lines inadvertently removed by previous commit
John Darrington [Sat, 13 Oct 2012 13:22:38 +0000 (15:22 +0200)]
doc/automake.mk: Replace lines inadvertently removed by previous commit

11 years agodoc/automake.mk: Added further mutations to docbook xml to workaround makeinfo bugs
John Darrington [Sat, 13 Oct 2012 10:59:18 +0000 (12:59 +0200)]
doc/automake.mk: Added further mutations to docbook xml to workaround makeinfo bugs

11 years agodoc/automake.mk: New mutations to generated docbook xml to workaround makeinfo bugs
John Darrington [Sat, 13 Oct 2012 10:44:05 +0000 (12:44 +0200)]
doc/automake.mk: New mutations to generated docbook xml to workaround makeinfo bugs

11 years agoFix bug where, after double-clicking to switch sheet view, a spurious release event... 20121009032003/pspp 20121011032101/pspp 20121012032055/pspp 20121013032614/pspp 20121014032548/pspp
John Darrington [Mon, 8 Oct 2012 20:14:36 +0000 (22:14 +0200)]
Fix bug where, after double-clicking to switch sheet view, a spurious release event was processed.

From http://developer.gnome.org/gdk/2.24/gdk-Event-Structures.html#GdkEventButton

  Double and triple-clicks result in a sequence of events being received. For
  double-clicks the order of events will be:

   1.  GDK_BUTTON_PRESS
   2.  GDK_BUTTON_RELEASE
   3.  GDK_BUTTON_PRESS
   4.  GDK_2BUTTON_PRESS
   5.  GDK_BUTTON_RELEASE

So what was happening was this:  When the var-name was double-clicked, the view switched
from VarView to DataView as soon as  event 4 (GDK_2BUTTON_PRESS) occured.  Then event 5
(GDK_BUTTON_RELEASE) occured.

Now the PsppSheetView object is written such that, it decides to edit a cell, on button
release event. Hence, whichever cell the pointer happended to be in, when the user lifts
his finger after double clicking, starts to be edited.

This change ignores button release events on the object unless a corresponding button press
event was seen.

11 years agopsppire-data-editor: Keep value labels setting across Windows|Split.
Ben Pfaff [Mon, 8 Oct 2012 19:06:11 +0000 (12:06 -0700)]
psppire-data-editor: Keep value labels setting across Windows|Split.

Before this commit, Windows|Split always turned off displaying value
labels in data sheet cells.  This commit causes this setting to be
preserved across Windows|Split.

11 years agoAvoid deprecated function: gtk_button_released 20121009030508/pspp 20121011030511/pspp 20121012030514/pspp 20121013030514/pspp
John Darrington [Mon, 8 Oct 2012 17:16:02 +0000 (19:16 +0200)]
Avoid deprecated function: gtk_button_released

11 years agoconfigure.ac: Increase pango minimum version from 1.20 to 1.22 20121005030505/pspp 20121006030503/pspp 20121007030505/pspp 20121008030504/pspp
Ben Pfaff [Fri, 5 Oct 2012 04:22:42 +0000 (21:22 -0700)]
configure.ac: Increase pango minimum version from 1.20 to 1.22

Commit bd4d6e7453 (cairo: Avoid deprecated
pango_cairo_font_map_create_context().) added a dependency on pango
version 1.22 or later, but configure.ac only checked for version 1.20
or later.  This commit fixes the discrepancy.

INSTALL already documented that Pango 1.22 or later was needed.

Reported by John Darrington.

11 years agotests: Better isolate search text in test of error reporting. 20121001030503/pspp 20121002030515/pspp 20121003030503/pspp 20121004030504/pspp
Ben Pfaff [Sun, 30 Sep 2012 19:29:33 +0000 (12:29 -0700)]
tests: Better isolate search text in test of error reporting.

Some GNU/Linux distributions print additional text on a segfault,
e.g. "Cannot exec debugger: No such file or directory", which this
test was seeing in output and interpreting as a failed test.  This
commit fixes the problem by ignoring text up to the ***** line that
marks the start of the expected output.

Bug #37444.
Reported by Mindaugus.

11 years agoRemove variable assigned to but never used. 20121001031957/pspp 20121002032048/pspp 20121003032021/pspp 20121004032030/pspp 20121005032009/pspp 20121006032038/pspp 20121007032036/pspp 20121008032034/pspp
Ben Pfaff [Sun, 30 Sep 2012 18:29:46 +0000 (11:29 -0700)]
Remove variable assigned to but never used.

Found by GCC 4.7.

11 years agoMerge 'master' into 'psppsheet'.
Ben Pfaff [Sun, 30 Sep 2012 18:25:23 +0000 (11:25 -0700)]
Merge 'master' into 'psppsheet'.

11 years agoSuppress GCC 4.7 warnings by changes to code that make it less clear.
Ben Pfaff [Wed, 26 Sep 2012 04:18:32 +0000 (21:18 -0700)]
Suppress GCC 4.7 warnings by changes to code that make it less clear.

I'm not entirely happy with these changes, because they make the code
slightly less obvious.  However, it's still not really bad code, and
it's convenient to have a warning-free build.

11 years agoSuppress GCC 4.7 warnings due to unimplemented features.
Ben Pfaff [Wed, 26 Sep 2012 04:20:09 +0000 (21:20 -0700)]
Suppress GCC 4.7 warnings due to unimplemented features.

GCC 4.7 complains that the variables removed by this commit are
assigned values that are not used.  Fair enough, so this commit
removes them.

11 years agognumeric-reader: Add cast to suppress warning.
Ben Pfaff [Wed, 26 Sep 2012 00:09:47 +0000 (17:09 -0700)]
gnumeric-reader: Add cast to suppress warning.

This suppresses a GCC warning for a mismatch between
xmlInputCloseCallback, which takes a "void *" parameter, and
gzclose(), which takes a "gzFile" (which is "struct gzFile_s *").

This came up with an upgrade from "squeeze" to "wheezy".  I assume
that a gzclose prototype became visible or that gzFile changed away
from "void *".

An alternative would be to write a trampoline to just transform one
pointer type to the other, but the xmlReaderForIO() invocation
already has one function cast so a second cast doesn't make it much
worse.

11 years agosplit-file-dialog: Add use of unused variable in split_file_dialog().
Ben Pfaff [Wed, 26 Sep 2012 00:03:10 +0000 (17:03 -0700)]
split-file-dialog: Add use of unused variable in split_file_dialog().

'selector' was assigned but never used, but here's a use.

Reported by GCC 4.7.

11 years agoSuppress warnings for suspicious use of "enum" constants.
Ben Pfaff [Wed, 26 Sep 2012 00:02:21 +0000 (17:02 -0700)]
Suppress warnings for suspicious use of "enum" constants.

In each case, the code is using values of enums in valid ways that
GCC 4.7 does not expect, so use a cast to suppress the warnings.

11 years agogui: Check return value of gtk_tree_model_get_iter().
Ben Pfaff [Wed, 26 Sep 2012 00:00:34 +0000 (17:00 -0700)]
gui: Check return value of gtk_tree_model_get_iter().

In these two cases the return value was assigned to a variable but
never used.  This commit adds a check for the return value.

11 years agocairo: Avoid deprecated pango_cairo_font_map_create_context().
Ben Pfaff [Tue, 25 Sep 2012 22:54:43 +0000 (15:54 -0700)]
cairo: Avoid deprecated pango_cairo_font_map_create_context().

Pango 1.30 that is in Debian "wheezy" has marked this function as
deprecated.  The replacement pango_font_map_create_context() was
introduced in Pango 1.22, which was also in Debian "squeeze" (which
had Pango 1.28), so it seems safe to switch without worrying about
a Pango version check.

11 years agoRemove unused "finalize" functions.
Ben Pfaff [Tue, 25 Sep 2012 22:47:04 +0000 (15:47 -0700)]
Remove unused "finalize" functions.

A finalize function that just calls into the parent class finalize
function is a no-op that need not exist.

11 years agoRemove variables assigned to but never used.
Ben Pfaff [Tue, 25 Sep 2012 22:36:50 +0000 (15:36 -0700)]
Remove variables assigned to but never used.

Each of the variables removed here was assigned a value that was
never used, the assignment didn't have any useful side effects, and
I don't see anything that the variable should have been used for.

Found by GCC 4.7.

11 years agoEXAMINE: Avoid useless call to casereader_count_cases().
Ben Pfaff [Tue, 25 Sep 2012 22:51:07 +0000 (15:51 -0700)]
EXAMINE: Avoid useless call to casereader_count_cases().

The return value is never used, and this call could have significant
expense (it could cause the data to be read an extra time), so do not
do it.

Reported by GCC 4.7.

11 years agoCROSSTABS: Fix bug in check for REPORT in general mode.
Ben Pfaff [Tue, 25 Sep 2012 23:59:04 +0000 (16:59 -0700)]
CROSSTABS: Fix bug in check for REPORT in general mode.

Found by GCC 4.7.

11 years agoexpressions: Fix coercion of numbers to booleans at top level.
Ben Pfaff [Tue, 25 Sep 2012 22:14:50 +0000 (15:14 -0700)]
expressions: Fix coercion of numbers to booleans at top level.

The check for the expected type in type_check() used the wrong
constant (a node type instead of an expression type) and so the
"if" test was never true.  Also, OP_NUM_TO_BOOLEAN is binary, not
unary, so fixing just the test caused an assertion failure.

This commit fixes both problems and adds a test.

Found by GCC 4.7 report of a type mismatch.

11 years agogtk.h wrapper: Added *_set_realized and set_mapped 20120921030501/pspp 20120922030504/pspp 20120923030504/pspp 20120924030504/pspp 20120927030501/pspp 20120928030503/pspp 20120929030503/pspp 20120930030503/pspp
John Darrington [Thu, 20 Sep 2012 11:14:55 +0000 (13:14 +0200)]
gtk.h wrapper: Added *_set_realized and set_mapped

We are using these functions, but they are not defined for older gtk versions.

11 years agosrc/data/data-out.c: Added assertion to catch negative values
John Darrington [Thu, 20 Sep 2012 09:22:12 +0000 (11:22 +0200)]
src/data/data-out.c: Added assertion to catch negative values

If the contents of string does not contain a '.', then integer_digits
will end up negative, thus causing a crash later.  This change adds
an assertion to catch this condition and thus make the diagnosis easier
should it ever occur.

11 years agoAdded keybindings to move to the extremities of the sheet. 20120913030507/pspp 20120914030504/pspp 20120915030505/pspp
John Darrington [Wed, 12 Sep 2012 18:38:23 +0000 (20:38 +0200)]
Added keybindings to move to the extremities of the sheet.

Altered the Home key to move far left instead of up.
Added Ctrl Left/Right/Up/Down to move to the far edges of the
sheet.

This behaviour is consistent with other software.

11 years agoPerl Module: Avoid forcing scalar value into a pointer. 20120912030512/pspp
John Darrington [Wed, 12 Sep 2012 07:26:21 +0000 (09:26 +0200)]
Perl Module: Avoid forcing scalar value into a pointer.

The code fragment:  struct dictionary *dict = (void *) SvIV (dict_sv);
is dangerous.  This fix uses the properl Perl XS mechanism to get
the pointer and the scalar associated with the dictionary.

Reviewed-By: Ben Pfaff
11 years agopsppire-cell-renderer: Fix behavior of repeated clicks on a button. 20120911031925/pspp 20120912031918/pspp 20120913031857/pspp 20120914031922/pspp 20120915031925/pspp 20120921032038/pspp 20120922031949/pspp 20120923031953/pspp 20120924032009/pspp 20120927032112/pspp 20120928032019/pspp 20120929032021/pspp 20120930032025/pspp
Ben Pfaff [Mon, 3 Sep 2012 05:21:09 +0000 (22:21 -0700)]
psppire-cell-renderer: Fix behavior of repeated clicks on a button.

I'm not sure why I thought this code was necessary.  Removing it
fixes the problem, which John Darrington reported as:

1. Create or load a dataset with one or more variables.
2. Switch to the variable sheet.
3. Click on one of the in-cell buttons (for example) Value Labels.
4. After the dialog box appears, cancel it with the cancel button.
5. The dialog closes, and the button which invoked it, now has the
focus.  However clicking on that button again refuses to bring the
dialog back.  One has to move off the button and onto the cell
background.

11 years agopsppire-var-sheet: Allow adjusting width of string variables.
Ben Pfaff [Sun, 2 Sep 2012 18:07:59 +0000 (11:07 -0700)]
psppire-var-sheet: Allow adjusting width of string variables.

John Darrington pointed out that the "width" column in the variable
sheet didn't allow the width to be modified with a spin button for
string variables, as it did for numeric variables.  This commit
fixes the problem.

The reordering in on_var_column_edited() is necessary because the
print format of a string variable can't be changed to a different
width before changing the variable's width.  (The change from
var_set_print_format() to var_set_both_formats() is not
necessary.  It is for consistency with changing variable type and
format via the var-type-dialog.)

11 years agovar-type-dialog: Adjust packing parameters 20120826001913/pspp
John Darrington [Sat, 25 Aug 2012 17:12:43 +0000 (19:12 +0200)]
var-type-dialog: Adjust packing parameters

11 years agoMerge branch 'master' into psppsheet
John Darrington [Sat, 25 Aug 2012 17:01:45 +0000 (19:01 +0200)]
Merge branch 'master' into psppsheet

11 years agoUpdate widgets.c from psppsheet branch 20120826000503/pspp 20120910030509/pspp 20120911030519/pspp
John Darrington [Sat, 25 Aug 2012 16:58:31 +0000 (18:58 +0200)]
Update widgets.c from psppsheet branch

11 years agoFix memory leak in sys-file-reader.c 20120822000503/pspp 20120823000504/pspp 20120824000503/pspp 20120825000503/pspp
John Darrington [Wed, 22 Aug 2012 04:46:18 +0000 (06:46 +0200)]
Fix memory leak in sys-file-reader.c

11 years agoref count the linreg structure so as to avoid double free problems 20120821000505/pspp
John Darrington [Mon, 20 Aug 2012 19:32:11 +0000 (21:32 +0200)]
ref count the linreg structure so as to avoid double free problems

11 years agosys-file-reader: Fix setjmp() technicality. 20120820000504/pspp
Ben Pfaff [Mon, 20 Aug 2012 07:00:33 +0000 (00:00 -0700)]
sys-file-reader: Fix setjmp() technicality.

The C standards say that the compiler is allowed to optimize away
changes to local variables within a function between a call to
setjmp() and a later call to longjmp(), unless the local variables
are volatile-qualified.

The 'info' local variable in sfm_open_reader() fits this
description but wasn't volatile-qualified.  This commit fixes that,
even though my compiler didn't in fact seem to have a problem with
the previous version.

11 years agosys-file-reader: Fix memory leak.
Ben Pfaff [Mon, 20 Aug 2012 06:59:47 +0000 (23:59 -0700)]
sys-file-reader: Fix memory leak.

The C standards say that the compiler is allowed to optimize away
changes to local variables within a function between a call to
setjmp() and a later call to longjmp(), unless the local variables
are volatile-qualified.

The 'dict' local variable in sfm_open_reader() fits this
description but wasn't volatile-qualified.  GCC in fact optimized
out the changes on my system, and this commit fixes that.

11 years agowidgets: Insert (void) cast in call, to suppress GCC warning. 20120820001828/pspp 20120821001934/pspp 20120822001826/pspp 20120823001911/pspp 20120824001952/pspp 20120825001851/pspp
Ben Pfaff [Sun, 19 Aug 2012 20:19:39 +0000 (13:19 -0700)]
widgets: Insert (void) cast in call, to suppress GCC warning.

Otherwise GCC tells me that the call has no effect.

11 years agowidgets: #include missing header file.
Ben Pfaff [Sun, 19 Aug 2012 20:19:17 +0000 (13:19 -0700)]
widgets: #include missing header file.

It didn't build for me otherwise.

11 years agopsppire-cell-renderer-button: Avoid use-after-free with popup dialog.
Ben Pfaff [Sun, 19 Aug 2012 20:18:56 +0000 (13:18 -0700)]
psppire-cell-renderer-button: Avoid use-after-free with popup dialog.

When gtk_button_clicked() on a PsppireCellRendererButton causes a
modal dialog to pop up, psppire_cell_renderer_button_initial_click()
only returns from gtk_button_clicked() after the button has already
been destroyed, which causes the g_object_steal_data() call to
remove the IDLE_ID_STRING to access freed memory.  This commit fixes
the problem by calling g_object_steal_data() before
gtk_button_clicked().

11 years agoMerge 'master' into 'psppsheet'.
Ben Pfaff [Sun, 19 Aug 2012 20:16:05 +0000 (13:16 -0700)]
Merge 'master' into 'psppsheet'.

11 years agomissing-val-dialog: Convert to a GObject.
Ben Pfaff [Sun, 19 Aug 2012 18:36:16 +0000 (11:36 -0700)]
missing-val-dialog: Convert to a GObject.

11 years agomissing-val-dialog: Avoid destroying uninitialized data.
Ben Pfaff [Sun, 19 Aug 2012 18:41:25 +0000 (11:41 -0700)]
missing-val-dialog: Avoid destroying uninitialized data.

If text_to_value() fails for low_val, then this code would still
destroy high_val, even though high_val hadn't been initialized,
thus accessing indeterminate data.

This also eliminates some redundancy in the code.

11 years agogui: Rename var-sheet-dialogs.ui to missing-val-dialog.ui.
Ben Pfaff [Sat, 18 Aug 2012 22:31:09 +0000 (15:31 -0700)]
gui: Rename var-sheet-dialogs.ui to missing-val-dialog.ui.

The msising value dialog is the only dialog left in this UI file.

11 years agopsppire-dialog: Add "acceptable" predicate.
Ben Pfaff [Sun, 19 Aug 2012 17:30:36 +0000 (10:30 -0700)]
psppire-dialog: Add "acceptable" predicate.

PsppireDialog already has a validity predicate that allows a dialog
to easily disable "OK" and other buttons when the dialog has not
yet been completely filled.  It should usually be obvious to the
user why this is the case.

The upcoming GObjectification of the missing value dialog calls for
a different kind of predicate, one where the reason is not obvious
to the user (typically because he has just made a typo or does not
understand a variable's format).  In this case, the user needs more
feedback, such as a message explaining the problem.

This commit therefore introduces a second kind of predicate, the
"accept" predicate.  This predicate is only checked when the user
clicks on the "OK" button.

11 years agoval-labs-dialog, var-type-dialog: Make these dialogs modal.
Ben Pfaff [Sun, 19 Aug 2012 18:36:42 +0000 (11:36 -0700)]
val-labs-dialog, var-type-dialog: Make these dialogs modal.

I missed this in the initial conversion.

11 years agoval-labs-dialog: Remove unused 'window' member.
Ben Pfaff [Sun, 19 Aug 2012 17:30:53 +0000 (10:30 -0700)]
val-labs-dialog: Remove unused 'window' member.

11 years agopsppire-var-sheet: Remove unneeded #include from header.
Ben Pfaff [Sat, 18 Aug 2012 19:28:37 +0000 (12:28 -0700)]
psppire-var-sheet: Remove unneeded #include from header.

11 years agoval-labs-dialog: Convert to a GObject.
Ben Pfaff [Sat, 18 Aug 2012 19:26:03 +0000 (12:26 -0700)]
val-labs-dialog: Convert to a GObject.

11 years agogui: Factor new text_to_value__() function out of text_to_value().
Ben Pfaff [Sat, 18 Aug 2012 19:17:01 +0000 (12:17 -0700)]
gui: Factor new text_to_value__() function out of text_to_value().

I intend to use this in an upcoming commit.

11 years agovar-type-dialog: Fix memory leak.
Ben Pfaff [Sat, 18 Aug 2012 19:24:21 +0000 (12:24 -0700)]
var-type-dialog: Fix memory leak.

11 years agoFixed memory leak in FACTOR 20120815000501/pspp 20120816000504/pspp 20120817000503/pspp 20120818000505/pspp
John Darrington [Wed, 15 Aug 2012 05:03:56 +0000 (07:03 +0200)]
Fixed memory leak in FACTOR

11 years agoFix leaks in REGRESSION
John Darrington [Tue, 14 Aug 2012 19:49:26 +0000 (21:49 +0200)]
Fix leaks in REGRESSION

11 years agoFixed the remaining leaks in AUTORECODE
John Darrington [Tue, 14 Aug 2012 18:11:09 +0000 (20:11 +0200)]
Fixed the remaining leaks in AUTORECODE

11 years agoFix leaks in MEANS command
John Darrington [Mon, 13 Aug 2012 19:13:56 +0000 (21:13 +0200)]
Fix leaks in MEANS command

11 years agofix some of the leaks in the AUTORECODE command 20120813000504/pspp 20120814000503/pspp
John Darrington [Sun, 12 Aug 2012 17:51:19 +0000 (19:51 +0200)]
fix some of the leaks in the AUTORECODE command

11 years agoFixed remaining leaks in ONEWAY
John Darrington [Sun, 12 Aug 2012 14:29:38 +0000 (16:29 +0200)]
Fixed remaining leaks in ONEWAY

11 years agoFix memory leaks in ONEWAY command
John Darrington [Sun, 12 Aug 2012 11:33:09 +0000 (13:33 +0200)]
Fix memory leaks in ONEWAY command

11 years agovar-type-dialog: Convert to a GObject.
Ben Pfaff [Thu, 9 Aug 2012 06:27:32 +0000 (23:27 -0700)]
var-type-dialog: Convert to a GObject.

The one issue I can't figure out is why this changes the look of
the dialog box so that its height is the total height of all of
the widgets in the "middlebox", rather than the maximum height
actually needed.

11 years agosrc/math/categoricals.c: Remove inappropriate const qualifier 20120811000504/pspp
John Darrington [Sat, 11 Aug 2012 06:15:59 +0000 (08:15 +0200)]
src/math/categoricals.c: Remove inappropriate const qualifier

11 years agovariable: Skip callback if new format is same as old format. 20120809000508/pspp 20120810000503/pspp
Ben Pfaff [Thu, 9 Aug 2012 06:17:36 +0000 (23:17 -0700)]
variable: Skip callback if new format is same as old format.

Seems fairly worthwhile.

11 years agoFixed one of the leaks in MEANS 20120808000503/pspp
John Darrington [Sun, 5 Aug 2012 16:00:36 +0000 (18:00 +0200)]
Fixed one of the leaks in MEANS

11 years agoFix leaks in RELIABILITY command 20120806000503/pspp 20120807000505/pspp
John Darrington [Sun, 5 Aug 2012 14:57:04 +0000 (16:57 +0200)]
Fix leaks in RELIABILITY command

11 years agoFixed leak in Chi-Squared test 20120804000503/pspp 20120805000504/pspp
John Darrington [Sat, 4 Aug 2012 05:26:07 +0000 (07:26 +0200)]
Fixed leak in Chi-Squared test

11 years agocategoricals.c (struct payload): Rename destroy to calculate
John Darrington [Sat, 4 Aug 2012 05:04:47 +0000 (07:04 +0200)]
categoricals.c (struct payload): Rename destroy to calculate

11 years agoONEWAY: call categoricals_done only once
John Darrington [Sat, 4 Aug 2012 04:48:30 +0000 (06:48 +0200)]
ONEWAY: call categoricals_done only once

11 years agoMake categoricals own its interactions
John Darrington [Fri, 3 Aug 2012 19:35:11 +0000 (21:35 +0200)]
Make categoricals own its interactions

11 years agoFix leak in render-test 20120803000505/pspp
John Darrington [Thu, 2 Aug 2012 18:54:18 +0000 (20:54 +0200)]
Fix leak in render-test

11 years agosys-file-reader.c: Fix leak in parse_mrsets 20120802000504/pspp
John Darrington [Wed, 1 Aug 2012 19:22:11 +0000 (21:22 +0200)]
sys-file-reader.c: Fix leak in parse_mrsets

11 years agoods-reader: Fix ods_file_casereader_destroy() call in open function. 20120801000505/pspp
Ben Pfaff [Wed, 1 Aug 2012 05:55:30 +0000 (22:55 -0700)]
ods-reader: Fix ods_file_casereader_destroy() call in open function.

zreader is a "struct zip_reader *" but ods_file_casereader_destroy()
takes a "struct casereader *".  However ods_file_casereader_destroy()
doesn't actually use that argument so we might as well pass NULL.

11 years agoFix leak in psppire-lex-reader.c
John Darrington [Tue, 31 Jul 2012 17:38:51 +0000 (19:38 +0200)]
Fix leak in psppire-lex-reader.c

11 years agoFACTOR: Fix warning about discarding const qualifier. 20120731000506/pspp
Ben Pfaff [Tue, 31 Jul 2012 06:16:39 +0000 (23:16 -0700)]
FACTOR: Fix warning about discarding const qualifier.

11 years agovar-type-dialog: Change entries to spin buttons, add validation.
Ben Pfaff [Mon, 30 Jul 2012 06:56:09 +0000 (23:56 -0700)]
var-type-dialog: Change entries to spin buttons, add validation.

The GtkEntry boxes used for entering and displaying width and
decimal places didn't do any validation that the width and decimal
places were valid for the selected format type, so it was possible
to enter values that couldn't actually be used.  This commit changes
the GtkEntry boxes into GtkSpinButton widgets that, as a side
effect, validate correct values through their attached
GtkAdjustments.  This is not just safer but easier to use.

11 years agovar-type-dialog: Reduce redundancy further.
Ben Pfaff [Mon, 30 Jul 2012 06:09:09 +0000 (23:09 -0700)]
var-type-dialog: Reduce redundancy further.

set_format_from_treeview() and set_format_type_from_treeview() were
mostly common code.

11 years agovar-type-dialog: Reduce redundancy.
Ben Pfaff [Sat, 28 Jul 2012 21:18:40 +0000 (14:18 -0700)]
var-type-dialog: Reduce redundancy.

var_type_dialog_set_state() and on_toggle_2() had considerable
redundant code.  This reduces it by adding a new function
on_active_button_change() that generalizes the two functions.  I
also personally found the previous way of showing and hiding widgets
to be hard to follow; I think that the bitmap approach used here
is more straightforward.

This also consolidates the two separate signal handlers for each
button into one, and replaces the similar functions
select_treeview_from_format() and select_treeview_from_format_type()
by three functions find_format(), find_format_type(), and
select_treeview_at_index() that total less code.

11 years agovar-type-dialog: Properly adjust formats when switching buttons.
Ben Pfaff [Fri, 27 Jul 2012 06:21:54 +0000 (23:21 -0700)]
var-type-dialog: Properly adjust formats when switching buttons.

The var-type-dialog based the default new format on the variable's
existing format when a button was clicked, and attempted to adjust
the width and decimals into valid range, but the adjustment wasn't
always correct, so in some cases it could pick an invalid format.

This commit uses fmt_fix_output() instead, which will always choose
a valid output format.

11 years agoFixed a second ONEWAY leak 20120730000505/pspp
John Darrington [Sun, 29 Jul 2012 18:59:12 +0000 (20:59 +0200)]
Fixed a second ONEWAY leak

11 years agoFix one of the leaks in ONEWAY
John Darrington [Sun, 29 Jul 2012 18:54:16 +0000 (20:54 +0200)]
Fix one of the leaks in ONEWAY

11 years agoFix memory leak in Chisquare
John Darrington [Sun, 29 Jul 2012 13:12:26 +0000 (15:12 +0200)]
Fix memory leak in Chisquare

11 years agoFix memory leak in AGGREGATE command
John Darrington [Sun, 29 Jul 2012 12:49:32 +0000 (14:49 +0200)]
Fix memory leak in AGGREGATE command

11 years agoFix memory leak in dictionary.c
John Darrington [Sun, 29 Jul 2012 11:37:41 +0000 (13:37 +0200)]
Fix memory leak in dictionary.c

11 years agoFix leaks in ODS reader
John Darrington [Sun, 29 Jul 2012 09:22:13 +0000 (11:22 +0200)]
Fix leaks in ODS reader

11 years agoFixed a memory leak in sparse-xarray-test.c
John Darrington [Sun, 29 Jul 2012 06:05:00 +0000 (08:05 +0200)]
Fixed a memory leak in sparse-xarray-test.c

11 years agoREADME.Git - Update the gnulib commit number to include memory leak fix
John Darrington [Sun, 29 Jul 2012 04:55:14 +0000 (06:55 +0200)]
README.Git - Update the gnulib commit number to include memory leak fix

11 years agoFixed some of the leaks in REGRESSION 20120729000504/pspp
John Darrington [Sat, 28 Jul 2012 16:27:22 +0000 (18:27 +0200)]
Fixed some of the leaks in REGRESSION