Commit Graph

20860 Commits

Author SHA1 Message Date
Christoph Holtermann
e99c3d68d0 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_plugin_basic_commands_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2019-01-26 08:15:02 +01:00
Christoph Holtermann
4645124307 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_search_param_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2019-01-26 08:15:02 +01:00
Christoph Holtermann
c8d8cc44c0 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_tree_view_price_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2019-01-26 08:15:02 +01:00
Christoph Holtermann
3eb5c88c5a use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_tree_view_owner_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2019-01-26 08:15:02 +01:00
Christoph Holtermann
df74ac3cd2 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_tree_model_selection_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_CODE
and G_ADD_PRIVATE. Replace g_type_add_interface_static by G_IMPLEMENT_INTERFACE.
2019-01-26 08:15:02 +01:00
Christoph Holtermann
8814ad7715 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_tree_model_owner_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_CODE
and G_ADD_PRIVATE. Replace g_type_add_interface_static by G_IMPLEMENT_INTERFACE.
2019-01-26 08:15:02 +01:00
Christoph Holtermann
8a4ef02c38 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_tree_view_account_get_type is being replaced by that
provided by G_DEFINE_TYPE_WITH_CODE and G_ADD_PRIVATE.
Replace g_type_add_interface_static by G_IMPLEMENT_INTERFACE.
2019-01-26 08:15:02 +01:00
Christoph Holtermann
ddda853074 use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private -
replace objects ..._get_type method by that provided by G_DEFINE_TYPE_WITH_PRIVATE
2019-01-26 08:15:02 +01:00
Christoph Holtermann
2ab6650e9a Replace deprecated g_type_class_add_private
use G_DEFINE_TYPE_WITH_PRIVATE
and adapt name of private property to work with G_DEFINE_TYPE_WITH_PRIVATE
2019-01-26 08:15:02 +01:00
Christoph Holtermann
2cfc61182e directly use G_DEFINE_TYPE instead of QOF_GOBJECT_GET_TYPE 2019-01-26 08:15:02 +01:00
Christoph Holtermann
1bfcc95998 directly use G_DEFINE_TYPE_WITH_PRIVATE instead of QOF_GOBJECT_GET_TYPE 2019-01-26 08:15:02 +01:00
Christoph Holtermann
658da08008 replace deprecated g_type_class_add_private 2019-01-26 08:15:02 +01:00
John Ralls
84d1c3645d Use NULL, not '\0', to set a char* argument to NULL. 2019-01-25 12:52:14 -08:00
John Ralls
f9f714c78d gnc_pricedb_nth_price: Clarify code and cache results.
Use built-in glib functions to retrieve the list of per-currency price
lists, concatenate them into a single list, instead of doing it all in
hand-rolled loops.

Sorting is preformed by the calling GncTreeViewPrice so this removes
sorting from gnc_pricedb_nth_price.

There's no concurrency concern because gnc_pricedb_nth_price is a
GUI callback and so must run in the GUI thread.
2019-01-25 08:49:03 -08:00
Alex Aycinena
fc15364326 remove unnecesary 'home' level in path for US Income Tax book tax information 2019-01-24 18:36:13 -08:00
John Ralls
3a48672763 Complete reversion of e81bcf6 in gnc-pricedb.c. 2019-01-23 17:54:29 -08:00
Christian Stimming
9069bace15 Fix unused return value error from e4836f3c
Re-introducing the fgets() call in e4836f3c that has been removed in
bf55c30 triggers the "ignoring return value of fgets, declared with
attribute warn_unused_result" error. The even better way is to actually
use the return value and check it for non-NULL because only then
we did a successful fgets call where we can use its result.
2019-01-20 20:39:20 +01:00
Robert Fewell
fbabc147bf Save the Account page filter setting to the state file
Use the newly created functions to save and restore the account filter
settings to the saved 'Account Hierarchy' section of the state file.
2019-01-20 12:43:52 +00:00
Robert Fewell
274dd2f8bc Save the Account filter settings for a Budget Page
Use the newly created functions to save and restore the account filter
settings to the saved Budget section of the state file.
2019-01-20 12:43:52 +00:00
Robert Fewell
d4c19efc8d Create two functions to save/restore the account filter settings
These functions allow the saving and restoring of the GncTreeViewAccount
 filter settings to the state file. Currently they are only saved if the
 page is left open when Gnucash is closed.
2019-01-20 12:43:52 +00:00
Robert Fewell
fec5b603e2 Bug796965 - Change the default to show unused accounts
Currently when you create a new budget, unused accounts are not shown
so change the default to match the Accounts TreeView.
2019-01-20 12:43:52 +00:00
John Ralls
020bc5371f Bug 797046 - Tools / Price Database / Currencies UI not working...
since 3.4.
2019-01-19 14:31:10 -08:00
John Ralls
e31f4c3f95 Fix unlocalized date in status bar.
It seems that std::locales created by boost::locale::generator are
not entirely compatible: If used to create a new locale with a facet
for boost::date_time one ends up with the C locale and the facet.

For the time being avoid the problem by using boost::locale to format
dates and times. std::chrono gets calendar functions in C++20 so we
can switch date-time backends once we can adopt it.
2019-01-19 13:41:17 -08:00
Geert Janssens
72ef48cbf2 Merge branch 'bugs_icv' of https://github.com/ekinonnakapito/gnucash into maint 2019-01-19 17:47:30 +01:00
Geert Janssens
f7173c341a Suppress a few more gtk deprecation warnings
For GtkAction and GtkTable.
2019-01-19 16:51:50 +01:00
Alex Aycinena
08704127d1 bug #796498 - Incorrect starting balance in TXF Report calculations 2019-01-18 20:19:56 -08:00
Christian Stimming
48988ac59a Update German translation 2019-01-18 23:52:51 +01:00
Christian Stimming
6f34995901 Usability improvements for Bayes editor window
Remove the "Are you sure" question as it is simply annoying but does
not help. Fix some string wordings to be more understandable.
2019-01-18 23:52:51 +01:00
Christian Stimming
b521658ce3 Online transfer: Do no longer force existence of local BIC code
The BIC code for SEPA transfer used to be mandantory, but turned optional
more recently and the local IBAN code is sufficient. Gnucash still
checked the local BIC code existence and forced the user to get it
from somewhere. This is no longer needed - local IBAN is enough.
2019-01-18 23:52:51 +01:00
Christian Stimming
47c35aeaf9 Online transfer and PIN/TAN entry: Entering of TAN must use normal visibility
The visibility of the entered content was set to FALSE (=invisible) always,
which was wrong for certain types of input as indicated by the GUI_INPUT_FLAGS.
This should now be honored and visibility set to TRUE (=visible) for
the correct flags.
2019-01-18 23:52:51 +01:00
Christian Stimming
417a012b78 Aqbanking import: Fix reconcile timestamps when importing balances.
Used to be start-of-day, but needs to be day-neutral.
2019-01-18 23:52:51 +01:00
Christian Stimming
75b6d14455 Speed-up of dealing with account_imap lists: Replace g_list_append with _prepend and subsequent _reverse.
This is glib's suggested way of dealing with GList in more optimized
way, as g_list_append will have to traverse the list until the end.
2019-01-18 23:52:51 +01:00
Alex Aycinena
c9bd68c658 Updated from version 41 to 42, although new codes not implemented yet because data not reliably available 2019-01-17 18:21:51 -08:00
Alex Aycinena
46b3e31acf Updated to include codes for version 42, although new codes not implemented yet because data not reliably available 2019-01-17 18:19:26 -08:00
Alex Aycinena
217289d037 Bug #796687, Tax entity name and type don't get saved. Change frame->set to frame->set_path to create missing frames. 2019-01-17 12:32:33 -08:00
Alex Aycinena
8f4f8a1dc4 Update US Income Tax information for 2018. Two forms haven't yet been published. If changes needed, will do in subsequent commit. 2019-01-17 12:15:51 -08:00
Rob Laan
d02c65e76a Fixes for bugs 797029 7970331 797030 in Import Customers & Vendors
797029 Import Customer & Vendors: blank name and company in import data row crashes GnuCash
797031 Import customer & Vendors: import can create customer and vendors without address data
797030 Import Customer & Vendors: several issues with the matching of data rows
2019-01-14 08:23:02 +01:00
Thomas Klausner
3ab5a2be52 Bug 797041 - enum confusion in qoflog. 2019-01-13 16:29:11 -08:00
Mike Alexander
e4836f3c58 Commit bf55c30 deleted the call to fgets that reads the file. 2019-01-12 01:39:33 -05:00
Geert Janssens
f3c8c040b1 Bug 796877 - test-stress-options fails 2019-01-09 17:29:48 +01:00
Rob Laan
e09d18590d Match BOM in bill/invoice import 2019-01-07 14:31:37 -08:00
John Ralls
b4fedff90e Provide a single static instance of C++ locale.
We can't use std::locale::global because all streams imbue it by
default and if it's not 'C' (aka std::locale::classic) then we
must imbue all the streams that we don't want localized, and that's
most of them.

Provides error checking for setting the C++ locale from the environment.
This is necessary both because the environment might have an invalid
locale, which would cause an unhandled exception crash.

On windows std::locale("") can't handle some Microsoft-style locale
strings (e.g. Spanish_Spain) so we use boost::locale's gen("") function
to set the locale--though even that can't handle a Microsoft-style
locale string with an appended charset (e.g. Spanish_Spain.1252) and
that's what glibc's setlocale(LC_ALL, NULL) emits.
2019-01-06 10:13:01 -08:00
John Ralls
cee97be8d4 Add GncDateTime::timestamp().
To provide a C++ implementation of gnc_date_timestamp and to avoid
using the expensive and localized GncDateTime::format().
2019-01-06 10:13:00 -08:00
Rob Reid
9be545f5ce Fixes for new 64-bit time setter/getters 2019-01-06 22:05:43 +08:00
John Ralls
793fb1a3ed Bug 797013 - Import Customers & Vendors: error in CMakeLists.txt...
- causes incomplete project in Xcode.
2019-01-05 06:52:13 -08:00
John Ralls
cec3f6031e Fix broken compile of test-gnc-date.c on Ubuntu 14.04. 2019-01-04 17:01:38 -08:00
John Ralls
9fa7b7f940 Implement a faster date-time serialization function.
Has the side effect of recording all date-times in XML files in UTC
instead of local time with a timezone.
2019-01-04 16:34:33 -08:00
John Ralls
137c920d06 Merge Chris Carson's 'dateFormat' into maint. 2019-01-04 15:50:39 -08:00
John Ralls
a65dd6cc25 Merge Chris Carson's 'refactor-Scrub-c' into maint. 2019-01-04 15:49:42 -08:00
John Ralls
7a13398e4e Fix typo. 2019-01-03 08:45:43 -08:00