X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdata-editor.c;h=b2c506ddfa644597a166485055465110b8396a54;hb=cecaf561d11939de82a6598324376b8cf8225fd5;hp=5efa3ca6ada343af791439671f04f542cc46b3d2;hpb=b06c888cf2e8c126b04d4678120439533a5086e5;p=pspp-builds.git diff --git a/src/ui/gui/data-editor.c b/src/ui/gui/data-editor.c index 5efa3ca6..b2c506dd 100644 --- a/src/ui/gui/data-editor.c +++ b/src/ui/gui/data-editor.c @@ -36,6 +36,7 @@ #include "transpose-dialog.h" #include "sort-cases-dialog.h" #include "compute-dialog.h" +#include "comments-dialog.h" #include "variable-info-dialog.h" #include "dict-display.h" @@ -56,7 +57,6 @@ static void register_data_editor_actions (struct data_editor *de); static void insert_variable (GtkCheckMenuItem *m, gpointer data); - /* Switch between the VAR SHEET and the DATA SHEET */ static gboolean click2column (GtkWidget *w, gint col, gpointer data); @@ -260,6 +260,15 @@ new_data_editor (void) g_signal_connect (de->invoke_compute_dialog, "activate", G_CALLBACK (compute_dialog), de); + de->invoke_comments_dialog = + gtk_action_new ("commments-dialog", + _("Data File Comments"), + _("Commentary text for the data file"), + NULL); + + g_signal_connect (de->invoke_comments_dialog, "activate", + G_CALLBACK (comments_dialog), de); + de->invoke_variable_info_dialog = gtk_action_new ("variable-info-dialog", _("Variables"), @@ -375,11 +384,14 @@ new_data_editor (void) get_widget_assert (de->xml, "transform_compute") ); + gtk_action_connect_proxy (de->invoke_comments_dialog, + get_widget_assert (de->xml, "utilities_comments") + ); + gtk_action_connect_proxy (de->invoke_variable_info_dialog, get_widget_assert (de->xml, "utilities_variables") ); - g_signal_connect (get_widget_assert (de->xml,"help_about"), "activate", G_CALLBACK (about_new),