X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-means.c;h=807d3fc38b9c6c9709c04884b4e279eebbfa0527;hb=58c762effe6bbe1ee418b57a1f461bbd33173bd2;hp=81e9bb905216d1f414840d7b365b7ff118def8cf;hpb=e2da62d735c597afeef2e0e9b36e5a4a83d7da94;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-means.c b/src/ui/gui/psppire-dialog-action-means.c index 81e9bb9052..807d3fc38b 100644 --- a/src/ui/gui/psppire-dialog-action-means.c +++ b/src/ui/gui/psppire-dialog-action-means.c @@ -100,6 +100,8 @@ psppire_dialog_action_means_activate (GtkAction *a) GtkBuilder *xml = builder_new ("means.ui"); GtkWidget *vb = get_widget_assert (xml, "alignment3"); + GtkWidget *selector = get_widget_assert (xml, "layer-selector"); + act->layer = psppire_means_layer_new (); gtk_container_add (GTK_CONTAINER (vb), act->layer); gtk_widget_show (act->layer); @@ -112,7 +114,10 @@ psppire_dialog_action_means_activate (GtkAction *a) "predicate", var_is_numeric, NULL); - psppire_means_layer_set_source (PSPPIRE_MEANS_LAYER (act->layer), pda->source); + g_object_set (selector, + "dest-widget", act->layer, + NULL); + psppire_dialog_action_set_valid_predicate (pda, (void *) dialog_state_valid); psppire_dialog_action_set_refresh (pda, dialog_refresh);