[Gnucash-changes] r13383 - gnucash/trunk - Remove unnecessary menu item. The same functionality exists in the

David Hampton hampton at cvs.gnucash.org
Fri Feb 24 17:58:28 EST 2006


Author: hampton
Date: 2006-02-24 17:58:28 -0500 (Fri, 24 Feb 2006)
New Revision: 13383
Trac: http://svn.gnucash.org/trac/changeset/13383

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
   gnucash/trunk/src/gnome-utils/ui/gnc-main-window-ui.xml
Log:
Remove unnecessary menu item. The same functionality exists in the
"Menus & Toolbars" preference panel.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-02-24 22:22:44 UTC (rev 13382)
+++ gnucash/trunk/ChangeLog	2006-02-24 22:58:28 UTC (rev 13383)
@@ -1,3 +1,10 @@
+2006-02-24  David Hampton  <hampton at employees.org>
+
+	* 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  <stimming at tuhh.de>
 
 	* src/import-export/import-account-matcher.h: Let the account

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2006-02-24 22:22:44 UTC (rev 13382)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2006-02-24 22:58:28 UTC (rev 13383)
@@ -124,7 +124,6 @@
 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 @@
  *  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 },
@@ -2771,17 +2767,6 @@
 }
 
 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)
 {
 }

Modified: gnucash/trunk/src/gnome-utils/ui/gnc-main-window-ui.xml
===================================================================
--- gnucash/trunk/src/gnome-utils/ui/gnc-main-window-ui.xml	2006-02-24 22:22:44 UTC (rev 13382)
+++ gnucash/trunk/src/gnome-utils/ui/gnc-main-window-ui.xml	2006-02-24 22:58:28 UTC (rev 13383)
@@ -45,7 +45,6 @@
       <placeholder name="EditFindPlaceholder"/>
       <separator name="EditSep4"/>
       <menuitem name="EditPreferences" action="EditPreferencesAction"/>
-      <menuitem name="EditAcceleratorKeys" action="EditAcceleratorKeysAction"/>
       <placeholder name="EditPreferencesPlaceholder"/>
       <separator name="EditSep5"/>
       <placeholder name="EditStyleSheetsPlaceholder"/>



More information about the gnucash-changes mailing list