mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use function version of QOF_COMMIT_EDIT_PART2.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13395 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
082212a7eb
commit
cec7bb732c
@ -418,7 +418,7 @@ static inline void on_done (QofInstance *inst) {}
|
|||||||
void gncBillTermCommitEdit (GncBillTerm *term)
|
void gncBillTermCommitEdit (GncBillTerm *term)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&term->inst);
|
QOF_COMMIT_EDIT_PART1 (&term->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&term->inst, gncBillTermOnError,
|
qof_commit_edit_part2 (&term->inst, gncBillTermOnError,
|
||||||
on_done, bill_free);
|
on_done, bill_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -387,7 +387,7 @@ static inline void cust_free (QofInstance *inst)
|
|||||||
void gncCustomerCommitEdit (GncCustomer *cust)
|
void gncCustomerCommitEdit (GncCustomer *cust)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&cust->inst);
|
QOF_COMMIT_EDIT_PART1 (&cust->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&cust->inst, gncCustomerOnError,
|
qof_commit_edit_part2 (&cust->inst, gncCustomerOnError,
|
||||||
gncCustomerOnDone, cust_free);
|
gncCustomerOnDone, cust_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ static inline void emp_free (QofInstance *inst)
|
|||||||
void gncEmployeeCommitEdit (GncEmployee *employee)
|
void gncEmployeeCommitEdit (GncEmployee *employee)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&employee->inst);
|
QOF_COMMIT_EDIT_PART1 (&employee->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&employee->inst, gncEmployeeOnError,
|
qof_commit_edit_part2 (&employee->inst, gncEmployeeOnError,
|
||||||
gncEmployeeOnDone, emp_free);
|
gncEmployeeOnDone, emp_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1174,7 +1174,7 @@ static inline void entry_free (QofInstance *inst)
|
|||||||
void gncEntryCommitEdit (GncEntry *entry)
|
void gncEntryCommitEdit (GncEntry *entry)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&entry->inst);
|
QOF_COMMIT_EDIT_PART1 (&entry->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&entry->inst, gncEntryOnError,
|
qof_commit_edit_part2 (&entry->inst, gncEntryOnError,
|
||||||
gncEntryOnDone, entry_free);
|
gncEntryOnDone, entry_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1423,7 +1423,7 @@ static inline void invoice_free (QofInstance *inst)
|
|||||||
void gncInvoiceCommitEdit (GncInvoice *invoice)
|
void gncInvoiceCommitEdit (GncInvoice *invoice)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&invoice->inst);
|
QOF_COMMIT_EDIT_PART1 (&invoice->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&invoice->inst, gncInvoiceOnError,
|
qof_commit_edit_part2 (&invoice->inst, gncInvoiceOnError,
|
||||||
gncInvoiceOnDone, invoice_free);
|
gncInvoiceOnDone, invoice_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ static inline void gncJobOnDone (QofInstance *qof) { }
|
|||||||
void gncJobCommitEdit (GncJob *job)
|
void gncJobCommitEdit (GncJob *job)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&job->inst);
|
QOF_COMMIT_EDIT_PART1 (&job->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&job->inst, gncJobOnError,
|
qof_commit_edit_part2 (&job->inst, gncJobOnError,
|
||||||
gncJobOnDone, job_free);
|
gncJobOnDone, job_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ static inline void order_free (QofInstance *inst)
|
|||||||
void gncOrderCommitEdit (GncOrder *order)
|
void gncOrderCommitEdit (GncOrder *order)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&order->inst);
|
QOF_COMMIT_EDIT_PART1 (&order->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&order->inst, gncOrderOnError,
|
qof_commit_edit_part2 (&order->inst, gncOrderOnError,
|
||||||
gncOrderOnDone, order_free);
|
gncOrderOnDone, order_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -525,7 +525,7 @@ static inline void table_free (QofInstance *inst)
|
|||||||
void gncTaxTableCommitEdit (GncTaxTable *table)
|
void gncTaxTableCommitEdit (GncTaxTable *table)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&table->inst);
|
QOF_COMMIT_EDIT_PART1 (&table->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&table->inst, gncTaxTableOnError,
|
qof_commit_edit_part2 (&table->inst, gncTaxTableOnError,
|
||||||
gncTaxTableOnDone, table_free);
|
gncTaxTableOnDone, table_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -443,7 +443,7 @@ static inline void vendor_free (QofInstance *inst)
|
|||||||
void gncVendorCommitEdit (GncVendor *vendor)
|
void gncVendorCommitEdit (GncVendor *vendor)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&vendor->inst);
|
QOF_COMMIT_EDIT_PART1 (&vendor->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&vendor->inst, gncVendorOnError,
|
qof_commit_edit_part2 (&vendor->inst, gncVendorOnError,
|
||||||
gncVendorOnDone, vendor_free);
|
gncVendorOnDone, vendor_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,9 +342,8 @@ xaccAccountCommitEdit (Account *acc)
|
|||||||
xaccGroupInsertAccount(acc->parent, acc);
|
xaccGroupInsertAccount(acc->parent, acc);
|
||||||
}
|
}
|
||||||
|
|
||||||
QOF_COMMIT_EDIT_PART2 (&acc->inst, on_err, noop, acc_free);
|
if (qof_commit_edit_part2(&acc->inst, on_err, noop, acc_free))
|
||||||
|
gnc_engine_gen_event (&acc->inst.entity, GNC_EVENT_MODIFY);
|
||||||
gnc_engine_gen_event (&acc->inst.entity, GNC_EVENT_MODIFY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -152,7 +152,7 @@ void
|
|||||||
gnc_price_commit_edit (GNCPrice *p)
|
gnc_price_commit_edit (GNCPrice *p)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&p->inst);
|
QOF_COMMIT_EDIT_PART1 (&p->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&p->inst, commit_err, noop, noop);
|
qof_commit_edit_part2 (&p->inst, commit_err, noop, noop);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==================================================================== */
|
/* ==================================================================== */
|
||||||
@ -167,7 +167,7 @@ void
|
|||||||
gnc_pricedb_commit_edit (GNCPriceDB *pdb)
|
gnc_pricedb_commit_edit (GNCPriceDB *pdb)
|
||||||
{
|
{
|
||||||
QOF_COMMIT_EDIT_PART1 (&pdb->inst);
|
QOF_COMMIT_EDIT_PART1 (&pdb->inst);
|
||||||
QOF_COMMIT_EDIT_PART2 (&pdb->inst, commit_err, noop, noop);
|
qof_commit_edit_part2 (&pdb->inst, commit_err, noop, noop);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==================================================================== */
|
/* ==================================================================== */
|
||||||
|
Loading…
Reference in New Issue
Block a user