Skip to content

Commit

Permalink
Refactor: DECLARE_FINAL GncTreeViewAccount < GncTreeView
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jun 14, 2023
1 parent b0fa510 commit 3e6ca81
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions gnucash/gnome-utils/gnc-tree-view-account.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,8 @@ G_BEGIN_DECLS

/* type macros */
#define GNC_TYPE_TREE_VIEW_ACCOUNT (gnc_tree_view_account_get_type ())
#define GNC_TREE_VIEW_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccount))
#define GNC_TREE_VIEW_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccountClass))
#define GNC_IS_TREE_VIEW_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT))
#define GNC_IS_TREE_VIEW_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_ACCOUNT))
#define GNC_TREE_VIEW_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccountClass))
G_DECLARE_FINAL_TYPE (GncTreeViewAccount, gnc_tree_view_account, GNC, TREE_VIEW_ACCOUNT, GncTreeView)

#define GNC_TREE_VIEW_ACCOUNT_NAME "GncTreeViewAccount"

/* typedefs & structures */
Expand All @@ -62,16 +59,11 @@ struct AccountViewInfo_s
};


typedef struct
struct _GncTreeViewAccount
{
GncTreeView gnc_tree_view;
int stamp;
} GncTreeViewAccount;

typedef struct
{
GncTreeViewClass gnc_tree_view;
} GncTreeViewAccountClass;
};

typedef struct
{
Expand Down

0 comments on commit 3e6ca81

Please sign in to comment.