X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ft-test-options.c;h=467d4321ff00a416721cb9cecd17c3b935ff7599;hb=refs%2Fbuilds%2F20140208030509%2Fpspp;hp=1caac9c0f7d27224adfa7c8f63c3c3f3046b2b08;hpb=d46430e7458fcd65dfdf7928f52f2d06fa60127d;p=pspp diff --git a/src/ui/gui/t-test-options.c b/src/ui/gui/t-test-options.c index 1caac9c0f7..467d4321ff 100644 --- a/src/ui/gui/t-test-options.c +++ b/src/ui/gui/t-test-options.c @@ -62,7 +62,12 @@ tt_options_dialog_create (GtkWindow *parent) tto->xml = builder_new ("t-test.ui"); tto->confidence = - psppire_scanf_new (_("Confidence Interval: %2d %%"), &tto->conf_percent); + psppire_scanf_new (_("Con_fidence Interval: %2d %%"), &tto->conf_percent); + + g_object_set (tto->confidence, + "use-underline", TRUE, + "mnemonic-widget", psppire_scanf_get_child (PSPPIRE_SCANF (tto->confidence), 0), + NULL); tto->dialog = get_widget_assert (tto->xml, "options-dialog"); @@ -122,14 +127,20 @@ tt_options_dialog_run (struct tt_options_dialog *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=CIN(%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); }