projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: Factor out duplicated code for executing and pasting syntax.
[pspp-builds.git]
/
src
/
ui
/
gui
/
chi-square-dialog.c
diff --git
a/src/ui/gui/chi-square-dialog.c
b/src/ui/gui/chi-square-dialog.c
index 6bb42e4755c302ca5e0b702ecb8a633fe5be5a56..ccfa48ec33138dc42aed6bb29fc7e4150c653c11 100644
(file)
--- a/
src/ui/gui/chi-square-dialog.c
+++ b/
src/ui/gui/chi-square-dialog.c
@@
-18,8
+18,6
@@
#include "chi-square-dialog.h"
#include "chi-square-dialog.h"
-#include <language/syntax-string-source.h>
-
#include "psppire-dialog.h"
#include "psppire-var-view.h"
#include "psppire-acr.h"
#include "psppire-dialog.h"
#include "psppire-var-view.h"
#include "psppire-acr.h"
@@
-230,21
+228,10
@@
chisquare_dialog (PsppireDataWindow *dw)
switch (response)
{
case GTK_RESPONSE_OK:
switch (response)
{
case GTK_RESPONSE_OK:
- {
- gchar *syntax = generate_syntax (&csd);
-
- struct getl_interface *sss = create_syntax_string_source (syntax);
- execute_syntax (sss);
-
- g_free (syntax);
- }
+ g_free (execute_syntax_string (generate_syntax (&csd)));
break;
case PSPPIRE_RESPONSE_PASTE:
break;
case PSPPIRE_RESPONSE_PASTE:
- {
- gchar *syntax = generate_syntax (&csd);
- paste_syntax_to_window (syntax);
- g_free (syntax);
- }
+ g_free (paste_syntax_to_window (generate_syntax (&csd)));
break;
default:
break;
break;
default:
break;