Commit Graph

27201 Commits

Author SHA1 Message Date
John Ralls
d192be5307 Merge Richard Cohen's 'cleanup-cflags-deprecated' into master. 2023-03-18 10:07:25 -07:00
John Ralls
b52cefef06 Merge branch 'maint' 2023-03-18 09:53:46 -07:00
John Ralls
22668acfdf Merge latest translations from Weblate. 2023-03-18 09:30:38 -07:00
Wellington Terumi Uemura
134aec426a
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/glossary/pt_BR.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/pt_BR/

Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
2023-03-18 12:41:16 +01:00
Zhaoquan Huang
adfcafc22a
Translation update by Zhaoquan Huang <zhaoquan2008@hotmail.com> using Weblate
po/zh_CN.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by Zhaoquan Huang <zhaoquan2008@hotmail.com> using Weblate

po/zh_CN.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by Zhaoquan Huang <zhaoquan2008@hotmail.com> using Weblate

po/glossary/zh_CN.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/zh_Hans/

Co-authored-by: Zhaoquan Huang <zhaoquan2008@hotmail.com>
2023-03-18 12:41:15 +01:00
mocsa
53000cd761
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/glossary/hu.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/

Translation update  by mocsa <csaba@feltoltve.hu> using Weblate

po/hu.po: 65.3% (3531 of 5401 strings; 826 fuzzy)
160 failing checks (2.9%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2023-03-18 12:41:15 +01:00
Milo Ivir
1b08cc8654
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/

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>
2023-03-18 12:41:14 +01:00
gallegonovato
3bcfa6e8d8
Translation update by gallegonovato <fran-carro@hotmail.es> using Weblate
po/es.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
8 failing checks (0.1%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2023-03-18 12:41:13 +01:00
Pedro Albuquerque
2481339f02
Translation update by Pedro Albuquerque <pmra@gmx.com> using Weblate
po/pt.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Translation update  by Pedro Albuquerque <pmra@gmx.com> using Weblate

po/pt.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Translation update  by Pedro Albuquerque <pmra@gmx.com> using Weblate

po/pt.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Translation update  by Pedro Albuquerque <pmra@gmx.com> using Weblate

po/pt.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Translation update  by Pedro Albuquerque <pmra@gmx.com> using Weblate

po/pt.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Co-authored-by: Pedro Albuquerque <pmra@gmx.com>
2023-03-18 12:41:12 +01:00
J0kWang
73690c1a41
Translation update by J0kWang <lianjiefly@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: J0kWang <lianjiefly@gmail.com>
2023-03-18 12:41:12 +01:00
Robert Fewell
a143f8b5ed Make changes to load and save default accelerator map file
When the gui is loaded, check for the accelerator-map file being
located in the user data directory, if not present copy the default one
to the location and open it.
2023-03-18 10:58:07 +00:00
Robert Fewell
55cdb6fe34 Default accelerator-map files 2023-03-18 10:58:07 +00:00
Robert Fewell
cc5029bb4d Disable saving the gtk_accel_map
It seems that it only saves the loaded map entries and if the original
accelelerator-map file has commented out entries they are lost.
2023-03-18 10:58:07 +00:00
Robert Fewell
6a3013046f Change gnc_add_accelerator_keys_for_menu
To allow the menu short cuts to be changed by the use of an
accelerator-map file, this function adds scanning the gtk accelerator
map and if any changes are found updates the GMenuModel, GMenuItem
2023-03-18 10:58:07 +00:00
Robert Fewell
e8b0d4dd87 Change gnc_menubar_model_update_item to also update accelerator keys 2023-03-18 10:58:07 +00:00
Robert Fewell
0098b047d5 Only add the accelerator key to the menu item once 2023-03-18 10:58:07 +00:00
Robert Fewell
85f462feb5 On a Mac, some keyboard short cuts are missing
Sync the menu bar after the menus have been updated.
2023-03-18 10:58:02 +00:00
John Ralls
207b105b9c Merge Brian Rater's '798570' into maint. 2023-03-17 13:09:36 -07:00
BLR
372a36eeb9 798570 Budget totals for income, expenses and remaining to budget incorrect when increasing the number of periods. 2023-03-17 09:13:47 -04:00
John Ralls
b4b8431984 Bug 798778 - GnuCashquits abruptly when attempting to edit options…
for certain reports.

Those reports being ones using complex options, apparently because
the callbacks weren't protected from Guile's garbage collector.

So replace the anyway ugly hack of a void* with a std::any wrapping
a class holding a std::unique_ptr with a custom deleter. The
constructor calls scm_gc_protect_object on the SCM containing the
callback and the custom deleter calls scm_gc_unprotect_object. The
copy constructor, required for std::any, makes a new std::unique_ptr
and calls scm_gc_protect_object again ensuring that the protect and
unprotect calls are symmetrical.

Meanwhile std::any hides the Guile dependency from all the classes
that don't need to know about it. The only ugliness is that there's
no good place to put a common implementation of SCNCallbackWrapper so it's
repeated in gnc-optiondb.i and dialog-options.cpp.
2023-03-16 17:50:06 -07:00
John Ralls
144b6ae090 Merge Richard Cohen's 'fix-gnc-gui-debug-crash' into master. 2023-03-16 14:01:53 -07:00
J0kWang
898f9a6e59 Eliminate translation ambiguity
Eliminate translation ambiguity of "For"
2023-03-16 13:58:51 -07:00
John Ralls
047dad29c2 Merge Richard Cohen's 'show-log-window-should-show-the-window' into master. 2023-03-16 11:30:12 -07:00
John Ralls
68ece42440 Merge Richard Cohen's 'replace-deprecated-gdk-screen-width-height' into master. 2023-03-16 10:01:39 -07:00
Christopher Lam
ef0c9deb7f [dialog-file-access] plug a char* leak 2023-03-16 23:18:47 +08:00
Richard Cohen
8e9c65c1eb Fix regression: Actions > Online Actions > Show log window
.. does nothing

Action activate needs to change the state

Note that there is another bug (also present in maint) where the
menu entry does nothing the first time it is clicked
2023-03-16 14:38:47 +00:00
Richard Cohen
f826240488 Always enable deprecation warnings for glib & gtk
- Remove WARN_DEPRECATED_GLIB/GTK
2023-03-16 13:39:21 +00:00
Robert Fewell
f6d013847d Fix copy-paste error in gnc-plugin-page-account-tree.ui 2023-03-16 09:28:39 +00:00
Christopher Lam
267aa4bf42 [dialog-file-access] g_free a char* in FileAccessWindow struct 2023-03-15 21:26:04 +08:00
Richard Cohen
30586ac3e6 Push -Wno-error=deprecated-declarations from C*_FLAGS down to the target 2023-03-15 10:34:14 +00:00
Richard Cohen
e6a072e906 Replace deprecated gdk_screen_width/height 2023-03-15 09:40:50 +00:00
Richard Cohen
f38526c091 Remove some unnecessary null checks before g_free 2023-03-15 09:40:50 +00:00
Richard Cohen
b46d81e5e0 Correct some DEBUG messages 2023-03-15 09:40:50 +00:00
Richard Cohen
252b169414 Refactor: Extract method set_window_geometry() 2023-03-15 09:40:50 +00:00
Richard Cohen
1c496c4bd5 Fix crash with --log gnc.gui=debug
gnc_main_window_update_one_menu_action() will try to print
data.action_name
2023-03-15 09:39:38 +00:00
Geert Janssens
1f0a69a804 Properly parse plus signs while importing numbers
Silly copy/paste error.
2023-03-15 08:58:07 +01:00
John Ralls
3d1ad8581b Bug 798787 - gnc-register-owner-option currently broken
Use the right option type now that it works right.
2023-03-14 16:11:39 -07:00
John Ralls
5de35f97c8 Fix gnc_owner_get_owner so that it sets the owner type.
Using the instance's QofIdType.
2023-03-14 16:11:39 -07:00
John Ralls
a44b3664e2 [c++options] Implement GncOptionGncOwnerValue class.
GncOwners aren't QofInstances and have limited lifetimes so an option
must hold its own, wrapped in std::unique_ptr for memory management.
2023-03-14 16:11:39 -07:00
John Ralls
8db8105850 [c++options] Warn when an option variant type's set_value isn't found. 2023-03-14 16:11:39 -07:00
BLR
4cc766b07a budget totals for one period would be wrong when increasing the number of periods. 2023-03-14 13:52:06 -04:00
John Ralls
83829e6513 Merge branch 'maint' 2023-03-14 10:43:45 -07:00
John Ralls
1020bde89c Fix crashes in test-engine on Arch Linux.
Root cause is mutating a list while it's iterating. We're able to
protect it in two cases, have to copy it in xaccTransScrubGainsDate.
2023-03-14 10:33:39 -07:00
Christopher Lam
52a713e009 Fix GtkCellRenderer* leak in price import 2023-03-14 20:43:08 +08:00
Geert Janssens
f9ebbf60d1 Fix price import file loading 2023-03-14 12:44:01 +01:00
Christopher Lam
6db868ab64 Refactor std::any_of into lambda
Rewrite 16cc218097 to avoid the lambda accessing external variable
is_req_column_type
2023-03-14 18:18:56 +08:00
John Ralls
be88133b15 Merge branch 'maint' 2023-03-13 21:31:44 -07:00
John Ralls
946fbb12c5 Merge latest translations from Weblate into maint. 2023-03-13 21:23:55 -07:00
John Ralls
21ae99dedd Merge latest translations from weblate into master. 2023-03-13 21:17:24 -07:00
Wellington Terumi Uemura
ba9878f16a
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
2023-03-14 04:46:23 +01:00