From ce0e898dc6506c5d980e803e7bdcd27a1752fca6 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 5 Oct 2013 12:15:39 +0200 Subject: [PATCH] Remove unncessary property assignments --- src/ui/gui/psppire-dialog-action-descriptives.c | 2 +- src/ui/gui/psppire-dialog-action-examine.c | 4 ---- src/ui/gui/psppire-dialog-action-means.c | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ui/gui/psppire-dialog-action-descriptives.c b/src/ui/gui/psppire-dialog-action-descriptives.c index 4510917266..1b5b7a5781 100644 --- a/src/ui/gui/psppire-dialog-action-descriptives.c +++ b/src/ui/gui/psppire-dialog-action-descriptives.c @@ -206,7 +206,7 @@ psppire_dialog_action_descriptives_activate (GtkAction *a) pda->source = get_widget_assert (xml, "all-variables"); act->variables = get_widget_assert (xml, "stat-variables"); - g_object_set (pda->source, "model", pda->dict, + g_object_set (pda->source, "predicate", var_is_numeric, NULL); psppire_checkbox_treeview_populate (PSPPIRE_CHECKBOX_TREEVIEW (stats_treeview), diff --git a/src/ui/gui/psppire-dialog-action-examine.c b/src/ui/gui/psppire-dialog-action-examine.c index 7698adfe6b..a01d4536f8 100644 --- a/src/ui/gui/psppire-dialog-action-examine.c +++ b/src/ui/gui/psppire-dialog-action-examine.c @@ -226,10 +226,6 @@ psppire_dialog_action_examine_activate (GtkAction *a) act->pairwise = get_widget_assert (xml, "radiobutton2"); act->report = get_widget_assert (xml, "radiobutton3"); - g_object_set (pda->source, - "model", pda->dict, - NULL); - psppire_selector_set_allow (PSPPIRE_SELECTOR (dep_sel), numeric_only); psppire_dialog_action_set_valid_predicate (pda, (void *) dialog_state_valid); diff --git a/src/ui/gui/psppire-dialog-action-means.c b/src/ui/gui/psppire-dialog-action-means.c index 1ec9fccffb..64d0f32876 100644 --- a/src/ui/gui/psppire-dialog-action-means.c +++ b/src/ui/gui/psppire-dialog-action-means.c @@ -110,7 +110,6 @@ psppire_dialog_action_means_activate (GtkAction *a) act->variables = get_widget_assert (xml, "stat-variables"); g_object_set (pda->source, - "model", pda->dict, "predicate", var_is_numeric, NULL); -- 2.30.2