Skip to content

Commit

Permalink
Refactor: DECLARE_FINAL GncTreeViewPrice < GncTreeView
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jun 14, 2023
1 parent cb1313b commit 1ca98da
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions gnucash/gnome-utils/gnc-tree-view-price.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,14 @@ G_BEGIN_DECLS

/* type macros */
#define GNC_TYPE_TREE_VIEW_PRICE (gnc_tree_view_price_get_type ())
#define GNC_TREE_VIEW_PRICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPrice))
#define GNC_TREE_VIEW_PRICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPriceClass))
#define GNC_IS_TREE_VIEW_PRICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_PRICE))
#define GNC_IS_TREE_VIEW_PRICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_PRICE))
#define GNC_TREE_VIEW_PRICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPriceClass))
G_DECLARE_FINAL_TYPE (GncTreeViewPrice, gnc_tree_view_price, GNC, TREE_VIEW_PRICE, GncTreeView)

/* typedefs & structures */
typedef struct
struct _GncTreeViewPrice
{
GncTreeView gnc_tree_view;
int stamp;
} GncTreeViewPrice;

typedef struct
{
GncTreeViewClass gnc_tree_view;
} GncTreeViewPriceClass;



/* Standard g_object type */
GType gnc_tree_view_price_get_type (void);

};

/** @name Price Tree View Constructors
@{ */
Expand Down

0 comments on commit 1ca98da

Please sign in to comment.