projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split File Dialog: Convert to PsppireDialogAction
[pspp]
/
src
/
ui
/
gui
/
psppire-dialog-action-examine.c
diff --git
a/src/ui/gui/psppire-dialog-action-examine.c
b/src/ui/gui/psppire-dialog-action-examine.c
index bba35cf12427c6a067b0b36c23e6e3d4f48bcc0b..990610c383aab872693e14aa4f46931421a27b73 100644
(file)
--- a/
src/ui/gui/psppire-dialog-action-examine.c
+++ b/
src/ui/gui/psppire-dialog-action-examine.c
@@
-198,12
+198,18
@@
dialog_refresh (PsppireDialogAction *da)
}
static void
}
static void
-psppire_dialog_action_examine_activate (
Gtk
Action *a)
+psppire_dialog_action_examine_activate (
PsppireDialog
Action *a)
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionExamine *act = PSPPIRE_DIALOG_ACTION_EXAMINE (a);
{
PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a);
PsppireDialogActionExamine *act = PSPPIRE_DIALOG_ACTION_EXAMINE (a);
- GtkBuilder *xml = builder_new ("examine.ui");
+ GHashTable *thing = psppire_dialog_action_get_hash_table (pda);
+ GtkBuilder *xml = g_hash_table_lookup (thing, a);
+ if (!xml)
+ {
+ xml = builder_new ("examine.ui");
+ g_hash_table_insert (thing, a, xml);
+ }
GtkWidget *stats_button = get_widget_assert (xml, "stats-button");
GtkWidget *opts_button = get_widget_assert (xml, "opts-button");
GtkWidget *stats_button = get_widget_assert (xml, "stats-button");
GtkWidget *opts_button = get_widget_assert (xml, "opts-button");
@@
-255,9
+261,7
@@
psppire_dialog_action_examine_activate (GtkAction *a)
PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_examine_parent_class)->activate (pda);
PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_examine_parent_class)->activate (pda);
-
g_list_free (list);
g_list_free (list);
- g_object_unref (xml);
}
static void
}
static void