GObjectConstructParam *);
static void psppire_var_type_dialog_set_state (PsppireVarTypeDialog *);
+static void psppire_var_type_dialog_set_format (PsppireVarTypeDialog *dialog,
+ const struct fmt_spec *format);
+
static int find_format (const struct fmt_spec *target,
const struct fmt_spec formats[], int n_formats);
static int find_format_type (int target, const int types[], int n_types);
}
}
-void
+static void
psppire_var_type_dialog_set_format (PsppireVarTypeDialog *dialog,
const struct fmt_spec *format)
{
psppire_var_type_dialog_set_state (dialog);
}
-const struct fmt_spec *
+static const struct fmt_spec *
psppire_var_type_dialog_get_format (const PsppireVarTypeDialog *dialog)
{
return &dialog->fmt_l;
dialog = psppire_var_type_dialog_new (format);
gtk_window_set_transient_for (GTK_WINDOW (dialog), parent_window);
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
gtk_widget_show (GTK_WIDGET (dialog));
if (psppire_dialog_run (PSPPIRE_DIALOG (dialog)) == GTK_RESPONSE_OK)
*format = *psppire_var_type_dialog_get_format (dialog);
+
+ gtk_widget_destroy (GTK_WIDGET (dialog));
}