From: John Darrington Date: Sat, 11 Jul 2020 04:37:36 +0000 (+0200) Subject: Histogram Dialog: Allow only numeric variables to be selected X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40bedd131288dda1c09eab3442e133db6965523b;p=pspp Histogram Dialog: Allow only numeric variables to be selected --- diff --git a/src/ui/gui/psppire-dialog-action-histogram.c b/src/ui/gui/psppire-dialog-action-histogram.c index e6a6fe733e..f99000ac28 100644 --- a/src/ui/gui/psppire-dialog-action-histogram.c +++ b/src/ui/gui/psppire-dialog-action-histogram.c @@ -69,6 +69,9 @@ psppire_dialog_action_histogram_activate (PsppireDialogAction *a, GVariant *para pda->dialog = get_widget_assert (xml, "histogram-dialog"); pda->source = get_widget_assert (xml, "dict-view"); + g_object_set (pda->source, + "predicate", var_is_numeric, NULL); + act->variable = get_widget_assert (xml, "entry1"); act->curve = get_widget_assert (xml, "curve"); @@ -120,4 +123,3 @@ static void psppire_dialog_action_histogram_init (PsppireDialogActionHistogram *act) { } -