projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use idle callback to write to the local config directory
[pspp]
/
src
/
ui
/
gui
/
correlation-dialog.c
diff --git
a/src/ui/gui/correlation-dialog.c
b/src/ui/gui/correlation-dialog.c
index ff6a254552345907a84c3ae4f371aaa1acdf47a8..78510dcd75d009a5514aff111c7a41e746346a78 100644
(file)
--- a/
src/ui/gui/correlation-dialog.c
+++ b/
src/ui/gui/correlation-dialog.c
@@
-1,5
+1,5
@@
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2009 Free Software Foundation
+ Copyright (C) 2009
, 2010, 2011, 2012
Free Software Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,7
+17,6
@@
#include <config.h>
#include "dialog-common.h"
#include <config.h>
#include "dialog-common.h"
-#include <language/syntax-string-source.h>
#include <ui/syntax-gen.h>
#include <libpspp/str.h>
#include <ui/syntax-gen.h>
#include <libpspp/str.h>
@@
-30,6
+29,7
@@
#include "psppire-var-view.h"
#include "executor.h"
#include "psppire-var-view.h"
#include "executor.h"
+#include "builder-wrapper.h"
#include "helper.h"
#include <gtk/gtk.h>
#include "helper.h"
#include <gtk/gtk.h>
@@
-74,7
+74,7
@@
dialog_state_valid (gpointer data)
GtkTreeModel *liststore =
gtk_tree_view_get_model (GTK_TREE_VIEW (corr->variables));
GtkTreeModel *liststore =
gtk_tree_view_get_model (GTK_TREE_VIEW (corr->variables));
- if (gtk_tree_model_iter_n_children (liststore, NULL) >
=
1)
+ if (gtk_tree_model_iter_n_children (liststore, NULL) > 1)
return TRUE;
return FALSE;
return TRUE;
return FALSE;
@@
-83,13
+83,12
@@
dialog_state_valid (gpointer data)
/* Pops up the Correlation dialog box */
void
/* Pops up the Correlation dialog box */
void
-correlation_dialog (
GObject *o, gpointer data
)
+correlation_dialog (
PsppireDataWindow *de
)
{
struct correlation rd;
gint response;
GtkBuilder *xml = builder_new ("correlation.ui");
{
struct correlation rd;
gint response;
GtkBuilder *xml = builder_new ("correlation.ui");
- PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (data);
PsppireVarStore *vs;
GtkWidget *dialog = get_widget_assert (xml, "correlation-dialog");
PsppireVarStore *vs;
GtkWidget *dialog = get_widget_assert (xml, "correlation-dialog");
@@
-119,22
+118,10
@@
correlation_dialog (GObject *o, gpointer data)
switch (response)
{
case GTK_RESPONSE_OK:
switch (response)
{
case GTK_RESPONSE_OK:
- {
- gchar *syntax = generate_syntax (&rd);
-
- struct getl_interface *sss = create_syntax_string_source (syntax);
- execute_syntax (sss);
-
- g_free (syntax);
- }
+ g_free (execute_syntax_string (de, generate_syntax (&rd)));
break;
case PSPPIRE_RESPONSE_PASTE:
break;
case PSPPIRE_RESPONSE_PASTE:
- {
- gchar *syntax = generate_syntax (&rd);
- paste_syntax_in_new_window (syntax);
-
- g_free (syntax);
- }
+ g_free (paste_syntax_to_window (generate_syntax (&rd)));
break;
default:
break;
break;
default:
break;