de->toggle_value_labels =
gtk_toggle_action_new ("toggle-value-labels",
- _("Labels"),
+ _("_Labels"),
_("Show/hide value labels"),
"pspp-value-labels");
de->insert_variable =
gtk_action_new ("insert-variable",
- _("Insert Variable"),
+ _("Insert _Variable"),
_("Create a new variable at the current position"),
"pspp-insert-variable");
de->insert_case =
gtk_action_new ("insert-case",
- _("Insert Case"),
+ _("Insert Ca_se"),
_("Create a new case at the current position"),
"pspp-insert-case");
de->invoke_goto_dialog =
gtk_action_new ("goto-case-dialog",
- _("Goto Case"),
+ _("_Goto Case"),
_("Jump to a Case in the Data Sheet"),
"gtk-jump-to");
de->invoke_weight_cases_dialog =
gtk_action_new ("weight-cases-dialog",
- _("Weights"),
+ _("_Weights"),
_("Weight cases by variable"),
"pspp-weight-cases");
de->invoke_transpose_dialog =
gtk_action_new ("transpose-dialog",
- _("Transpose"),
+ _("_Transpose"),
_("Transpose the cases with the variables"),
NULL);
de->invoke_split_file_dialog =
gtk_action_new ("split-file-dialog",
- _("Split"),
+ _("S_plit"),
_("Split the active file"),
"pspp-split-file");
de->invoke_sort_cases_dialog =
gtk_action_new ("sort-cases-dialog",
- _("Sort"),
+ _("_Sort"),
_("Sort cases in the active file"),
"pspp-sort-cases");
de->invoke_select_cases_dialog =
gtk_action_new ("select-cases-dialog",
- _("Select Cases"),
+ _("Select _Cases"),
_("Select cases from the active file"),
"pspp-select-cases");
de->invoke_compute_dialog =
gtk_action_new ("compute-dialog",
- _("Compute"),
+ _("_Compute"),
_("Compute new values for a variable"),
"pspp-compute");
de->invoke_comments_dialog =
gtk_action_new ("commments-dialog",
- _("Data File Comments"),
+ _("Data File _Comments"),
_("Commentary text for the data file"),
NULL);
de->invoke_find_dialog =
gtk_action_new ("find-dialog",
- _("Find"),
+ _("_Find"),
_("Find Case"),
"gtk-find");
de->invoke_variable_info_dialog =
gtk_action_new ("variable-info-dialog",
- _("Variables"),
+ _("_Variables"),
_("Jump to Variable"),
"pspp-goto-variable");
de->save_as_portable =
! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button_sys));
+ if ( de->save_as_portable)
+ append_filename_suffix (de, ".por");
+ else
+ append_filename_suffix (de, ".sav");
+
save_file (de);
window_set_name_from_filename (e, de->file_name);
GtkWidget *clear_variable =
gtk_menu_item_new_with_label (_("Clear"));
- gtk_action_connect_proxy (de->insert_variable,
- insert_variable );
-
gtk_action_connect_proxy (de->delete_variables,
clear_variable );
G_CALLBACK (psppire_data_editor_sort_descending),
de->data_editor);
+ g_signal_connect_swapped (G_OBJECT (insert_variable), "activate",
+ G_CALLBACK (gtk_action_activate),
+ de->insert_variable);
+
+
gtk_menu_shell_append (GTK_MENU_SHELL (menu), sort_descending);
gtk_widget_show_all (menu);
gtk_menu_item_new_with_label (_("Clear"));
- gtk_action_connect_proxy (de->insert_case,
- insert_case);
-
-
gtk_action_connect_proxy (de->delete_cases,
delete_case);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), insert_case);
+ g_signal_connect_swapped (G_OBJECT (insert_case), "activate",
+ G_CALLBACK (gtk_action_activate),
+ de->insert_case);
+
gtk_menu_shell_append (GTK_MENU_SHELL (menu),
gtk_separator_menu_item_new ());