Commit Graph

26360 Commits

Author SHA1 Message Date
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
John Ralls
6c7e50efb2 Merge John Ralls's 'aqb-file-import' into master. 2022-10-29 17:29:06 -07:00
John Ralls
79723b06a3 Replace G_MODULE_EXPORT with static.
No need to expose those functions outside their compilation units.
2022-10-29 17:24:26 -07:00
John Ralls
5a0455462c Implement AQBanking import selection dialog directly in Gtk. 2022-10-29 17:23:57 -07:00
John Ralls
118fc8cbaf Accomplish Doxygen-doc FIXME for gnc_ab_maketrans. 2022-10-29 17:23:57 -07:00
John Ralls
909d857c76 Refactor gnc_file_aqbanking_import.
Cleaning out cruft and extracting functions to improve readability.
2022-10-29 17:23:57 -07:00
John Ralls
283490965c Update macOS dependencies tarball to support AQBanking version update. 2022-10-29 17:23:57 -07:00
John Ralls
86118b3817 [AQB] Require AQBanking 6.4.0 and Gwenhywfar 5.8.0.
Remove all ifdef code for older versions.
2022-10-29 17:23:57 -07:00
Christopher Lam
fc94b41c81 Merge branch 'maint' 2022-10-29 21:53:57 +08:00
Christopher Lam
4716af24e4 Merge branch 'maint' 2022-10-29 21:16:34 +08:00
Christopher Lam
ba44f720c1 Merge branch 'maint' 2022-10-29 21:15:41 +08:00
Christopher Lam
f2354d6b2a [test-qofbook.c] add test for gnc_features_set_unused 2022-10-29 21:01:08 +08:00
Christopher Lam
1516bb18b0 [gnc-features.cpp] backport gnc_features_set_unused from master 2022-10-29 21:01:01 +08:00
Christopher Lam
a078921a33 [qofbook.cpp] backport qof_book_unset_feature from master 2022-10-29 21:00:54 +08:00
John Ralls
cf088f2a70 Merge John Ralls's 'Bug798614' into maint. 2022-10-28 15:27:28 -07:00
John Ralls
f5099b3d87 Bug 798649 - Crash when closing Edit Style Sheets dialog while...
Style Sheet Properties dialog is still open.

Because the style_sheet_dialog is already destroyed and nulled.
2022-10-28 11:37:18 -07:00
Christopher Lam
093aa81ed1 [qofbook.cpp] deprecate qof_book_get_features 2022-10-28 21:57:15 +08:00
Christopher Lam
8192deff37 [gnc-features.cpp] convert to cpp
- don't need to create/destroy GHashTable for each feature query
- plugs leak: g_hash_table_unref (features_used) not always called properly
- to check 1 feature, don't need to traverse whole GHashTable
2022-10-28 20:50:35 +08:00
Christopher Lam
6f6d2fef48 [test-qofbook] basic features test
sets a feature and tests it's set. it's impossible to design a book
with unknown features using the API.
2022-10-27 20:10:49 +08:00
Frank H. Ellenberger
82cc08f9b7 po/README: Remove relics from ancient context forms 2022-10-25 03:18:00 +02:00
이정희
74f7698570
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/ko.po: 65.4% (3537 of 5401 strings; 944 fuzzy)
241 failing checks (4.4%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/ko.po: 65.3% (3528 of 5401 strings; 949 fuzzy)
242 failing checks (4.4%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Co-authored-by: 이정희 <daemul72@gmail.com>
2022-10-23 10:24:28 +02:00
Christopher Lam
b778152eba [gnc-plugin-page-sx-list] don't disable Edit/Delete at startup
At startup, if there are SX in the editor, the previous block disables
Edit & Delete actions, yet in the next block, the call to
gtk_tree_selection_select_path will select a SX which cannot be edited
nor deleted unless the user selects it again.

This commit skips disabling Edit & Delete actions, and calls
gppsl_selection_changed_cb which enables Edit & Delete sensitivity if
there is a SX selected.
2022-10-23 16:23:06 +08:00
Christopher Lam
704946d517 [test-ifrs-cost-basis] amend tests to accommodate extra column
from last commit 2afd979237
2022-10-23 11:05:49 +08:00
Christopher Lam
2afd979237 [ifrs-cost-basis] compare register vs calculated capgain per transaction
ifrs-cost-basis report calculate the ACB per stock transaction. It
will compare the register vs calculated acb and report any
variance.
2022-10-23 08:38:25 +08:00
John Ralls
ca0d86a3a3 Update macOS CI dependencies for master branch. 2022-10-20 14:56:47 -07:00
Geert Janssens
ed4d2f32a0 Update documentation invocation to use gnucash-manual instead of gnucash-help 2022-10-19 13:10:51 +02:00
John Ralls
70958279b2 Accomodate WebKit package version update to webkit2gtk-4.1. 2022-10-18 15:34:57 -07:00
Christopher Lam
9a141a8c76 xxxgtk_textview_get_text returns a char* which must be freed, redux
xxxgtk_textview_get_text may return "" whose strlen is zero, and the
previous code would fail to free it. reword this code to ensure it is
freed appropriately.
2022-10-18 21:43:59 +08:00
Milo Ivir
8f1794cb28
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/glossary/hr.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2022-10-18 05:12:45 +02:00
Abdul Quddos (AQN)
e93f985f17
Translation update by Abdul Quddos (AQN) <yousufi81@gmail.com> using Weblate
po/ur.po: 71.5% (3866 of 5401 strings; 1035 fuzzy)
1103 failing checks (20.4%)
Translation: GnuCash/Program (Urdu)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ur/

Translation update  by Abdul Quddos (AQN) <yousufi81@gmail.com> using Weblate

po/ur.po: 71.3% (3854 of 5401 strings; 1036 fuzzy)
1105 failing checks (20.4%)
Translation: GnuCash/Program (Urdu)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ur/

Co-authored-by: Abdul Quddos (AQN) <yousufi81@gmail.com>
2022-10-18 05:12:45 +02:00
Christopher Lam
026c795c82 xxxgtk_textview_get_text returns a char* which must be freed 2022-10-18 09:39:38 +08:00
John Ralls
14a0ea4ed3 [price-quotes] Sort and format source list. 2022-10-17 11:13:55 -07:00
John Ralls
1a906b00aa [price-quotes] Enable gnucash-cli to retrieve preferences on macOS.
By embedding a minimal Info.plist with a bundle ID into the executable.
This necessitated a change to binreloc because the unix-style install
depended on there being a bundle ID only when the program was run from
an application bundle.
2022-10-17 10:06:21 -07:00
Christopher Lam
d27de50c35 [assistant-stock-transaction] input positive capgains for Credit income acct
In a long position, a positive capital gain indicates the unit price
has increased from Buy to Sell.

In a short position, a positive capital gain indicates the unit price
has decreased from Short Sell to Cover Buy.

i.e. when inputting capital gains, the UI amount being positive
indicates the income account has a credit value. i.e. the investor has
enjoyed a 'profit' on their transaction.
2022-10-16 23:40:10 +08:00
John Ralls
2767587874 [price-quotes] Fix setting alphavantage API key. 2022-10-14 15:47:07 -07:00
John Ralls
939a77407c Merge branch 'price-quotes-cpp' 2022-10-14 11:25:14 -07:00
John Ralls
7f2a09a69f [price-quotes] Handle short error strings from finance-quote-wrapper.
This keeps the translation work in GnuCash and improves the error
signalling in gnc-quotes.
2022-10-14 10:26:51 -07:00
John Ralls
fe9b23ff2b [price quotes] Pass short errors to gnc-quotes.
And wordier but not translated messages when STDERR is a tty.
2022-10-14 10:26:51 -07:00
John Ralls
88d658fef0 [price-quotes] Date::Manip is no longer required. 2022-10-13 14:58:27 -07:00
John Ralls
50c72b4f88 [price-quotes] Remove m_ready and usable() from GncQuoteSource.
GncQuoteSource ctor throws if something is wrong so usable is always true.
2022-10-13 14:28:17 -07:00
John Ralls
7d93774dd2 [price-quotes] Throw instead of returning if there aren't any commodities to quote.
So that the user gets sees an error instead of silent failure.
2022-10-13 13:51:37 -07:00
John Ralls
81d4ea9550 [price-quotes] Remove F::Q version format check.
We don't care what the version string looks like as long as there is one.
2022-10-13 12:58:09 -07:00