- GtkBuilder *xml = builder_new ("variable-info.ui");
- act->output = psppire_output_view_new (
- GTK_LAYOUT (get_widget_assert (xml, "layout1")), NULL, NULL, NULL);
-
- pda->dialog = get_widget_assert (xml, "variable-info-dialog");
- pda->source = get_widget_assert (xml, "treeview2");
-
- g_object_set (pda->source,
- "selection-mode", GTK_SELECTION_MULTIPLE,
- NULL);
+ GHashTable *thing = psppire_dialog_action_get_hash_table (pda);
+ GtkBuilder *xml = g_hash_table_lookup (thing, a);
+ if (!xml)
+ {
+ xml = builder_new ("variable-info.ui");
+ g_hash_table_insert (thing, a, xml);