From: John Darrington Date: Mon, 25 Jul 2011 17:15:20 +0000 (+0200) Subject: K-means dialog only should accept numeric variables X-Git-Tag: v0.7.9~208 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaa9491b6874743175c7b5f814872283df0b94be;p=pspp-builds.git K-means dialog only should accept numeric variables --- diff --git a/src/ui/gui/k-means-dialog.c b/src/ui/gui/k-means-dialog.c index 1de9b74c..0b2f00fa 100644 --- a/src/ui/gui/k-means-dialog.c +++ b/src/ui/gui/k-means-dialog.c @@ -113,14 +113,13 @@ k_means_dialog (PsppireDataWindow *dw) gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (fd.de)); g_object_get (vs, "dictionary", &fd.dict, NULL); - g_object_set (source, "model", fd.dict, NULL); + g_object_set (source, "model", fd.dict, + "predicate", var_is_numeric, + NULL); psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog), dialog_state_valid, &fd); - psppire_selector_set_allow (PSPPIRE_SELECTOR (get_widget_assert (fd.xml, "psppire-selector1")), - numeric_only); - response = psppire_dialog_run (PSPPIRE_DIALOG (dialog)); switch (response)