|
|
|
|
@ -2319,28 +2319,28 @@ gnc_commodity_table_add_default_data(gnc_commodity_table *table, QofBook *book)
|
|
|
|
|
|
|
|
|
|
static QofObject commodity_object_def =
|
|
|
|
|
{
|
|
|
|
|
interface_version: QOF_OBJECT_VERSION,
|
|
|
|
|
e_type: GNC_ID_COMMODITY,
|
|
|
|
|
type_label: "Commodity",
|
|
|
|
|
book_begin: NULL,
|
|
|
|
|
book_end: NULL,
|
|
|
|
|
is_dirty: qof_collection_is_dirty,
|
|
|
|
|
mark_clean: qof_collection_mark_clean,
|
|
|
|
|
foreach: qof_collection_foreach,
|
|
|
|
|
printable: (const char* (*)(gpointer)) gnc_commodity_get_fullname,
|
|
|
|
|
.interface_version = QOF_OBJECT_VERSION,
|
|
|
|
|
.e_type = GNC_ID_COMMODITY,
|
|
|
|
|
.type_label = "Commodity",
|
|
|
|
|
.book_begin = NULL,
|
|
|
|
|
.book_end = NULL,
|
|
|
|
|
.is_dirty = qof_collection_is_dirty,
|
|
|
|
|
.mark_clean = qof_collection_mark_clean,
|
|
|
|
|
.foreach = qof_collection_foreach,
|
|
|
|
|
.printable = (const char* (*)(gpointer)) gnc_commodity_get_fullname,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static QofObject namespace_object_def =
|
|
|
|
|
{
|
|
|
|
|
interface_version: QOF_OBJECT_VERSION,
|
|
|
|
|
e_type: GNC_ID_COMMODITY_NAMESPACE,
|
|
|
|
|
type_label: "Namespace",
|
|
|
|
|
book_begin: NULL,
|
|
|
|
|
book_end: NULL,
|
|
|
|
|
is_dirty: NULL,
|
|
|
|
|
mark_clean: NULL,
|
|
|
|
|
foreach: NULL,
|
|
|
|
|
printable: NULL,
|
|
|
|
|
.interface_version = QOF_OBJECT_VERSION,
|
|
|
|
|
.e_type = GNC_ID_COMMODITY_NAMESPACE,
|
|
|
|
|
.type_label = "Namespace",
|
|
|
|
|
.book_begin = NULL,
|
|
|
|
|
.book_end = NULL,
|
|
|
|
|
.is_dirty = NULL,
|
|
|
|
|
.mark_clean = NULL,
|
|
|
|
|
.foreach = NULL,
|
|
|
|
|
.printable = NULL,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
@ -2375,17 +2375,17 @@ commodity_table_book_end (QofBook *book)
|
|
|
|
|
|
|
|
|
|
static QofObject commodity_table_object_def =
|
|
|
|
|
{
|
|
|
|
|
interface_version: QOF_OBJECT_VERSION,
|
|
|
|
|
e_type: GNC_ID_COMMODITY_TABLE,
|
|
|
|
|
type_label: "CommodityTable",
|
|
|
|
|
create: NULL,
|
|
|
|
|
book_begin: commodity_table_book_begin,
|
|
|
|
|
book_end: commodity_table_book_end,
|
|
|
|
|
is_dirty: qof_collection_is_dirty,
|
|
|
|
|
mark_clean: qof_collection_mark_clean,
|
|
|
|
|
foreach: NULL,
|
|
|
|
|
printable: NULL,
|
|
|
|
|
version_cmp: NULL,
|
|
|
|
|
.interface_version = QOF_OBJECT_VERSION,
|
|
|
|
|
.e_type = GNC_ID_COMMODITY_TABLE,
|
|
|
|
|
.type_label = "CommodityTable",
|
|
|
|
|
.create = NULL,
|
|
|
|
|
.book_begin = commodity_table_book_begin,
|
|
|
|
|
.book_end = commodity_table_book_end,
|
|
|
|
|
.is_dirty = qof_collection_is_dirty,
|
|
|
|
|
.mark_clean = qof_collection_mark_clean,
|
|
|
|
|
.foreach = NULL,
|
|
|
|
|
.printable = NULL,
|
|
|
|
|
.version_cmp = NULL,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
|
|