Skip to content

Commit

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

/* type macros */
#define GNC_TYPE_TREE_VIEW_OWNER (gnc_tree_view_owner_get_type ())
#define GNC_TREE_VIEW_OWNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwner))
#define GNC_TREE_VIEW_OWNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwnerClass))
#define GNC_IS_TREE_VIEW_OWNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_OWNER))
#define GNC_IS_TREE_VIEW_OWNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_OWNER))
#define GNC_TREE_VIEW_OWNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwnerClass))
G_DECLARE_FINAL_TYPE (GncTreeViewOwner, gnc_tree_view_owner, GNC, TREE_VIEW_OWNER, GncTreeView)

#define GNC_TREE_VIEW_OWNER_NAME "GncTreeViewOwner"

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


typedef struct
struct _GncTreeViewOwner
{
GncTreeView gnc_tree_view;
int stamp;
} GncTreeViewOwner;

typedef struct
{
GncTreeViewClass gnc_tree_view;
} GncTreeViewOwnerClass;
};

typedef struct
{
Expand Down Expand Up @@ -127,10 +119,6 @@ void gnc_tree_view_owner_restore(GncTreeViewOwner *view,
GncOwnerType owner_type);


/* Get the GType for an GncTreeViewOwner object. */
GType gnc_tree_view_owner_get_type (void);


/** @name Owner Tree View Constructor
@{ */

Expand Down

0 comments on commit cb1313b

Please sign in to comment.