From 46e47d44a020ebaeff37b27c2eba539ca4b4acc6 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Wed, 15 Nov 2023 10:58:56 +0000 Subject: [PATCH] Rename the scheduled edit/new/delete menus There is a conflict when updating the tooltip menu entries for the scheduled transaction 'edit' menu. To find the appropriate menu entry, the list of menu entries is searched by name and this entry conflicts with the main 'edit' menu which has no tooltip and so the scheduled 'edit' menu entry does not get the correct tooltip. To fix this just change the entries to 'Edit Schedule'/'New Schedule' and 'Delete Schedule', this also changes them to the same format as the account menu options. --- gnucash/gnome/gnc-plugin-page-sx-list.c | 6 +++--- gnucash/ui/gnc-plugin-page-sx-list.ui | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gnucash/gnome/gnc-plugin-page-sx-list.c b/gnucash/gnome/gnc-plugin-page-sx-list.c index 7c44263b6d..573f2deb56 100644 --- a/gnucash/gnome/gnc-plugin-page-sx-list.c +++ b/gnucash/gnome/gnc-plugin-page-sx-list.c @@ -390,19 +390,19 @@ treeview_popup (GtkTreeView *treeview, GdkEvent *event, GncPluginPageSxList *pag menu = gtk_menu_new(); - menuitem = gtk_menu_item_new_with_mnemonic (_("_New")); + menuitem = gtk_menu_item_new_with_mnemonic (_("_New Schedule")); full_action_name = g_strconcat (group_name, ".SxListNewAction", NULL); gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name); g_free (full_action_name); gtk_menu_shell_append (GTK_MENU_SHELL(menu), menuitem); - menuitem = gtk_menu_item_new_with_mnemonic (_("_Edit")); + menuitem = gtk_menu_item_new_with_mnemonic (_("_Edit Schedule")); full_action_name = g_strconcat (group_name, ".SxListEditAction", NULL); gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name); g_free (full_action_name); gtk_menu_shell_append (GTK_MENU_SHELL(menu), menuitem); - menuitem = gtk_menu_item_new_with_mnemonic (_("_Delete")); + menuitem = gtk_menu_item_new_with_mnemonic (_("_Delete Schedule")); full_action_name = g_strconcat (group_name, ".SxListDeleteAction", NULL); gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name); g_free (full_action_name); diff --git a/gnucash/ui/gnc-plugin-page-sx-list.ui b/gnucash/ui/gnc-plugin-page-sx-list.ui index d281ef458a..3ddab428b5 100644 --- a/gnucash/ui/gnc-plugin-page-sx-list.ui +++ b/gnucash/ui/gnc-plugin-page-sx-list.ui @@ -44,19 +44,19 @@ - _New + _New Schedule GncPluginPageSxListActions.SxListNewAction Create a new scheduled transaction yes - _Edit + _Edit Schedule GncPluginPageSxListActions.SxListEditAction Edit the selected scheduled transaction yes - _Delete + _Delete Schedule GncPluginPageSxListActions.SxListDeleteAction Delete the selected scheduled transaction yes