mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
use G_DEFINE_TYPE_WITH_PRIVATE to replace g_type_class_add_private
gnc_tree_view_commodity_get_type is being replaced by that provided by G_DEFINE_TYPE_WITH_PRIVATE. Rename GNCDateFormatPriv to GNCDateFormatPrivate.
This commit is contained in:
parent
2449d7257e
commit
6a25c59985
@ -67,33 +67,7 @@ typedef struct GncTreeViewCommodityPrivate
|
||||
|
||||
static GObjectClass *parent_class = NULL;
|
||||
|
||||
GType
|
||||
gnc_tree_view_commodity_get_type (void)
|
||||
{
|
||||
static GType gnc_tree_view_commodity_type = 0;
|
||||
|
||||
if (gnc_tree_view_commodity_type == 0)
|
||||
{
|
||||
static const GTypeInfo our_info =
|
||||
{
|
||||
sizeof (GncTreeViewCommodityClass),
|
||||
NULL,
|
||||
NULL,
|
||||
(GClassInitFunc) gnc_tree_view_commodity_class_init,
|
||||
NULL,
|
||||
NULL,
|
||||
sizeof (GncTreeViewCommodity),
|
||||
0,
|
||||
(GInstanceInitFunc) gnc_tree_view_commodity_init
|
||||
};
|
||||
|
||||
gnc_tree_view_commodity_type = g_type_register_static (GNC_TYPE_TREE_VIEW,
|
||||
"GncTreeViewCommodity",
|
||||
&our_info, 0);
|
||||
}
|
||||
|
||||
return gnc_tree_view_commodity_type;
|
||||
}
|
||||
G_DEFINE_TYPE_WITH_PRIVATE(GncTreeViewCommodity, gnc_tree_view_commodity, GNC_TYPE_TREE_VIEW)
|
||||
|
||||
static void
|
||||
gnc_tree_view_commodity_class_init (GncTreeViewCommodityClass *klass)
|
||||
|
Loading…
Reference in New Issue
Block a user