pspp
8 years agodictionary: Make dict_delete_var() much faster in common case.
Ben Pfaff [Sat, 25 Jul 2015 15:58:06 +0000 (08:58 -0700)]
dictionary: Make dict_delete_var() much faster in common case.

When a system file is opened, dict_delete_consecutive_vars() deletes lots
of variables if the system file has long string variables.  This was very
slow because of the O(n**2) behavior in dict_delete_var().  The biggest
cost of that O(n**2) behavior was in calling var_clone() on every variable
several times.  Fortunately, the var_clone() call is not necessary in this
case, because the cloned variable is only needed for callbacks, which
aren't set when a dictionary is being read.

This reduced the time to read the dictionary in a particular sample system
file from seconds to milliseconds.

8 years agoFix behaviour of the REGRESSION /STATISTICS subcommand.
John Darrington [Thu, 9 Jul 2015 15:46:00 +0000 (17:46 +0200)]
Fix behaviour of the REGRESSION /STATISTICS subcommand.

8 years agoGET DATA/TYPE=TXT: Remove ESCAPE subcommand and make its behavior default.
Ben Pfaff [Tue, 21 Jul 2015 03:43:00 +0000 (20:43 -0700)]
GET DATA/TYPE=TXT: Remove ESCAPE subcommand and make its behavior default.

Frans Houweling reported that this is the default and only behavior for
GET DATA/TYPE=TXT in SPSS 14, at:
http://lists.gnu.org/archive/html/pspp-users/2015-07/msg00027.html

Therefore, this commit makes this behavior the default and only behavior
in PSPP as well.  (In my opinion it's the only sensible behavior, but SPSS
didn't document it so I assumed that it didn't do it that way.)

8 years agoPsppireValueEntry: Enable can_focus in realize callback
John Darrington [Sun, 19 Jul 2015 12:12:28 +0000 (14:12 +0200)]
PsppireValueEntry: Enable can_focus in realize callback

8 years agoPsppireDialogActionIndepSamples: Replace GtkTable with GtkGrid
John Darrington [Sun, 19 Jul 2015 11:13:18 +0000 (13:13 +0200)]
PsppireDialogActionIndepSamples: Replace GtkTable with GtkGrid

8 years agoIndependent Samples T-Test dialog: Replace deprected GtkVBox and GtkHBox
John Darrington [Sun, 19 Jul 2015 10:42:01 +0000 (12:42 +0200)]
Independent Samples T-Test dialog: Replace deprected GtkVBox and GtkHBox

8 years agoGET DATA TXT: change syntax generation from /IMPORTCASES to IMPORTCASE
John Darrington [Sat, 18 Jul 2015 07:59:32 +0000 (09:59 +0200)]
GET DATA TXT: change syntax generation from /IMPORTCASES to IMPORTCASE

Apparently, spss only accepts IMPORTCASE (contrary to its documentation).

Reported by: Frans Houweling

8 years agoLinreg: Reduce scope of variables
John Darrington [Fri, 10 Jul 2015 08:38:54 +0000 (10:38 +0200)]
Linreg: Reduce scope of variables

8 years agoAvoid gtk_widget_reparent which is deprecated
John Darrington [Sat, 4 Jul 2015 17:28:33 +0000 (19:28 +0200)]
Avoid gtk_widget_reparent which is deprecated

8 years agoAvoid GtkArrow which is deprecated
John Darrington [Sat, 4 Jul 2015 17:12:02 +0000 (19:12 +0200)]
Avoid GtkArrow which is deprecated

8 years agoPsppireWindowRegister: Remove unused function
John Darrington [Thu, 2 Jul 2015 16:45:27 +0000 (18:45 +0200)]
PsppireWindowRegister: Remove unused function

8 years agoFix bug when searching through an empty dataset.
John Darrington [Mon, 29 Jun 2015 15:11:13 +0000 (17:11 +0200)]
Fix bug when searching through an empty dataset.

Closes bug #45430

8 years agoCorrect bad button label
John Darrington [Mon, 29 Jun 2015 15:07:48 +0000 (17:07 +0200)]
Correct bad button label

8 years agomissing-val-dialog.c: fixed bug #45419 - added value type checks
Friedrich Beckmann [Sun, 28 Jun 2015 16:42:46 +0000 (18:42 +0200)]
missing-val-dialog.c: fixed bug #45419 - added value type checks

This patch fixes bug #45419:
psppire crashes when entering missing data in new string variable.

The missing value width is now derived from the variable type. I noticed that
there are currently no type checks and no detailed warnings. I added the type
checks which were already provided by data_in and forward them to the existing
error dialog box. If an error is detected, the focus of the dialog box is
set to the field which produces the error.

8 years agoFix non-working accelerator key
John Darrington [Sun, 28 Jun 2015 14:09:36 +0000 (16:09 +0200)]
Fix non-working accelerator key

8 years agoPsppireMeansLayer: Remove useless widget
John Darrington [Sat, 27 Jun 2015 20:44:09 +0000 (22:44 +0200)]
PsppireMeansLayer: Remove useless widget

Not only did this GtkAlignment not do anything, but it is also deprecated in Gtk3

8 years agoPsppireValChooser: remove deprecated functions
John Darrington [Sat, 27 Jun 2015 20:19:08 +0000 (22:19 +0200)]
PsppireValChooser: remove deprecated functions

8 years agoGtkTable -> GtkGrid
John Darrington [Sat, 27 Jun 2015 19:31:49 +0000 (21:31 +0200)]
GtkTable -> GtkGrid

8 years agoRemove deprecations from help-menu.c
John Darrington [Sat, 27 Jun 2015 15:57:02 +0000 (17:57 +0200)]
Remove deprecations from help-menu.c

8 years agoOutputWindow: Convert deprecated widgets to non-deprecated ones
John Darrington [Sat, 27 Jun 2015 14:22:25 +0000 (16:22 +0200)]
OutputWindow: Convert deprecated widgets to non-deprecated ones

8 years agoRemoved unreachable code section
John Darrington [Sat, 27 Jun 2015 13:05:55 +0000 (15:05 +0200)]
Removed unreachable code section

8 years agogtk_widget_size_request --> gtk_widget_get_preferred_size
John Darrington [Sat, 27 Jun 2015 12:38:02 +0000 (14:38 +0200)]
gtk_widget_size_request --> gtk_widget_get_preferred_size

8 years agoReplace two instances of gdk_pointer_grab with gdk_device_grab
John Darrington [Sat, 27 Jun 2015 12:10:20 +0000 (14:10 +0200)]
Replace two instances of gdk_pointer_grab with gdk_device_grab

8 years agoRevert "Replaced a few instances of gdk_window_get_pointer by gdk_device_get_position"
John Darrington [Sat, 27 Jun 2015 11:28:40 +0000 (13:28 +0200)]
Revert "Replaced a few instances of gdk_window_get_pointer by gdk_device_get_position"

This reverts commit 70702237d6765a3cc276e952919211387eeee87c.
It seems to cause problems selecting areas on the sheet.

8 years agoReplaced a few instances of gdk_window_get_pointer by gdk_device_get_position
John Darrington [Sat, 27 Jun 2015 10:21:29 +0000 (12:21 +0200)]
Replaced a few instances of gdk_window_get_pointer by gdk_device_get_position

8 years agopsppire-output-view.c: added check for view->xr - fixes bug #45421
Friedrich Beckmann [Sat, 27 Jun 2015 10:05:50 +0000 (12:05 +0200)]
psppire-output-view.c: added check for view->xr - fixes bug #45421

The output windows crashed when an empty syntax window is executed. The
rerender function got called without a valid view->xr (=NULL). I added a
check for this condition and create a new view->xr as it is done in the
psppire_output_view_put function.

This fixes bug #45421: Crash when trying to run empty syntax

8 years agoReplace deprecated GTK_STOCK_ symbols with translatable strings
John Darrington [Sat, 27 Jun 2015 06:27:33 +0000 (08:27 +0200)]
Replace deprecated GTK_STOCK_ symbols with translatable strings

8 years agoPaired samples T-TEST: fix bug calculating correlation coefficient.
John Darrington [Sat, 27 Jun 2015 05:42:08 +0000 (07:42 +0200)]
Paired samples T-TEST: fix bug calculating correlation coefficient.

The value did not properly consider the weights of the data.
Thanks to Douglas Bonett <dgbonett@ucsc.edu> for reporting this.

8 years agoCROSSTABS: Fixed the reporting of the standard error of Cohen's Kappa
John Darrington [Fri, 26 Jun 2015 09:59:07 +0000 (11:59 +0200)]
CROSSTABS: Fixed the reporting of the standard error of Cohen's Kappa

The Standard error assuming the null hypothesis was being reported
when the standard error NOT assuming the null hypothesis ought to
have been.

Thanks to Joanne Ingram <joanne.ingram@ed.ac.uk> for reporting this
problem, and to Douglas Bonett <dgbonett@ucsc.edu> for explaining
how to fix it.

8 years agogdk_cursor_unref -> g_object_unref
John Darrington [Thu, 25 Jun 2015 07:08:22 +0000 (09:08 +0200)]
gdk_cursor_unref -> g_object_unref

8 years ago fix s390x build failure on debian due to wrong type casting
Friedrich Beckmann [Wed, 24 Jun 2015 21:50:52 +0000 (23:50 +0200)]
fix s390x build failure on debian due to wrong type casting

    The problem showed up on s390x for the 0.8.5 debian version
    where four graph tests using pdf export failed with the same assertion. The
    problem is due to wrong casting. intptr_t is long int (64 Bit) on s390x
    but nl_langinfo returns 0xd200000000 on s390x where 0 is the integer result.
    This results in wrong but positive height and width values for the paper size.

8 years ago fix crash when exporting pdf via gui - fixes bug #45272
Friedrich Beckmann [Wed, 24 Jun 2015 21:47:58 +0000 (23:47 +0200)]
fix crash when exporting pdf via gui - fixes bug #45272

    The problem https://savannah.gnu.org/bugs/?45272 occurs when the pdf
    export is done via the gui. The problem is that tables containing only
    carriage returns are considered to have no vertical space consumption.

8 years agoSelect cases dialog: Change GtkTable to GtkGrid
John Darrington [Wed, 24 Jun 2015 20:06:26 +0000 (22:06 +0200)]
Select cases dialog: Change GtkTable to GtkGrid

8 years agoReplace some obsolete Gtk2 functions
John Darrington [Wed, 24 Jun 2015 19:03:07 +0000 (21:03 +0200)]
Replace some obsolete Gtk2 functions

8 years agoFix typo in value chooser
John Darrington [Wed, 24 Jun 2015 17:13:28 +0000 (19:13 +0200)]
Fix typo in value chooser

8 years agogdk_cursor_unref -> g_object_unref
John Darrington [Wed, 24 Jun 2015 16:41:12 +0000 (18:41 +0200)]
gdk_cursor_unref -> g_object_unref

8 years agoFREQUENCIES: Reimplement FORMAT=LIMIT feature.
Ben Pfaff [Wed, 24 Jun 2015 03:12:44 +0000 (20:12 -0700)]
FREQUENCIES: Reimplement FORMAT=LIMIT feature.

When the FREQUENCIES input parser was rewritten, this feature was
mistakenly omitted.  This commit fixes the problem.

Reported by Douglas Ferguson.

8 years agoNEWS: add note to mention the transition to Gtk+3
John Darrington [Tue, 23 Jun 2015 06:29:29 +0000 (08:29 +0200)]
NEWS: add note to mention the transition to Gtk+3

8 years agoData import dialog: GtkTable -> GtkGrid
John Darrington [Mon, 22 Jun 2015 19:33:19 +0000 (21:33 +0200)]
Data import dialog: GtkTable -> GtkGrid

8 years agoPsppireKeypad: replace GtkTable with GtkGrid
John Darrington [Mon, 22 Jun 2015 18:34:49 +0000 (20:34 +0200)]
PsppireKeypad: replace GtkTable with GtkGrid

8 years agoRemove deprecated functions gtk_threads_enter and gdk_threads_leave
John Darrington [Mon, 22 Jun 2015 16:45:17 +0000 (18:45 +0200)]
Remove deprecated functions gtk_threads_enter and gdk_threads_leave

8 years agoReplace GtkFontSelectionDialog with GtkFontChooserDialog
John Darrington [Mon, 22 Jun 2015 16:29:28 +0000 (18:29 +0200)]
Replace GtkFontSelectionDialog with GtkFontChooserDialog

8 years agoReplace GtkStock, GtkVBox and GtkHBox with their non-deprecated equivalents
John Darrington [Sun, 21 Jun 2015 19:45:24 +0000 (21:45 +0200)]
Replace GtkStock, GtkVBox and GtkHBox with their non-deprecated equivalents

8 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sun, 21 Jun 2015 19:48:39 +0000 (12:48 -0700)]
po: Update translations from translationproject.org.

8 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sun, 21 Jun 2015 19:25:49 +0000 (12:25 -0700)]
po: Update translations from translationproject.org.

8 years agoPsppireScanf and PsppireAcr: Avoid deprected API features
John Darrington [Sun, 21 Jun 2015 18:12:57 +0000 (20:12 +0200)]
PsppireScanf and PsppireAcr: Avoid deprected API features

8 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sun, 21 Jun 2015 17:07:06 +0000 (10:07 -0700)]
po: Update translations from translationproject.org.

8 years agoconfigure: With -Werror, add -Wno-error=deprecated-declarations.
Ben Pfaff [Sun, 21 Jun 2015 17:05:29 +0000 (10:05 -0700)]
configure: With -Werror, add -Wno-error=deprecated-declarations.

The PSPP code for GTK+3 still uses several deprecated interfaces, so
using -Werror without -Wno-error=deprecated-declarations prevents the tree
from compiling.

I hope that this is a temporary measure.

8 years agopspp-sheet-view: Removed unused variable.
Ben Pfaff [Sun, 21 Jun 2015 17:01:29 +0000 (10:01 -0700)]
pspp-sheet-view: Removed unused variable.

Commit 9682fa965a7d (fixed scrolling of edited cell - fixes bug #45113)
removed all uses of local variable 'requisition' from
pspp_sheet_view_real_start_editing(), but did not remove the declaration.
This commit removes the declaration.

Fixes a warning reported by GCC 4.9.1.

8 years agopspp-sheet-view: Remove write-only variable from pspp_sheet_view_draw_bin().
Ben Pfaff [Sun, 21 Jun 2015 16:59:17 +0000 (09:59 -0700)]
pspp-sheet-view: Remove write-only variable from pspp_sheet_view_draw_bin().

Commit 9682fa965 (fixed scrolling of edited cell - fixes bug #45113)
removed the only code that uses the variable of 'has_special_cell' from
pspp_sheet_view_draw_bin(), but retained the code that set its value.
This commit removes the variable entirely.

This fixes a warning reported by GCC 4.9.1.

8 years agoMerge "gtk3" branch into "master".
Ben Pfaff [Sun, 21 Jun 2015 16:33:22 +0000 (09:33 -0700)]
Merge "gtk3" branch into "master".

8 years agoMissing value dialog: Simplify error dialog.
John Darrington [Sun, 21 Jun 2015 10:21:54 +0000 (12:21 +0200)]
Missing value dialog: Simplify error dialog.

This also avoids the use of deprecated API features.

8 years agoGRAPH: Correct spacing and punctuation of error message
John Darrington [Sun, 21 Jun 2015 08:43:21 +0000 (10:43 +0200)]
GRAPH: Correct spacing and punctuation of error message

8 years agoPsppireOutputView redefined parameter y to be of type long.
John Darrington [Sun, 21 Jun 2015 06:10:46 +0000 (08:10 +0200)]
PsppireOutputView redefined parameter y to be of type long.

The variable y was defined as int, but being cast to long when set in the tree store.  This seems like it
could give rise to integer overflow.  This change redefines y to be of type long.

Possibly related to bug #45272

8 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sat, 20 Jun 2015 23:11:41 +0000 (16:11 -0700)]
po: Update translations from translationproject.org.

8 years agoReplace deprecated functions
John Darrington [Sat, 20 Jun 2015 19:39:59 +0000 (21:39 +0200)]
Replace deprecated functions

8 years agoMerge remote-tracking branch 'origin/master' into gtk3
John Darrington [Sat, 20 Jun 2015 18:29:42 +0000 (20:29 +0200)]
Merge remote-tracking branch 'origin/master' into gtk3

Conflicts:
src/math/chart-geometry.c
src/output/cairo-chart.c
src/output/charts/plot-hist-cairo.c
tests/math/chart-geometry.at

8 years agoUpdate version number to 0.8.5.
Ben Pfaff [Sat, 20 Jun 2015 16:29:55 +0000 (09:29 -0700)]
Update version number to 0.8.5.

8 years agoGtk3: Fix font selection of variable and dataview.
John Darrington [Fri, 19 Jun 2015 09:00:51 +0000 (11:00 +0200)]
Gtk3: Fix font selection of variable and dataview.

Closes bug #45337

8 years agogtk_widget_modify_font -> gtk_widget_override_font
John Darrington [Thu, 18 Jun 2015 19:18:59 +0000 (21:18 +0200)]
gtk_widget_modify_font -> gtk_widget_override_font

8 years agoMove version dependent constructs to gtk.in.h
John Darrington [Thu, 18 Jun 2015 15:06:18 +0000 (17:06 +0200)]
Move version dependent constructs to gtk.in.h

8 years agoChart Geometry: Fix Chart Ticks Format test
John Darrington [Thu, 18 Jun 2015 07:06:25 +0000 (09:06 +0200)]
Chart Geometry: Fix Chart Ticks Format test

A previous commit changed the expected output, but neglected to change a
test accordingly.  This change fixes that.

8 years agoCharts: internationalise representation of scientific format.
John Darrington [Wed, 17 Jun 2015 20:11:25 +0000 (22:11 +0200)]
Charts: internationalise representation of scientific format.

It seems that when representing real numbers in scientific
notation, there are several cultural conventions. This change
allows the translators to choose the convention best suited
to their locale.

8 years agocharts: switched from bullet operator to multiplication sign for numbers
Friedrich Beckmann [Wed, 17 Jun 2015 08:12:35 +0000 (10:12 +0200)]
charts: switched from bullet operator to multiplication sign for numbers

The previous switch to pango used the bullet operator for the display
of scientific numbers in charts. Now the numbers are displayed in the
form: 1.5x10^5 instead as 1.5.10^5.

8 years agocharts: switched from bullet operator to multiplication sign for numbers
Friedrich Beckmann [Wed, 17 Jun 2015 08:12:35 +0000 (10:12 +0200)]
charts: switched from bullet operator to multiplication sign for numbers

The previous switch to pango used the bullet operator for the display
of scientific numbers in charts. Now the numbers are displayed in the
form: 1.5x10^5 instead as 1.5.10^5.

8 years agoCorrect and expand comment to barchart_create
John Darrington [Tue, 16 Jun 2015 15:51:25 +0000 (17:51 +0200)]
Correct and expand comment to barchart_create

8 years agoRemove redundant prototype from src/data/variable.h: var_get_value_name.
John Darrington [Tue, 16 Jun 2015 15:32:27 +0000 (17:32 +0200)]
Remove redundant prototype from src/data/variable.h: var_get_value_name.

There was no definition corresponding to this declaration.

8 years agotests: Unset $TERM to avoid error if $TERM is set to an unknown terminal.
Ben Pfaff [Mon, 15 Jun 2015 15:22:17 +0000 (08:22 -0700)]
tests: Unset $TERM to avoid error if $TERM is set to an unknown terminal.

Reported by Friedrich Beckmann <friedrich.beckmann@gmx.de>.
See failed tests here:
https://launchpadlibrarian.net/209052134/buildlog_ubuntu-wily-i386.pspp_0.8.4-1_BUILDING.txt.gz

8 years agoplot-hist-cairo: Clip normal curve.
Ben Pfaff [Sun, 14 Jun 2015 21:24:20 +0000 (14:24 -0700)]
plot-hist-cairo: Clip normal curve.

Otherwise a tall normal curve can go way above the intended data
rectangle to spill out even beyond the page boundary, as shown in
the PDF examples in bug #45192.

8 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sun, 14 Jun 2015 20:44:38 +0000 (13:44 -0700)]
po: Update translations from translationproject.org.

8 years agogtk3 - output window: migrated to style context, less rerendering
Friedrich Beckmann [Sat, 13 Jun 2015 04:55:13 +0000 (06:55 +0200)]
gtk3 - output window: migrated to style context, less rerendering

I replaced the deprecated gtk_style_get with the style_context
constructs. The rerendering is now only called after size-allocation or
style updates. The xr fonts are only updated after a style-updated
signal. The style is now derived from the view class for the GtkLayout
widget.

8 years agooutput window: click on overview item adjusts output view (jump)
Friedrich Beckmann [Wed, 10 Jun 2015 19:44:17 +0000 (21:44 +0200)]
output window: click on overview item adjusts output view (jump)

On MacOS clicking on the overview item did not result in a correct
adjustment of the output window. The reason is that view->y is of type
integer but type long is stored in the treestore. This requires correct
type casting.

8 years agoreplaced decimal module, xrchart_scale with autoformat, histogram x-axis ticks changed.
Friedrich Beckmann [Sun, 7 Jun 2015 21:10:07 +0000 (23:10 +0200)]
replaced decimal module, xrchart_scale with autoformat, histogram x-axis ticks changed.

During gtk3 osx debugging the decimal unit crashed. I replaced the decimal computations
with traditional tick interval computation plus a printf format string generation which is
adapted to the chosen tick style.

The xrchart scales writing are adapted to use this mechanism. If the tick text is too long
to fit in the interval, then the tick label uses the existing rotation by 45 degrees. I added
some space below the x-axis to make the tick labels visible. Maybe the tick label placement
could also be done in two rows for the even and odd ticks.

The histogram x-axis tick generation is changed from a tick per bin to the usual
normal x-axis tick generation. This allows easier visual bin border identification.
The bin width is adapted to the chosen x-axis tick scale. Any number of bins can now
be visualized. This is according to the spss examples I found for the histograms.

Conflicts:
src/output/cairo-chart.c

8 years agocharts: changed scientifc number display from e+6 type to pango markup
Friedrich Beckmann [Thu, 4 Jun 2015 05:35:00 +0000 (07:35 +0200)]
charts: changed scientifc number display from e+6 type to pango markup

8 years agooutput window: click on overview item adjusts output view (jump)
Friedrich Beckmann [Wed, 10 Jun 2015 19:44:17 +0000 (21:44 +0200)]
output window: click on overview item adjusts output view (jump)

On MacOS clicking on the overview item did not result in a correct
adjustment of the output window. The reason is that view->y is of type
integer but type long is stored in the treestore. This requires correct
type casting.

8 years agooutput window: added allocation setting for drawing areas. fixes bug #45229.
Friedrich Beckmann [Wed, 10 Jun 2015 18:27:55 +0000 (20:27 +0200)]
output window: added allocation setting for drawing areas. fixes bug #45229.

I added allocation setting to the drawing areas in the output window. The
problem occured in osx gtk3 branch and is described in bug #45229. The
content of the output window was not rendered correctly in the initial
window but only after a resize. Setting the size request for the drawing
areas is not enough because the current allocation is not immediatly changed.
The clipping is based on the current allocation, while the drawing is based
on the results from the rerender function. This problem is related to
the problem described in bug #43362.

8 years agoreplaced decimal module, xrchart_scale with autoformat, histogram x-axis ticks changed.
Friedrich Beckmann [Sun, 7 Jun 2015 21:10:07 +0000 (23:10 +0200)]
replaced decimal module, xrchart_scale with autoformat, histogram x-axis ticks changed.

During gtk3 osx debugging the decimal unit crashed. I replaced the decimal computations
with traditional tick interval computation plus a printf format string generation which is
adapted to the chosen tick style.

The xrchart scales writing are adapted to use this mechanism. If the tick text is too long
to fit in the interval, then the tick label uses the existing rotation by 45 degrees. I added
some space below the x-axis to make the tick labels visible. Maybe the tick label placement
could also be done in two rows for the even and odd ticks.

The histogram x-axis tick generation is changed from a tick per bin to the usual
normal x-axis tick generation. This allows easier visual bin border identification.
The bin width is adapted to the chosen x-axis tick scale. Any number of bins can now
be visualized. This is according to the spss examples I found for the histograms.

8 years agocairo-chart: Use "Sans" instead of "sans serif" as font.
Ben Pfaff [Fri, 5 Jun 2015 03:09:24 +0000 (20:09 -0700)]
cairo-chart: Use "Sans" instead of "sans serif" as font.

This fixes a bug on Windows, where Pango doesn't have a font
named "sans serif" but does have one named "Sans".

Reported and tested by Harry Thijssen.

8 years agocharts: changed scientifc number display from e+6 type to pango markup
Friedrich Beckmann [Thu, 4 Jun 2015 05:35:00 +0000 (07:35 +0200)]
charts: changed scientifc number display from e+6 type to pango markup

8 years agoFixed bug GRAPH /HISTOGRAM vs. null data.
John Darrington [Tue, 2 Jun 2015 08:26:06 +0000 (10:26 +0200)]
Fixed bug GRAPH /HISTOGRAM vs. null data.

Fixed a crash which occured when GRAPH /HISTOGRAM was called
on a dataset with less than 2 data.'

8 years agoExercise the GRAPH command in the split-file test
John Darrington [Tue, 2 Jun 2015 05:14:18 +0000 (07:14 +0200)]
Exercise the GRAPH command in the split-file test

8 years agoAdded src/ui/gui/memorandum.txt to EXTRA_DIST
John Darrington [Mon, 1 Jun 2015 05:03:02 +0000 (07:03 +0200)]
Added src/ui/gui/memorandum.txt to EXTRA_DIST

8 years agohistogram tick drawing - added format generation for optimum tick drawing
Friedrich Beckmann [Sun, 31 May 2015 22:20:01 +0000 (00:20 +0200)]
histogram tick drawing - added format generation for optimum tick drawing

Fixes bug #45192 which showed up in the gtk3 branch on MacOS.

It replaces the decimal_xxx computations with a routine that computes a
formatting string and a scale factor for a given axis range and number of
bins. The formatting will switch between normal and scientific depending on
the length of the displayed label text. The formatting is such that no
rounded numbers like 3.9999999 when in fact 4 is expected is shown.
Differences between bins remain visible in the tick labels.

In addition the width of the rendered labels is compared with the width
of the bins in the display such that the labels will automatically
switch between horizontal and 45 degree display.

8 years agohistogram tick drawing - added format generation for optimum tick drawing
Friedrich Beckmann [Sun, 31 May 2015 22:20:01 +0000 (00:20 +0200)]
histogram tick drawing - added format generation for optimum tick drawing

Fixes bug #45192 which showed up in the gtk3 branch on MacOS.

It replaces the decimal_xxx computations with a routine that computes a
formatting string and a scale factor for a given axis range and number of
bins. The formatting will switch between normal and scientific depending on
the length of the displayed label text. The formatting is such that no
rounded numbers like 3.9999999 when in fact 4 is expected is shown.
Differences between bins remain visible in the tick labels.

In addition the width of the rendered labels is compared with the width
of the bins in the display such that the labels will automatically
switch between horizontal and 45 degree display.

8 years agoValue Label Dialog: Do not attempt to read selection if there is none.
John Darrington [Sun, 31 May 2015 20:34:42 +0000 (22:34 +0200)]
Value Label Dialog: Do not attempt to read selection if there is none.

Fixes bug #45215.

8 years agoValue Label Dialog: Do not attempt to read selection if there is none.
John Darrington [Sun, 31 May 2015 20:34:42 +0000 (22:34 +0200)]
Value Label Dialog: Do not attempt to read selection if there is none.

Fixes bug #45215.

8 years agoNew file for developers: memorandum.txt
John Darrington [Sun, 31 May 2015 13:34:47 +0000 (15:34 +0200)]
New file for developers: memorandum.txt

This short text very briefly describes the steps to add a new GUI dialog to Psppire.

8 years agoQUICK CLUSTER: Fix infinite loop on bad command name.
Ben Pfaff [Sat, 30 May 2015 23:13:30 +0000 (16:13 -0700)]
QUICK CLUSTER: Fix infinite loop on bad command name.

Reported by Alan Mead.

8 years agoSmake: build from git on Mac OSX
Friedrich Beckmann [Fri, 29 May 2015 12:32:59 +0000 (14:32 +0200)]
Smake: build from git on Mac OSX

8 years agoremoved references to psppire-dialog orientation property
Friedrich Beckmann [Thu, 28 May 2015 21:47:28 +0000 (23:47 +0200)]
removed references to psppire-dialog orientation property

8 years agofixed scrolling of edited cell - fixes bug #45113
Friedrich Beckmann [Thu, 28 May 2015 20:26:03 +0000 (22:26 +0200)]
fixed scrolling of edited cell - fixes bug #45113

9 years agoscatterplot: fixed compiler warnings
Friedrich Beckmann [Fri, 22 May 2015 09:37:35 +0000 (11:37 +0200)]
scatterplot: fixed compiler warnings

9 years agofixed the scroll-to-bottom; removed the size-request signal warning
Friedrich Beckmann [Sun, 24 May 2015 19:27:24 +0000 (21:27 +0200)]
fixed the scroll-to-bottom; removed the size-request signal warning

9 years agorepair glade; switched to gladeui-2.0; removed the internal-child in psppire-dialog.
Friedrich Beckmann [Fri, 22 May 2015 07:44:19 +0000 (09:44 +0200)]
repair glade; switched to gladeui-2.0; removed the internal-child in psppire-dialog.

9 years agoscatterplot: fixed compiler warnings
Friedrich Beckmann [Fri, 22 May 2015 09:37:35 +0000 (11:37 +0200)]
scatterplot: fixed compiler warnings

9 years agogtk3: replaced gtk_widget_register_window with older code depending on gtk version...
Friedrich Beckmann [Thu, 21 May 2015 21:46:22 +0000 (23:46 +0200)]
gtk3: replaced gtk_widget_register_window with older code depending on gtk version (pre 3.8)

9 years agogtk3 - fix to show selected cells with adwaita theme
Friedrich Beckmann [Thu, 21 May 2015 06:18:58 +0000 (08:18 +0200)]
gtk3 - fix to show selected cells with adwaita theme

9 years agogtk3 - adapted draw routine to gtk_cairo_should_draw_window. gtk-criticals with undef...
Friedrich Beckmann [Sun, 17 May 2015 13:01:16 +0000 (15:01 +0200)]
gtk3 - adapted draw routine to gtk_cairo_should_draw_window. gtk-criticals with undefined drag window disappeared. The gtk-criticals showed up in debian 8.

9 years agogtk3: Replace gdk_window_get_pointer with gdk_window_get_device_position
John Darrington [Wed, 20 May 2015 14:29:57 +0000 (16:29 +0200)]
gtk3: Replace gdk_window_get_pointer with gdk_window_get_device_position

9 years agoGtk+3: Replace deprecated gtk_layout_get_vadjustment with gtk_scrollable_get_vadjustment
John Darrington [Tue, 19 May 2015 16:12:37 +0000 (18:12 +0200)]
Gtk+3: Replace deprecated gtk_layout_get_vadjustment with gtk_scrollable_get_vadjustment