projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable deletion of variables from var sheet
[pspp]
/
src
/
ui
/
gui
/
psppire-dialog-action-tt1s.c
diff --git
a/src/ui/gui/psppire-dialog-action-tt1s.c
b/src/ui/gui/psppire-dialog-action-tt1s.c
index 0d00f06ea96135fc4fcea780d3d4767a30b29513..d3ac045273a4b3107354100ef63d14ff63e84564 100644
(file)
--- a/
src/ui/gui/psppire-dialog-action-tt1s.c
+++ b/
src/ui/gui/psppire-dialog-action-tt1s.c
@@
-32,7
+32,7
@@
G_DEFINE_TYPE (PsppireDialogActionTt1s, psppire_dialog_action_tt1s, PSPPIRE_TYPE
static char *
static char *
-generate_syntax (PsppireDialogAction *act)
+generate_syntax (
const
PsppireDialogAction *act)
{
PsppireDialogActionTt1s *d = PSPPIRE_DIALOG_ACTION_TT1S (act);
gchar *text;
{
PsppireDialogActionTt1s *d = PSPPIRE_DIALOG_ACTION_TT1S (act);
gchar *text;
@@
-103,12
+103,19
@@
refresh (PsppireDialogAction *rd_)
}
static void
}
static void
-psppire_dialog_action_tt1s_activate (
Gtk
Action *a)
+psppire_dialog_action_tt1s_activate (
PsppireDialog
Action *a)
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionTt1s *act = PSPPIRE_DIALOG_ACTION_TT1S (a);
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionTt1s *act = PSPPIRE_DIALOG_ACTION_TT1S (a);
- GtkBuilder *xml = builder_new ("t-test.ui");
+ GHashTable *thing = psppire_dialog_action_get_hash_table (pda);
+ GtkBuilder *xml = g_hash_table_lookup (thing, a);
+ if (!xml)
+ {
+ xml = builder_new ("t-test.ui");
+ g_hash_table_insert (thing, a, xml);
+ }
+
GtkWidget *options_button = get_widget_assert (xml, "button1");
pda->dialog = get_widget_assert (xml, "t-test-one-sample-dialog");
GtkWidget *options_button = get_widget_assert (xml, "button1");
pda->dialog = get_widget_assert (xml, "t-test-one-sample-dialog");
@@
-128,11
+135,6
@@
psppire_dialog_action_tt1s_activate (GtkAction *a)
g_signal_connect_swapped (options_button, "clicked",
G_CALLBACK (tt_options_dialog_run), act->opt);
g_signal_connect_swapped (options_button, "clicked",
G_CALLBACK (tt_options_dialog_run), act->opt);
-
- g_object_unref (xml);
-
- if (PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_tt1s_parent_class)->activate)
- PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_tt1s_parent_class)->activate (pda);
}
static void
}
static void