X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-examine.c;h=12627bd7a5f76b7a72972b3c1e4d9a09a891958b;hb=96994a54e60e9c95b8bba54c2281acf7059b1203;hp=a88517890622b6ad96cfb29dbefe4a35febc7a2c;hpb=369c24f1d085a41ec274ebae5fc198fcee567653;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-examine.c b/src/ui/gui/psppire-dialog-action-examine.c index a885178906..12627bd7a5 100644 --- a/src/ui/gui/psppire-dialog-action-examine.c +++ b/src/ui/gui/psppire-dialog-action-examine.c @@ -55,16 +55,16 @@ run_stats_dialog (PsppireDialogActionExamine *ed) response = psppire_dialog_run (PSPPIRE_DIALOG (ed->stats_dialog)); - if ( response == PSPPIRE_RESPONSE_CONTINUE ) + if (response == PSPPIRE_RESPONSE_CONTINUE) { ed->stats = 0; - if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ed->descriptives_button) )) + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ed->descriptives_button))) ed->stats |= STAT_DESCRIPTIVES; - if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ed->extremes_button) )) + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ed->extremes_button))) ed->stats |= STAT_EXTREMES; - if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ed->percentiles_button) )) + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ed->percentiles_button))) ed->stats |= STAT_PERCENTILES; } } @@ -92,7 +92,7 @@ run_opts_dialog (PsppireDialogActionExamine *ed) response = psppire_dialog_run (PSPPIRE_DIALOG (ed->opts_dialog)); - if ( response == PSPPIRE_RESPONSE_CONTINUE ) + if (response == PSPPIRE_RESPONSE_CONTINUE) { if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ed->listwise))) ed->opts = OPT_LISTWISE; @@ -118,7 +118,7 @@ generate_syntax (const PsppireDialogAction *act) g_string_append (str, "\n\t/VARIABLES="); psppire_var_view_append_names (PSPPIRE_VAR_VIEW (ed->variables), 0, str); - if ( 0 < gtk_tree_model_iter_n_children + if (0 < gtk_tree_model_iter_n_children (gtk_tree_view_get_model (GTK_TREE_VIEW (ed->factors)), NULL)) { g_string_append (str, "\n\tBY "); @@ -126,24 +126,24 @@ generate_syntax (const PsppireDialogAction *act) } label = gtk_entry_get_text (GTK_ENTRY (ed->id_var)); - if ( 0 != strcmp (label, "") ) + if (0 != strcmp (label, "")) { g_string_append (str, "\n\t/ID = "); g_string_append (str, label); } - if ( ed->stats & (STAT_DESCRIPTIVES | STAT_EXTREMES)) + if (ed->stats & (STAT_DESCRIPTIVES | STAT_EXTREMES)) { g_string_append (str, "\n\t/STATISTICS ="); - if ( ed->stats & STAT_DESCRIPTIVES) + if (ed->stats & STAT_DESCRIPTIVES) g_string_append (str, " DESCRIPTIVES"); - if ( ed->stats & STAT_EXTREMES) + if (ed->stats & STAT_EXTREMES) g_string_append (str, " EXTREME"); } - if ( ed->stats & STAT_PERCENTILES) + if (ed->stats & STAT_PERCENTILES) g_string_append (str, "\n\t/PERCENTILES");