X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-k-independent.c;h=e959a093273db7b12c58330d4f71f2c6d49fee77;hb=f814726c9e2aecebf9f7da423f6990263b3dedf9;hp=3a590f95d1f6d6aa1717783521dcdd6165055b60;hpb=facb4a1ad3c9e8b2cdf55824680eed2afb91aebe;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-k-independent.c b/src/ui/gui/psppire-dialog-action-k-independent.c index 3a590f95d1..e959a09327 100644 --- a/src/ui/gui/psppire-dialog-action-k-independent.c +++ b/src/ui/gui/psppire-dialog-action-k-independent.c @@ -39,7 +39,7 @@ static void psppire_dialog_action_k_independent_class_init (PsppireDialogAc G_DEFINE_TYPE (PsppireDialogActionKIndependent, psppire_dialog_action_k_independent, PSPPIRE_TYPE_DIALOG_ACTION); -const static char *keyword[n_KIDS] = +static const char *keyword[n_KIDS] = { "KRUSKAL-WALLIS", "MEDIAN" @@ -57,7 +57,7 @@ generate_syntax (const PsppireDialogAction *act) { g_string_append (string, "\n\t"); - if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (kid->checkbutton[i]))) + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (kid->checkbutton[i]))) { g_string_append_printf (string, "/%s = ", keyword[i]); psppire_var_view_append_names (PSPPIRE_VAR_VIEW (kid->vars_treeview), @@ -95,10 +95,10 @@ dialog_state_valid (gpointer data) GtkTreeIter notused; - if ( !gtk_tree_model_get_iter_first (vars, ¬used) ) + if (!gtk_tree_model_get_iter_first (vars, ¬used)) return FALSE; - if ( 0 == strcmp ("", gtk_entry_get_text (GTK_ENTRY (kid->groupvar_entry)))) + if (0 == strcmp ("", gtk_entry_get_text (GTK_ENTRY (kid->groupvar_entry)))) return FALSE; gboolean method_set = FALSE; @@ -175,7 +175,7 @@ psppire_dialog_action_k_independent_activate (PsppireDialogAction *a, GVariant * PsppireDialogAction *pda = PSPPIRE_DIALOG_ACTION (a); PsppireDialogActionKIndependent *kid = PSPPIRE_DIALOG_ACTION_K_INDEPENDENT (a); - GtkBuilder *xml = builder_new ( "k-independent.ui"); + GtkBuilder *xml = builder_new ("k-independent.ui"); pda->dialog = get_widget_assert (xml, "k-independent-dialog"); pda->source = get_widget_assert (xml, "k-independent-treeview1");