diff --git a/ChangeLog b/ChangeLog index d72cd953b0..025e60edb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-24 David Hampton + + * src/gnome-utils/ui/gnc-main-window-ui.xml: + * src/gnome-utils/gnc-main-window.c: Remove unnecessary menu + item. The same functionality exists in the "Menus & Toolbars" + preference panel. + 2006-02-24 Christian Stimming * src/import-export/import-account-matcher.h: Let the account diff --git a/src/gnome-utils/gnc-main-window.c b/src/gnome-utils/gnc-main-window.c index f564e50315..5f77720066 100644 --- a/src/gnome-utils/gnc-main-window.c +++ b/src/gnome-utils/gnc-main-window.c @@ -124,7 +124,6 @@ static void gnc_main_window_cmd_edit_cut (GtkAction *action, GncMainWindow *wind static void gnc_main_window_cmd_edit_copy (GtkAction *action, GncMainWindow *window); static void gnc_main_window_cmd_edit_paste (GtkAction *action, GncMainWindow *window); static void gnc_main_window_cmd_edit_preferences (GtkAction *action, GncMainWindow *window); -static void gnc_main_window_cmd_edit_accelerator_keys (GtkToggleAction *action, GncMainWindow *window); static void gnc_main_window_cmd_view_refresh (GtkAction *action, GncMainWindow *window); static void gnc_main_window_cmd_view_toolbar (GtkAction *action, GncMainWindow *window); static void gnc_main_window_cmd_view_summary (GtkAction *action, GncMainWindow *window); @@ -305,9 +304,6 @@ static guint gnc_menu_n_actions = G_N_ELEMENTS (gnc_menu_actions); * code. */ static GtkToggleActionEntry toggle_actions [] = { - { "EditAcceleratorKeysAction", NULL, N_("Learn Accelerator Keys"), NULL, - N_("Learn new accelerator key settings."), - G_CALLBACK (gnc_main_window_cmd_edit_accelerator_keys), FALSE }, { "ViewToolbarAction", NULL, N_("_Toolbar"), NULL, N_("Show/hide the toolbar on this window"), G_CALLBACK (gnc_main_window_cmd_view_toolbar), TRUE }, @@ -2770,17 +2766,6 @@ gnc_main_window_cmd_edit_preferences (GtkAction *action, GncMainWindow *window) gnc_preferences_dialog (); } -static void -gnc_main_window_cmd_edit_accelerator_keys( GtkToggleAction *action, GncMainWindow *window ) -{ - GtkSettings* settings; - - settings = gtk_settings_get_default(); - g_object_set(G_OBJECT(settings), - "gtk-can-change-accels", gtk_toggle_action_get_active(action), - (gchar*)NULL); -} - static void gnc_main_window_cmd_view_refresh (GtkAction *action, GncMainWindow *window) { diff --git a/src/gnome-utils/ui/gnc-main-window-ui.xml b/src/gnome-utils/ui/gnc-main-window-ui.xml index 8f8f751e3b..293810fd84 100644 --- a/src/gnome-utils/ui/gnc-main-window-ui.xml +++ b/src/gnome-utils/ui/gnc-main-window-ui.xml @@ -45,7 +45,6 @@ -