Commit Graph

26401 Commits

Author SHA1 Message Date
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
Robert Fewell
95cfd2e68d Changes for business invoice pages 2022-10-30 13:30:04 +00:00
Robert Fewell
97f28ab56b Changes for business owner pages 2022-10-30 13:30:04 +00:00
Robert Fewell
db15edd8f3 Changes for business pages 2022-10-30 13:30:04 +00:00
Robert Fewell
273b7439aa Changes for sx plugin pages 2022-10-30 13:29:59 +00:00
Robert Fewell
161dad7a4c Changes for budget plugin pages 2022-10-30 13:29:05 +00:00
Robert Fewell
5bcb73a6a0 Changes for register plugin pages 2022-10-30 13:29:05 +00:00
Robert Fewell
846dddaf24 Changes for account plugin pages 2022-10-30 13:29:05 +00:00
Robert Fewell
b3a24034c8 Start of changes to load main window menu items on page focus 2022-10-30 13:29:05 +00:00
Robert Fewell
fb5acb2673 Menu changes for cut/copy and paste 2022-10-30 13:29:05 +00:00
Robert Fewell
dcde7952ba Update for the file/window/tab radio buttons 2022-10-30 13:29:05 +00:00
Robert Fewell
96e25abdce Add similar changes to the rest of the plugins 2022-10-30 13:28:59 +00:00
Robert Fewell
3f5767c1ff Add gnc-plugin-basic-commands menu items 2022-10-30 13:22:35 +00:00
Robert Fewell
3aab744fe7 Initial change to add default plugin menu items 2022-10-30 13:22:35 +00:00
Robert Fewell
6f21d4228d Initial changes for the main window 2022-10-30 13:22:35 +00:00
Robert Fewell
6e29ae278f Change GtkGroupAction and GtkActions
Change GtkGroupAction to GSimpleActionGroup and any remaining
GtkActions to GAction. Also comment out any unsure changes that need
further investigation.
2022-10-30 13:22:28 +00:00
Robert Fewell
8d3eb666d3 Add a couple of util functions to find items in the menu bar and toolbar 2022-10-30 13:16:51 +00:00
Robert Fewell
d067ec2cc9 Initial change to plugin page source files 2022-10-30 13:16:51 +00:00
Robert Fewell
0f70143c55 Initial change to plugin source files 2022-10-30 13:16:34 +00:00
Robert Fewell
cf7c654daa Initial change to allow change of GtkAction to GAction 2022-10-30 13:09:39 +00:00