projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/stable'
[pspp-builds.git]
/
src
/
ui
/
gui
/
t-test-independent-samples-dialog.c
diff --git
a/src/ui/gui/t-test-independent-samples-dialog.c
b/src/ui/gui/t-test-independent-samples-dialog.c
index a54a94addccebf7bf758a1d4e848cf650d126338..f5df9f36e3004533789b74a78ae16670f57baab5 100644
(file)
--- a/
src/ui/gui/t-test-independent-samples-dialog.c
+++ b/
src/ui/gui/t-test-independent-samples-dialog.c
@@
-1,5
+1,5
@@
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2007 Free Software Foundation
+ Copyright (C) 2007
, 2009
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,12
+17,11
@@
#include <config.h>
#include <config.h>
-#include <glade/glade.h>
#include <gtk/gtk.h>
#include "t-test-independent-samples-dialog.h"
#include "psppire-dict.h"
#include "psppire-var-store.h"
#include <gtk/gtk.h>
#include "t-test-independent-samples-dialog.h"
#include "psppire-dict.h"
#include "psppire-var-store.h"
-#include "
helpe
r.h"
+#include "
executo
r.h"
#include "psppire-data-window.h"
#include "psppire-dialog.h"
#include "dialog-common.h"
#include "psppire-data-window.h"
#include "psppire-dialog.h"
#include "dialog-common.h"
@@
-32,7
+31,7
@@
#include <ui/syntax-gen.h>
#include <language/syntax-string-source.h>
#include <ui/syntax-gen.h>
#include <language/syntax-string-source.h>
-#include "
psppire-syntax-window
.h"
+#include "
helper
.h"
#include <gl/xalloc.h>
#include <gl/xalloc.h>
@@
-91,7
+90,7
@@
tt_groups_dialog_destroy (struct tt_groups_dialog *grps)
}
static struct tt_groups_dialog *
}
static struct tt_groups_dialog *
-tt_groups_dialog_create (G
ladeXML
*xml, GtkWindow *parent)
+tt_groups_dialog_create (G
tkBuilder
*xml, GtkWindow *parent)
{
struct tt_groups_dialog *grps = xmalloc (sizeof (*grps));
{
struct tt_groups_dialog *grps = xmalloc (sizeof (*grps));
@@
-118,8
+117,8
@@
tt_groups_dialog_create (GladeXML *xml, GtkWindow *parent)
gtk_window_set_transient_for (GTK_WINDOW (grps->dialog), parent);
gtk_window_set_transient_for (GTK_WINDOW (grps->dialog), parent);
- grps->val[0] = strdup ("");
- grps->val[1] = strdup ("");
+ grps->val[0] =
x
strdup ("");
+ grps->val[1] =
x
strdup ("");
return grps;
}
return grps;
}
@@
-127,7
+126,7
@@
tt_groups_dialog_create (GladeXML *xml, GtkWindow *parent)
struct tt_indep_samples_dialog
{
struct tt_indep_samples_dialog
{
- G
ladeXML
*xml; /* The xml that generated the widgets */
+ G
tkBuilder
*xml; /* The xml that generated the widgets */
GtkWidget *dialog;
PsppireDict *dict;
GtkWidget *define_groups_button;
GtkWidget *dialog;
PsppireDict *dict;
GtkWidget *define_groups_button;
@@
-341,10
+340,10
@@
run_define_groups (struct tt_indep_samples_dialog *ttd)
grps->group_defn = GROUPS_VALUES;
grps->val[0] =
grps->group_defn = GROUPS_VALUES;
grps->val[0] =
- strdup (gtk_entry_get_text (GTK_ENTRY (grps->grp_entry[0])));
+
x
strdup (gtk_entry_get_text (GTK_ENTRY (grps->grp_entry[0])));
grps->val[1] =
grps->val[1] =
- strdup (gtk_entry_get_text (GTK_ENTRY (grps->grp_entry[1])));
+
x
strdup (gtk_entry_get_text (GTK_ENTRY (grps->grp_entry[1])));
}
else
{
}
else
{
@@
-353,7
+352,7
@@
run_define_groups (struct tt_indep_samples_dialog *ttd)
grps->val[1] = NULL;
grps->val[0] =
grps->val[1] = NULL;
grps->val[0] =
- strdup (gtk_entry_get_text (GTK_ENTRY (grps->cut_point_entry)));
+
x
strdup (gtk_entry_get_text (GTK_ENTRY (grps->cut_point_entry)));
}
psppire_dialog_notify_change (PSPPIRE_DIALOG (ttd->dialog));
}
psppire_dialog_notify_change (PSPPIRE_DIALOG (ttd->dialog));
@@
-396,7
+395,7
@@
t_test_independent_samples_dialog (GObject *o, gpointer data)
PsppireVarStore *vs = NULL;
PsppireVarStore *vs = NULL;
- G
ladeXML *xml = XML_NEW ("t-test.glade
");
+ G
tkBuilder *xml = builder_new ("t-test.ui
");
GtkWidget *dict_view =
get_widget_assert (xml, "indep-samples-t-test-treeview1");
GtkWidget *dict_view =
get_widget_assert (xml, "indep-samples-t-test-treeview1");
@@
-427,9
+426,9
@@
t_test_independent_samples_dialog (GObject *o, gpointer data)
gtk_window_set_transient_for (GTK_WINDOW (tt_d.dialog), GTK_WINDOW (de));
gtk_window_set_transient_for (GTK_WINDOW (tt_d.dialog), GTK_WINDOW (de));
- attach_dictionary_to_treeview (GTK_TREE_VIEW (dict_view),
+ g_object_set (dict_view, "dictionary",
vs->dict,
vs->dict,
-
GTK_SELECTION_MULTIPLE,
NULL);
+ NULL);
set_dest_model (GTK_TREE_VIEW (test_variables_treeview), vs->dict);
set_dest_model (GTK_TREE_VIEW (test_variables_treeview), vs->dict);
@@
-475,6
+474,7
@@
t_test_independent_samples_dialog (GObject *o, gpointer data)
case GTK_RESPONSE_OK:
{
gchar *syntax = generate_syntax (&tt_d);
case GTK_RESPONSE_OK:
{
gchar *syntax = generate_syntax (&tt_d);
+
struct getl_interface *sss = create_syntax_string_source (syntax);
execute_syntax (sss);
struct getl_interface *sss = create_syntax_string_source (syntax);
execute_syntax (sss);
@@
-484,13
+484,7
@@
t_test_independent_samples_dialog (GObject *o, gpointer data)
case PSPPIRE_RESPONSE_PASTE:
{
gchar *syntax = generate_syntax (&tt_d);
case PSPPIRE_RESPONSE_PASTE:
{
gchar *syntax = generate_syntax (&tt_d);
-
- GtkWidget *se = psppire_syntax_window_new ();
-
- gtk_text_buffer_insert_at_cursor (PSPPIRE_SYNTAX_WINDOW (se)->buffer, syntax, -1);
-
- gtk_widget_show (se);
-
+ paste_syntax_in_new_window (syntax);
g_free (syntax);
}
break;
g_free (syntax);
}
break;