/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2007, 2012 Free Software Foundation
+ Copyright (C) 2007, 2012, 2015 Free Software Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
void
tt_options_dialog_destroy (struct tt_options_dialog *tto)
{
+ if (tto == NULL)
+ return;
gtk_container_remove (GTK_CONTAINER (tto->box), tto->confidence);
g_object_unref (tto->xml);
g_free (tto);
void
tt_options_dialog_append_syntax (const struct tt_options_dialog *tto, GString *str)
{
- g_string_append (str, "\t/MISSING=");
+ struct string dss;
+ ds_init_empty (&dss);
- if ( tto->excl == EXCL_ANALYSIS )
- g_string_append (str, "ANALYSIS");
+ ds_put_cstr (&dss, "\t/MISSING=");
+
+ if (tto->excl == EXCL_ANALYSIS)
+ ds_put_cstr (&dss, "ANALYSIS");
else
- g_string_append (str, "LISTWISE");
+ ds_put_cstr (&dss, "LISTWISE");
+
+ ds_put_c_format (&dss, "\n\t/CRITERIA=CI(%g)",
+ tto->confidence_interval/100.0);
+ g_string_append (str, ds_cstr (&dss));
- g_string_append_printf (str, "\n\t/CRITERIA=CIN(%g)",
- tto->confidence_interval/100.0);
+ ds_destroy (&dss);
}