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.
This commit is contained in:
Robert Fewell 2023-11-15 10:58:56 +00:00
parent 6315098723
commit 46e47d44a0
2 changed files with 6 additions and 6 deletions

View File

@ -390,19 +390,19 @@ treeview_popup (GtkTreeView *treeview, GdkEvent *event, GncPluginPageSxList *pag
menu = gtk_menu_new(); 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); full_action_name = g_strconcat (group_name, ".SxListNewAction", NULL);
gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name); gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name);
g_free (full_action_name); g_free (full_action_name);
gtk_menu_shell_append (GTK_MENU_SHELL(menu), menuitem); 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); full_action_name = g_strconcat (group_name, ".SxListEditAction", NULL);
gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name); gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name);
g_free (full_action_name); g_free (full_action_name);
gtk_menu_shell_append (GTK_MENU_SHELL(menu), menuitem); 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); full_action_name = g_strconcat (group_name, ".SxListDeleteAction", NULL);
gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name); gtk_actionable_set_action_name (GTK_ACTIONABLE(menuitem), full_action_name);
g_free (full_action_name); g_free (full_action_name);

View File

@ -44,19 +44,19 @@
<menu id="SchedulePlaceholder0"> <menu id="SchedulePlaceholder0">
<item> <item>
<attribute name="label" translatable="yes">_New</attribute> <attribute name="label" translatable="yes">_New Schedule</attribute>
<attribute name="action">GncPluginPageSxListActions.SxListNewAction</attribute> <attribute name="action">GncPluginPageSxListActions.SxListNewAction</attribute>
<attribute name="tooltip" translatable="yes">Create a new scheduled transaction</attribute> <attribute name="tooltip" translatable="yes">Create a new scheduled transaction</attribute>
<attribute name="temp" translatable="no">yes</attribute> <attribute name="temp" translatable="no">yes</attribute>
</item> </item>
<item> <item>
<attribute name="label" translatable="yes">_Edit</attribute> <attribute name="label" translatable="yes">_Edit Schedule</attribute>
<attribute name="action">GncPluginPageSxListActions.SxListEditAction</attribute> <attribute name="action">GncPluginPageSxListActions.SxListEditAction</attribute>
<attribute name="tooltip" translatable="yes">Edit the selected scheduled transaction</attribute> <attribute name="tooltip" translatable="yes">Edit the selected scheduled transaction</attribute>
<attribute name="temp" translatable="no">yes</attribute> <attribute name="temp" translatable="no">yes</attribute>
</item> </item>
<item> <item>
<attribute name="label" translatable="yes">_Delete</attribute> <attribute name="label" translatable="yes">_Delete Schedule</attribute>
<attribute name="action">GncPluginPageSxListActions.SxListDeleteAction</attribute> <attribute name="action">GncPluginPageSxListActions.SxListDeleteAction</attribute>
<attribute name="tooltip" translatable="yes">Delete the selected scheduled transaction</attribute> <attribute name="tooltip" translatable="yes">Delete the selected scheduled transaction</attribute>
<attribute name="temp" translatable="no">yes</attribute> <attribute name="temp" translatable="no">yes</attribute>