John Darrington [Mon, 27 May 2013 16:58:55 +0000 (18:58 +0200)]
PsppSheetView: Avoid using GdkRegion
John Darrington [Mon, 27 May 2013 08:55:49 +0000 (10:55 +0200)]
Included gdkkeysyms-compat.h where necessary
John Darrington [Mon, 27 May 2013 14:59:57 +0000 (16:59 +0200)]
PsppSheetView: Temporarily avoid drag begin
John Darrington [Mon, 27 May 2013 14:17:02 +0000 (16:17 +0200)]
PsppSheetViewColumn: Avoid name conflict with Gtk3 standard headers
John Darrington [Mon, 27 May 2013 10:23:18 +0000 (12:23 +0200)]
GtkXPaned: Remove xor_gc member.
This member was allocated and deallocated, but never used!
John Darrington [Mon, 27 May 2013 08:47:53 +0000 (10:47 +0200)]
PsppSheetView: Disable function pspp_sheet_view_create_row_drag_icon
John Darrington [Mon, 27 May 2013 10:15:48 +0000 (12:15 +0200)]
Missing Value Dialog: Remove GTK_DIALOG_NO_SEPARATOR flag which does not exist in Gtk3
John Darrington [Mon, 27 May 2013 10:32:46 +0000 (12:32 +0200)]
Replace some instances of GdkDrawable with GdkWindow
GdkDrawable is gone in Gtk3
John Darrington [Mon, 27 May 2013 10:27:53 +0000 (12:27 +0200)]
PsppireButtonBox: Remove dependence on flags deprecated in Gtk3
John Darrington [Mon, 27 May 2013 09:23:20 +0000 (11:23 +0200)]
GtkXPaned: Replace GSEALed member access with the corresponding function calls
John Darrington [Mon, 27 May 2013 08:52:37 +0000 (10:52 +0200)]
GtkXPaned: Avoid direct inclusion of gtk library header
John Darrington [Mon, 27 May 2013 08:18:28 +0000 (10:18 +0200)]
gtk.h wrapper: Remove workarounds which are no longer required.
John Darrington [Mon, 27 May 2013 08:12:58 +0000 (10:12 +0200)]
Disable the remaining Gtk+2 features.
These do not seem easy to work around. But none of them are
essential. Postponing them till after the transition.
John Darrington [Mon, 27 May 2013 08:39:37 +0000 (10:39 +0200)]
PsppSheetViewColumn reparented to GObject
Previously the parent was GtkObject which no longer exists in Gtk3
John Darrington [Sun, 26 May 2013 17:26:35 +0000 (19:26 +0200)]
More sealage
John Darrington [Sun, 26 May 2013 17:19:46 +0000 (19:19 +0200)]
Sealage old_width
John Darrington [Sun, 26 May 2013 17:10:12 +0000 (19:10 +0200)]
Rename allocation -> col_allocation
John Darrington [Sun, 26 May 2013 16:39:52 +0000 (18:39 +0200)]
More sealage
John Darrington [Sun, 26 May 2013 15:52:48 +0000 (17:52 +0200)]
Get window
John Darrington [Sun, 26 May 2013 15:09:15 +0000 (17:09 +0200)]
Use gtk_adjustment methods instead of direct access
John Darrington [Sun, 26 May 2013 14:03:30 +0000 (16:03 +0200)]
Yet more sealage
John Darrington [Sun, 26 May 2013 13:44:23 +0000 (15:44 +0200)]
Temporarily disable the splash screen
John Darrington [Sun, 26 May 2013 13:35:48 +0000 (15:35 +0200)]
Yet more Gseal stuff
John Darrington [Sun, 26 May 2013 13:28:51 +0000 (15:28 +0200)]
GtkSelectionData: only access using functions
John Darrington [Sun, 26 May 2013 13:11:39 +0000 (15:11 +0200)]
Avoid yet more sealed access
John Darrington [Sun, 26 May 2013 12:17:39 +0000 (14:17 +0200)]
PsppireDataWindow : Avoid direct access to sealed widget members
John Darrington [Sun, 26 May 2013 11:37:56 +0000 (13:37 +0200)]
Independent Samples dialog: Avoid direct access to sealed widget members
John Darrington [Sun, 26 May 2013 11:44:44 +0000 (13:44 +0200)]
Missing value dialog: Avoid access to sealed Gtk members
John Darrington [Sun, 26 May 2013 11:21:38 +0000 (13:21 +0200)]
Avoid direct access to sealed Gtk Widget members.
John Darrington [Sun, 26 May 2013 11:21:02 +0000 (13:21 +0200)]
Text import dialog : Avoid deprecated Gtk functions
John Darrington [Sun, 26 May 2013 10:53:01 +0000 (12:53 +0200)]
Replace GSEAL in widget headers by a different symbol
We don't want our own data members to be sealed by Gtk
John Darrington [Sun, 26 May 2013 10:23:48 +0000 (12:23 +0200)]
Disable code which is not used and is Gtk3 unfriendly
John Darrington [Sun, 26 May 2013 10:14:40 +0000 (12:14 +0200)]
Remove grid_line_gc
John Darrington [Sat, 25 May 2013 16:23:47 +0000 (18:23 +0200)]
Avoid use of gdk_draw_line
John Darrington [Fri, 24 May 2013 16:51:04 +0000 (18:51 +0200)]
Avoid use of deprecated GTK_SET_FLAGS
Based upon a patch from the Gtk+ project:
From: Emmanuele Bassi <ebassi@linux.intel.com>
Date: Mon, 12 Apr 2010 14:54:41 +0100
Subject: [PATCH] tree-view: Use gtk_widget_send_focus_change()
Remove the second (and last) internal user of the GTK_HAS_FOCUS flag.
https://bugzilla.gnome.org/show_bug.cgi?id=593671
John Darrington [Mon, 20 May 2013 08:04:52 +0000 (10:04 +0200)]
Avoid use of deprecated gdk_drawable_get_size
Use gdk_window_get_{width,height} instead. Some calls were completely unnecessary, so those
have simply been deleted.
John Darrington [Mon, 20 May 2013 07:47:47 +0000 (09:47 +0200)]
Avoid use of deprecated gdk_drawable_get_screen
John Darrington [Mon, 20 May 2013 07:31:34 +0000 (09:31 +0200)]
Avoid use of deprecated gdk_drawable_get_display
John Darrington [Mon, 20 May 2013 05:17:23 +0000 (07:17 +0200)]
Avoid gdk_drawable_get_size which is now deprecated
John Darrington [Mon, 20 May 2013 05:13:10 +0000 (07:13 +0200)]
Avoid problems with G_CONST_RETURN
This is no longer used by us. But may be used by other 3rd party libraries.
John Darrington [Mon, 20 May 2013 04:42:43 +0000 (06:42 +0200)]
Avoid use of deprecated GtkComboBoxEntry
John Darrington [Sun, 19 May 2013 10:11:18 +0000 (12:11 +0200)]
Recent GTK version to 2.24
John Darrington [Tue, 28 May 2013 13:52:12 +0000 (15:52 +0200)]
Text Import Dialog: Fix initialisation of pages which had got broken
Ben Pfaff [Tue, 28 May 2013 04:41:36 +0000 (21:41 -0700)]
manual: REGRESSION and DESCRIPTIVES make temp transformations permanent.
Ideally, this should not be the behavior, but it is better than the crash
we had before.
Suggested by John Darrington.
Bug #38787.
Bug #38786.
Ben Pfaff [Tue, 28 May 2013 04:28:32 +0000 (21:28 -0700)]
INPUT PROGRAM: Avoid infinite loop for trivially empty input program.
Bug #38782.
Reported by John Darrington.
Ben Pfaff [Sun, 26 May 2013 23:43:01 +0000 (16:43 -0700)]
Avoid letting data fields overflow in output and GUI.
When the output for data_out() is too big for the field width, it produces
output that consists of just asterisks: ******. This is OK when the
output is really going into a fixed-width space, such as the output for
PRINT and WRITE. But it is obnoxious if the output is going into PSPP
output or the GUI. This commit introduces a new function that typically
does not do this, and starts using it in output and the GUI.
Bug #35829.
Reported by John Darrington.
Bug #30731.
Reported by lavila <la@jump23.com>.
John Darrington [Sun, 26 May 2013 06:42:23 +0000 (08:42 +0200)]
Whitespace changes only
John Darrington [Sun, 26 May 2013 05:11:08 +0000 (07:11 +0200)]
Fix memory leak in error path of RECODE
John Darrington [Sun, 26 May 2013 05:00:02 +0000 (07:00 +0200)]
Fix memory leak in error path of LOGISTIC REGRESSION
John Darrington [Sat, 25 May 2013 18:53:31 +0000 (20:53 +0200)]
Fix memory leak in LOGISTIC command
John Darrington [Sat, 25 May 2013 18:43:45 +0000 (20:43 +0200)]
Fixed memory leak in examine command
John Darrington [Sat, 25 May 2013 18:37:14 +0000 (20:37 +0200)]
Fix leak check in oneway command
John Darrington [Sat, 25 May 2013 16:45:18 +0000 (18:45 +0200)]
Remove "slash" property from psppire_button_editable, which is not used
John Darrington [Sat, 25 May 2013 11:06:49 +0000 (13:06 +0200)]
Linear Regression Test: Provide more decimal places in test results.
This test previously had only 2 decimal places displayed, which
limited its ability to detect numerical errors. This change increases
the decimal places to 3.
The results for this test were checked against a pattern provided
by Olaf Nöhring.
John Darrington [Sat, 25 May 2013 10:54:57 +0000 (12:54 +0200)]
Regression: Use alternative formula for adjusted R-square
This is the formula given in SPSS Statistical Algorithms Ed 20.
John Darrington [Sat, 25 May 2013 10:00:12 +0000 (12:00 +0200)]
Corrected the Degrees of Freedom in the Regression Coefficient Significance
Reported and Tested by: Olaf Nöhring.
John Darrington [Sat, 18 May 2013 15:08:23 +0000 (17:08 +0200)]
Open imported files in new data window instead of overwriting the old
John Darrington [Sat, 18 May 2013 14:36:16 +0000 (16:36 +0200)]
Add hint paramater to Window Load method
Ben Pfaff [Wed, 22 May 2013 03:32:27 +0000 (20:32 -0700)]
Smake: Use glibtoolize instead of libtoolize, if it is available.
Requested by Teppo Jussmäki <jussmaki@fastmail.fm>.
Tested by Teppo Jussmäki <jussmaki@fastmail.fm>.
Ben Pfaff [Tue, 21 May 2013 06:49:54 +0000 (23:49 -0700)]
DELETE VARIABLES: Fix crash with FILTER.
FILTER has the surprising property that it introduces a temporary
transformation, even if proc_make_temporary_transformations_permanent()
was previously called. This causes a crash if the procedure implementation
really relies on there being no temporary transformations.
This commit fixes the problem in the procedures I was able to identify as
having it, adds a comment to proc_make_temporary_transformations_permanent()
to make it a little less likely to happen again, and adds a test
specifically to check for regression on DELETE VARIABLES.
Reported by John Darrington.
Bug #38843.
Ben Pfaff [Tue, 21 May 2013 05:20:18 +0000 (22:20 -0700)]
REGRESSION: Avoid use-after-free error with TEMPORARY and SAVE.
This should fix the use-after-free error, although I am not sure whether it
makes REGRESSION do exactly what it should do.
Bug #38787.
Ben Pfaff [Tue, 21 May 2013 05:14:54 +0000 (22:14 -0700)]
DESCRIPTIVES: Avoid use-after-free with TEMPORARY and Z scores.
This is not an ideal fix, but it avoids the use-after-free error that we
have had until now.
Bug #38786.
Ben Pfaff [Tue, 21 May 2013 05:54:31 +0000 (22:54 -0700)]
FLIP: Fix use-after-free and double frees with temporary transformations.
I originally thought this was a bug in FLIP, but it turned out that in
fact we just hadn't ever really tested
proc_make_temporary_transformations_permanent() properly with actual
transformations, and especially with adding a transformation after calling
proc_make_temporary_transformations_permanent().
The modified test should avoid regression for the bug.
Bug #38832.
Ben Pfaff [Tue, 21 May 2013 05:35:35 +0000 (22:35 -0700)]
DESCRIPTIVES: Fix a pair of memory leaks.
John Darrington [Mon, 20 May 2013 07:30:52 +0000 (09:30 +0200)]
Work around change in signature of the switch page callback in GtkNoteBook
John Darrington [Mon, 20 May 2013 05:00:49 +0000 (07:00 +0200)]
Fix constness problem in spreadsheet reader dialog
John Darrington [Sun, 19 May 2013 09:40:02 +0000 (11:40 +0200)]
version.c: Make the build date/time independent of locale and timezone
John Darrington [Sun, 19 May 2013 05:20:52 +0000 (07:20 +0200)]
Remove unused function
John Darrington [Sat, 18 May 2013 17:06:55 +0000 (19:06 +0200)]
Implement import dialog to import spreadsheet files.
Reviewed-by: Ben Pfaff
John Darrington [Fri, 17 May 2013 14:24:31 +0000 (16:24 +0200)]
Sort items in datasheets dropdown box.
Before this change, the values in the data sheets dropdown
box appeared in a non-deterministic order (the order in
the underlying hash), which was inconvenient to users.
This change produces the values in sorted order.
Closes bug #38921
John Darrington [Fri, 17 May 2013 08:08:49 +0000 (10:08 +0200)]
Documentation: Explain more emphatically that UPDATE/MATCH/ADD do not mutate input files.
Closes bug #38682.
John Darrington [Fri, 17 May 2013 07:55:21 +0000 (09:55 +0200)]
Cairo output: Add a bit of horizontal between table columns.
Fixes bug #34798
John Darrington [Wed, 15 May 2013 17:09:11 +0000 (19:09 +0200)]
Spreadsheet Import Dialog: Implement reset button
John Darrington [Wed, 15 May 2013 17:02:45 +0000 (19:02 +0200)]
Merge remote branch 'origin/master' into import-gui
Conflicts:
src/ui/gui/page-assistant.c
John Darrington [Wed, 15 May 2013 17:00:37 +0000 (19:00 +0200)]
Import Assistant: Fix broken reset buttons
John Darrington [Wed, 15 May 2013 16:55:29 +0000 (18:55 +0200)]
Import Assistant: Fix broken reset buttons
John Darrington [Tue, 14 May 2013 17:05:20 +0000 (19:05 +0200)]
Merge remote branch 'origin/master' into import-gui
John Darrington [Tue, 14 May 2013 11:00:37 +0000 (13:00 +0200)]
Avoid use of deprecated GtkNotebookPage
John Darrington [Tue, 14 May 2013 09:52:27 +0000 (11:52 +0200)]
PsppireButtonBox: Do not use the GtkBoxChild structure.
Avoid using Gtk features which are (soon to be) deprecated.
John Darrington [Tue, 14 May 2013 04:46:57 +0000 (06:46 +0200)]
Merge remote branch 'origin/master' into import-gui
John Darrington [Mon, 13 May 2013 17:10:29 +0000 (19:10 +0200)]
PsppSheetViewColumn: Remove inappropriate #ifndef
John Darrington [Mon, 13 May 2013 07:30:30 +0000 (09:30 +0200)]
Replaced some obsolete GTK symbols with the recommended modern ones
John Darrington [Mon, 13 May 2013 06:44:20 +0000 (08:44 +0200)]
GtkXPaned: Whitespace changes only
John Darrington [Mon, 13 May 2013 07:29:25 +0000 (09:29 +0200)]
Avoid compiler warning
John Darrington [Sun, 12 May 2013 13:40:36 +0000 (15:40 +0200)]
Update INSTALL file
John Darrington [Sun, 12 May 2013 05:41:49 +0000 (07:41 +0200)]
Updated localisations from translation-project.org
John Darrington [Sat, 11 May 2013 07:39:08 +0000 (09:39 +0200)]
Merge branch 'master' into import-gui
John Darrington [Sat, 11 May 2013 07:31:12 +0000 (09:31 +0200)]
Made _xml_char_to_int less prone to crashing
John Darrington [Sat, 11 May 2013 07:21:01 +0000 (09:21 +0200)]
Gnumeric Reader: Use symbolic value instead of literal integer
John Darrington [Sat, 11 May 2013 07:31:12 +0000 (09:31 +0200)]
Made _xml_char_to_int less prone to crashing
John Darrington [Sat, 11 May 2013 07:21:01 +0000 (09:21 +0200)]
Gnumeric Reader: Use symbolic value instead of literal integer
John Darrington [Sat, 11 May 2013 05:21:46 +0000 (07:21 +0200)]
Merge remote branch 'origin/master' into import-gui
John Darrington [Fri, 10 May 2013 11:46:13 +0000 (13:46 +0200)]
Fix corner case in calculation of trimmed mean.
The calculation of the trimmed mean was not quite correct. This
change fixes it, and adds a test.
Reported by: Olaf Nöhring.
John Darrington [Thu, 9 May 2013 17:39:15 +0000 (19:39 +0200)]
Merge branch 'master' into import-gui
Conflicts:
src/ui/gui/psppire-cell-renderer-button.c
John Darrington [Thu, 9 May 2013 09:40:03 +0000 (11:40 +0200)]
Revert "Work-around bug in GCC 4.4.5"
This reverts commit
c7711e39f523f206a74f5d0f52480ad10267e0ca.
The claim of a bug in GCC proved to be unfounded. The problem which
this change tried to work-around has in fact been fixed in
commit
19bf192a093527bf10b1de95fbe8798ba156f960
John Darrington [Thu, 9 May 2013 09:28:12 +0000 (11:28 +0200)]
Fix stack corruption in ODS reader.
zip_reader_create takes a pointer to a struct string, which
is used to store error messages during zip operations. I had
been passing the address of a string declared as local variable
in ods_probe. However since the zip reader survives ods_probe,
this caused stack corruption in later read operations.
This change makes the string a member of the reader created (if any).
John Darrington [Thu, 9 May 2013 09:28:12 +0000 (11:28 +0200)]
Fix stack corruption in ODS reader.
zip_reader_create takes a pointer to a struct string, which
is used to store error messages during zip operations. I had
been passing the address of a string declared as local variable
in ods_probe. However since the zip reader survives ods_probe,
this caused stack corruption in later read operations.
This change makes the string a member of the reader created (if any).
John Darrington [Wed, 8 May 2013 07:42:00 +0000 (09:42 +0200)]
Update test to include new warning
John Darrington [Tue, 7 May 2013 13:50:02 +0000 (15:50 +0200)]
ods reader: Report cells which cannot be converted
John Darrington [Sat, 4 May 2013 05:10:37 +0000 (07:10 +0200)]
Gnumeric reader: Report cells which cannot be converted