gnucash master: Use qof_instance_set/get instead of g_object_set/get.
John Ralls
jralls at code.gnucash.org
Tue Mar 28 14:53:14 EDT 2017
Updated via https://github.com/Gnucash/gnucash/commit/b3eb9d0d (commit)
from https://github.com/Gnucash/gnucash/commit/baef4029 (commit)
commit b3eb9d0d8a48791261915f1dffc5ede558e0c8b4
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Mar 28 11:53:05 2017 -0700
Use qof_instance_set/get instead of g_object_set/get.
diff --git a/src/app-utils/gnc-sx-instance-model.c b/src/app-utils/gnc-sx-instance-model.c
index e5dd48f..c20bc62 100644
--- a/src/app-utils/gnc-sx-instance-model.c
+++ b/src/app-utils/gnc-sx-instance-model.c
@@ -83,7 +83,7 @@ scrub_sx_split_numeric (Split* split, const char *debcred)
char *error_loc;
gnc_numeric amount = gnc_numeric_zero ();
gboolean parse_result = FALSE;
- g_object_get (G_OBJECT (split),
+ qof_instance_get (QOF_INSTANCE (split),
formula, &formval,
numeric, &numval,
NULL);
@@ -95,7 +95,7 @@ scrub_sx_split_numeric (Split* split, const char *debcred)
g_hash_table_unref (parser_vars);
if (gnc_numeric_eq (amount, numval))
return FALSE;
- g_object_set (G_OBJECT (split),
+ qof_instance_set (QOF_INSTANCE (split),
numeric, amount,
NULL);
return TRUE;
Summary of changes:
src/app-utils/gnc-sx-instance-model.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list