Show only numeric variables in correlations dialog
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 14 Dec 2009 18:21:51 +0000 (19:21 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 14 Dec 2009 18:21:51 +0000 (19:21 +0100)
src/ui/gui/correlation-dialog.c

index 19bb7a7001e0ca31541251ea37f8b1a5dab67990..ff6a254552345907a84c3ae4f371aaa1acdf47a8 100644 (file)
@@ -100,7 +100,10 @@ correlation_dialog (GObject *o, gpointer data)
   gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de));
 
   g_object_get (vs, "dictionary", &rd.dict, NULL);
-  g_object_set (source, "model", rd.dict, NULL);
+  g_object_set (source,
+               "model", rd.dict, 
+               "predicate", var_is_numeric,
+               NULL);
 
   rd.variables = get_widget_assert (xml, "psppire-var-view1");
   rd.significant = get_widget_assert (xml, "button-flag-significants");