X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-frequencies.c;h=490a735f53b7cd7cbda8739b802f04c518887123;hb=fc6620099bbc53762095569d5356b67a81a85402;hp=d0ae660a256c7551bc2a84953baae7600e2f8f32;hpb=d6cbbc8d634fa91f050661355139a4e4697e99ab;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-frequencies.c b/src/ui/gui/psppire-dialog-action-frequencies.c index d0ae660a25..490a735f53 100644 --- a/src/ui/gui/psppire-dialog-action-frequencies.c +++ b/src/ui/gui/psppire-dialog-action-frequencies.c @@ -259,7 +259,13 @@ psppire_dialog_action_frequencies_activate (GtkAction * a) PsppireDialogActionFrequencies *act = PSPPIRE_DIALOG_ACTION_FREQUENCIES (a); PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a); - GtkBuilder *xml = builder_new ("frequencies.ui"); + GHashTable *thing = psppire_dialog_action_get_pointer (pda); + GtkBuilder *xml = g_hash_table_lookup (thing, a); + if (!xml) + { + xml = builder_new ("frequencies.ui"); + g_hash_table_insert (thing, a, xml); + } GtkWidget *stats_treeview = get_widget_assert (xml, "stats-treeview"); GtkWidget *tables_button = get_widget_assert (xml, "tables-button"); @@ -327,10 +333,6 @@ psppire_dialog_action_frequencies_activate (GtkAction * a) act->bar = (get_widget_assert (xml, "bar")); - - g_object_unref (xml); - - act->tables_opts_order = FRQ_AVALUE; act->tables_opts_table = FRQ_TABLE; act->tables_opts_limit = 50;