Commit Graph

26420 Commits

Author SHA1 Message Date
Robert Fewell
4fc12837c1 Remove all references to 'page-uri' for plugin pages
Do not think it is required.
2022-11-05 17:04:12 +00:00
Robert Fewell
4fd868f89e Add a couple of changes dealing with GtKBuilder object 2022-11-05 17:04:12 +00:00
Robert Fewell
007f5fbcdd Add a couple of descriptions to plugin functions
Add a couple of descriptions to plugin functions and also
change to use container for each for tool bar tooltip
add callbacks function.
2022-11-05 17:04:12 +00:00
Robert Fewell
7cc870aac0 Remove some unused variables 2022-11-05 17:04:12 +00:00
Robert Fewell
e16217a219 Fix the file print menu item
Create a placeholder for the file print item as the label can change
for different pages. Also fix the sensitivity depending on page.
2022-11-05 17:04:12 +00:00
Robert Fewell
bf648f6ed5 Update some function descriptions 2022-11-05 17:04:12 +00:00
Robert Fewell
58805c2a40 Remove actions_name from plugin page as not required. 2022-11-05 17:04:12 +00:00
Robert Fewell
04a56f6c28 Remove tracking GtkAccelGroup from plugin page as not required 2022-11-05 17:04:12 +00:00
Robert Fewell
d3b1da6e56 Fix missing menu tooltips in the register
Re-add the callbacks for the tooltip redirection when the menu items
are updated.
2022-11-05 17:04:12 +00:00
Robert Fewell
37a9721bf2 Fix updating of the menu for invoice, bill and expense
Change the updating of the main window menu items from the GtkMenu item
to the GMenuModel as this will allow the tooltips to be picked up for
showing in the status bar.
2022-11-05 17:04:12 +00:00
Robert Fewell
1f8f1c3679 Fix updating of the menu for the configuration items
Change the updating of the main window menu items from the GtkMenu item
to the GMenuModel as this will allow the tooltips to be picked up for
showing in the status bar.
2022-11-05 17:04:12 +00:00
Robert Fewell
959c870f03 Add some main window function descriptions 2022-11-05 17:04:12 +00:00
Robert Fewell
79285097ff Rename gnc_main_window_update_menu
Rename the main windoe function gnc_main_window_update_menu to
gnc_main_window_update_menu_and_toolbar as it deals with the menu and
toolbar
2022-11-05 17:04:12 +00:00
Robert Fewell
d6ae799e74 Remove a couple of unused functions 2022-11-05 17:04:12 +00:00
Robert Fewell
5c498a1c9b Rename gnc_main_window_menu_item_vis_by_action
Rename the main window function gnc_main_window_menu_item_vis_by_action
to gnc_main_window_set_vis_of_items_by_action as it deals with menu and
toolbar items.
2022-11-05 17:04:12 +00:00
Robert Fewell
e00bcf581d Add function description for gnc_main_window_menu_find_menu_item 2022-11-05 17:04:12 +00:00
Robert Fewell
ab3ae3fada Rename main window toolbar function.
Rename the main window function gnc_main_window_toolbar_find_menu_item
to gnc_main_window_toolbar_find_tool_item
2022-11-05 17:04:12 +00:00
Robert Fewell
7abd26f895 Use the added defines for the g_menu_item_set_attribute function 2022-11-05 17:04:12 +00:00
Robert Fewell
bb5fa12209 Update the menu and tool utils
A descriptions for the util functions.
2022-11-05 17:04:12 +00:00
Robert Fewell
0aaf11ac25 Use GtkApplicationWindow as basis for GncMainWindow
Geert's changes...
As a GtkApplicationWindow also implements the GActionMap interface
it can be used directly instead of the GSimpleActionGroup that was
set up to maintain our actions.

As a GtkApplicationWindow is not a GSimpleActionGroup (the other
object to implement GActionMap) this also needed a minor change in
the function signature of gnc_plugin_set_actions_enabled.
2022-11-05 17:04:12 +00:00
Robert Fewell
d0d76c279a Remove the hash table merged_actions_table
There is no need to remember the simple action groups added to the main
window.
2022-11-05 17:04:12 +00:00
Robert Fewell
239820c5a6 Fix the binding of the extra business items when
gnucash started with --nofile
2022-11-05 17:04:12 +00:00
Robert Fewell
19cfbd6cd3 Hide the Transaction and Schedule menus at Window setup 2022-11-05 17:04:12 +00:00
Robert Fewell
46c1dd0096 Fix accelerator keys for multiple windows.
Simplify adding accelerator keys to windows by just adding one group to
each window and update that group when menu changes.
2022-11-05 17:04:12 +00:00
Robert Fewell
c68dcccebb Changes to window menu entries
Change the maximum number of windows from a macro to a 'constexpr'.

Also added an info dialogue to advise when limit reached, no new window
entries will be added to the Windows menu.
2022-11-05 17:04:12 +00:00
Robert Fewell
9ed102d461 Main window changes for mac's 2022-11-05 17:04:12 +00:00
Robert Fewell
21b95765c0 Setup redirection of menu bar tooltips
This commit redirects the menu bar tooltips to the window status bar
2022-11-05 17:04:12 +00:00
Robert Fewell
5f3235134a Setup redirection of tool bar tooltips
This commit redirects the tool bar tooltips to the window status bar
2022-11-05 17:04:12 +00:00
Robert Fewell
4f8643674b Remove all references to GncDisplayItem 2022-11-05 17:04:12 +00:00
Robert Fewell
e0b55dd707 Remove function gnc_main_window_all_ui_set_sensitive
Do not think it is needed...
2022-11-05 17:04:12 +00:00
Robert Fewell
54c79aef42 Remove gnc_main_window_actions_updated from gnc_main_window 2022-11-05 17:04:12 +00:00
Robert Fewell
a33b63fbae Misc changes to remove references to GtkUIManger 2022-11-05 17:04:12 +00:00
Robert Fewell
42d13eb6f4 Remove some more GtkUIManager functions from gnc-main-window 2022-11-05 17:04:12 +00:00
Robert Fewell
c9abdb1373 Remove some GtkUIManger functions 2022-11-05 17:04:12 +00:00
Robert Fewell
ea419b3b2c Fix creating a new file 2022-11-05 17:04:11 +00:00
Robert Fewell
e85f5f8d8d Fix binding extra business tool bar item to preference setting 2022-11-05 17:04:11 +00:00
Robert Fewell
a381fbcf4e Redfine gnc_plugin_update_actions
As this function does not deal with action visibility any more, remove
the property_name parameter, rename and update all occurrences.
2022-11-05 17:04:11 +00:00
Robert Fewell
3d54212e11 Fix visibility of StockAssistant 2022-11-05 17:04:11 +00:00
Robert Fewell
2b84d6cf4a Fix displaying of the extra menu 2022-11-05 17:04:11 +00:00
Robert Fewell
68bf71de4f Fix Edit/Assign payment in business plugin 2022-11-05 17:04:11 +00:00
Robert Fewell
17151a3e5e Remove remaining old ...ui.xml files 2022-11-05 17:04:11 +00:00
Robert Fewell
cc0094da22 Replace gnc_plugin_page_get/create_action_group
Replace gnc_plugin_page_get/create_action_group with the new versions
that deal with GSimpleActionGroup's
2022-11-05 17:04:11 +00:00
Robert Fewell
078d7875d3 Change all references to plugin_class->actionsb
Change all references to plugin_class->actionsb and n_actionsb to
plugin_class->actions and n_actions
2022-11-05 17:04:11 +00:00
Robert Fewell
02911eab20 Replace gnc_plugin_update_actions
Replace gnc_plugin_update_actions with new version based on
GSimpleActionGroup
2022-11-05 17:04:11 +00:00
Robert Fewell
505f3e519e Remove last bits of gtk toggle actions 2022-11-05 17:04:11 +00:00
Robert Fewell
464c3340d1 Remove setup for important actions 2022-11-05 17:04:11 +00:00
Robert Fewell
103d82dcc3 Change to use short labels in toolbar
This commit adds the ability to use short labels on the toolbar, any
toolbar items with a short name defined will be updated all the time.
2022-11-05 17:04:11 +00:00
Robert Fewell
c0f117eda5 Changes for embedded window and sx dialog 2022-11-05 17:04:11 +00:00
Robert Fewell
a2ec925a1e Changes for report plugin pages 2022-11-05 17:04:07 +00:00
Robert Fewell
1f44b69396 Changes for Aqbanking plugin 2022-10-30 13:30:39 +00:00