X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-indep-samps.c;fp=src%2Fui%2Fgui%2Fpsppire-dialog-action-indep-samps.c;h=b13c444c5b9713967eb42eec1b9fd2752d9b335d;hb=3dd0f6ae0d5eb73a2270a243e443c4ae03c2c16e;hp=de0d373be97e9a0e32bb64fbb4c6dc9661ec67b1;hpb=7d4424f00e2a81c219dc02b050dea4bf2091e765;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-indep-samps.c b/src/ui/gui/psppire-dialog-action-indep-samps.c index de0d373be9..b13c444c5b 100644 --- a/src/ui/gui/psppire-dialog-action-indep-samps.c +++ b/src/ui/gui/psppire-dialog-action-indep-samps.c @@ -96,7 +96,7 @@ value_entry_contains_invalid (PsppireValueEntry *ve, const struct variable *var) { gboolean result = FALSE; - if (var) + if (var) { union value val; const int width = var_get_width (var); @@ -157,9 +157,9 @@ run_define_groups (PsppireDialogActionIndepSamps *act) PsppireDialogAction *da = PSPPIRE_DIALOG_ACTION (act); GtkWidget *parent1 = gtk_widget_get_parent (act->dg_table1); GtkWidget *parent2 = gtk_widget_get_parent (act->dg_table2); - + g_return_if_fail (act->grp_var); - + if (parent1) gtk_container_remove (GTK_CONTAINER (parent1), act->dg_table1); @@ -307,7 +307,7 @@ psppire_dialog_action_indep_samps_activate (PsppireDialogAction *a) g_hash_table_insert (thing, a, xml); } - pda->dialog = get_widget_assert (xml,"independent-samples-dialog"); + pda->dialog = get_widget_assert (xml,"independent-samples-dialog"); pda->source = get_widget_assert (xml, "indep-samples-treeview1"); act->define_groups_button = get_widget_assert (xml, "define-groups-button"); act->options_button = get_widget_assert (xml, "indep-samples-options-button"); @@ -376,16 +376,16 @@ generate_syntax (const PsppireDialogAction *a) g_string_append (str, "("); { - const union value *val = + const union value *val = (act->group_defn == GROUPS_VALUES) ? &act->grp_val[0] : &act->cut_point; - struct string strx; + struct string strx; ds_init_empty (&strx); syntax_gen_value (&strx, val, var_get_width (act->grp_var), var_get_print_format (act->grp_var)); - + g_string_append (str, ds_cstr (&strx)); ds_destroy (&strx); } @@ -397,10 +397,10 @@ generate_syntax (const PsppireDialogAction *a) { struct string strx; ds_init_empty (&strx); - + syntax_gen_value (&strx, &act->grp_val[1], var_get_width (act->grp_var), var_get_print_format (act->grp_var)); - + g_string_append (str, ds_cstr (&strx)); ds_destroy (&strx); }