r17351 - gnucash/branches/gda-dev2/src - 1) Add Non-std SCU GObject parameter to put_property function (it is defined
Phil Longstaff
plongstaff at cvs.gnucash.org
Sun Jul 20 12:28:36 EDT 2008
Author: plongstaff
Date: 2008-07-20 12:28:36 -0400 (Sun, 20 Jul 2008)
New Revision: 17351
Trac: http://svn.gnucash.org/trac/changeset/17351
Modified:
gnucash/branches/gda-dev2/src/backend/sql/gnc-account-sql.c
gnucash/branches/gda-dev2/src/engine/Account.c
Log:
1) Add Non-std SCU GObject parameter to put_property function (it is defined
as read/write).
2) Use non-std-scu GObject parameter in sql backend.
Modified: gnucash/branches/gda-dev2/src/backend/sql/gnc-account-sql.c
===================================================================
--- gnucash/branches/gda-dev2/src/backend/sql/gnc-account-sql.c 2008-07-20 14:49:55 UTC (rev 17350)
+++ gnucash/branches/gda-dev2/src/backend/sql/gnc-account-sql.c 2008-07-20 16:28:36 UTC (rev 17351)
@@ -63,7 +63,7 @@
{ "account_type", CT_STRING, ACCOUNT_MAX_TYPE_LEN, COL_NNUL, NULL, ACCOUNT_TYPE_ },
{ "commodity_guid", CT_COMMODITYREF, 0, COL_NNUL, "commodity" },
{ "commodity_scu", CT_INT, 0, COL_NNUL, "commodity-scu" },
- { "non_std_scu", CT_BOOLEAN, 0, COL_NNUL, NULL, ACCOUNT_NSCU },
+ { "non_std_scu", CT_BOOLEAN, 0, COL_NNUL, "non-std-scu" },
{ "parent_guid", CT_GUID, 0, 0, NULL, NULL, get_parent, set_parent },
{ "code", CT_STRING, ACCOUNT_MAX_CODE_LEN, 0, "code" },
{ "description", CT_STRING, ACCOUNT_MAX_DESCRIPTION_LEN, 0, "description" },
Modified: gnucash/branches/gda-dev2/src/engine/Account.c
===================================================================
--- gnucash/branches/gda-dev2/src/engine/Account.c 2008-07-20 14:49:55 UTC (rev 17350)
+++ gnucash/branches/gda-dev2/src/engine/Account.c 2008-07-20 16:28:36 UTC (rev 17351)
@@ -398,6 +398,9 @@
case PROP_COMMODITY_SCU:
xaccAccountSetCommoditySCU(account, g_value_get_int(value));
break;
+ case PROP_NON_STD_SCU:
+ xaccAccountSetNonStdSCU(account, g_value_get_boolean(value));
+ break;
case PROP_SORT_DIRTY:
gnc_account_set_sort_dirty(account);
break;
More information about the gnucash-changes
mailing list