X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdata-editor.c;h=96f42cc263982657d54bbcfe490711ff8fe63b0c;hb=4d688b2e05945b3e3c733a005fb2775110ebb78b;hp=038b9685f7242be8fc26bf052e33f618c6b2bfb4;hpb=76e26953733467df70549340a7d1f331310dccc0;p=pspp-builds.git diff --git a/src/ui/gui/data-editor.c b/src/ui/gui/data-editor.c index 038b9685..96f42cc2 100644 --- a/src/ui/gui/data-editor.c +++ b/src/ui/gui/data-editor.c @@ -46,6 +46,7 @@ #include "frequencies-dialog.h" #include "examine-dialog.h" #include "dict-display.h" +#include "regression-dialog.h" #include "clipboard.h" #include "oneway-anova-dialog.h" @@ -732,6 +733,14 @@ new_data_editor (void) G_CALLBACK (examine_dialog), de); + de->invoke_regression_dialog = + gtk_action_new ("regression-dialog", + _("Linear _Regression"), + _("Estimate parameters of the linear model"), + "pspp-regression"); + + g_signal_connect (de->invoke_regression_dialog, "activate", + G_CALLBACK (regression_dialog), de); e->window = GTK_WINDOW (get_widget_assert (de->xml, "data_editor")); @@ -903,6 +912,9 @@ new_data_editor (void) get_widget_assert (de->xml, "analyze_explore") ); + gtk_action_connect_proxy (de->invoke_regression_dialog, + get_widget_assert (de->xml, "linear-regression") + ); g_signal_connect (get_widget_assert (de->xml,"help_about"), "activate",