mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add missing _get_type() functions of all mocked GObject classes
If a GObject is replaced by a mock up, its _get_type() function has to be replaced as well. The replaced _get_type() functions have to return the type of the mock up now.
This commit is contained in:
parent
833edd0b29
commit
99256c385b
@ -23,6 +23,12 @@ gnc_mockaccount_class_init(MockAccountClass *klass)
|
||||
// function is unused, class functions are defined in C++ code
|
||||
}
|
||||
|
||||
|
||||
GType gnc_account_get_type(void)
|
||||
{
|
||||
return gnc_mockaccount_get_type();
|
||||
}
|
||||
|
||||
void
|
||||
xaccAccountBeginEdit (Account *account)
|
||||
{
|
||||
|
@ -27,6 +27,11 @@ gnc_mocksplit_class_init (MockSplitClass *klass)
|
||||
}
|
||||
|
||||
|
||||
GType gnc_split_get_type(void)
|
||||
{
|
||||
return gnc_mocksplit_get_type();
|
||||
}
|
||||
|
||||
Split *
|
||||
xaccMallocSplit (QofBook *book)
|
||||
{
|
||||
|
@ -25,6 +25,11 @@ gnc_mocktransaction_class_init(MockTransactionClass *klass)
|
||||
}
|
||||
|
||||
|
||||
GType gnc_transaction_get_type(void)
|
||||
{
|
||||
return gnc_mocktransaction_get_type();
|
||||
}
|
||||
|
||||
void
|
||||
xaccTransBeginEdit (Transaction *trans)
|
||||
{
|
||||
|
@ -20,6 +20,12 @@ qof_mockbook_class_init(QofMockBookClass *klass)
|
||||
// function is unused, class functions are defined in C++ code
|
||||
}
|
||||
|
||||
|
||||
GType qof_book_get_type(void)
|
||||
{
|
||||
return qof_mockbook_get_type();
|
||||
}
|
||||
|
||||
gboolean
|
||||
qof_book_use_split_action_for_num_field (const QofBook *book)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user