+2008-05-08 John Darrington <john@darrington.wattle.id.au>
+
+ * data-editor.c: In popup menus, connect the Insert Variable and
+ Insert Case callbacks manually, instead of relying on
+ gtk_action_connect_proxy, as the latter connects a label with a
+ mnemonic which is inappropriate.
+
2008-05-06 Ben Pfaff <blp@gnu.org>
Bug #23127. Reviewed by John Darrington. Tested by Jason Stover,
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 ());