Skip to content

Commit

Permalink
Refactor: DECLARE_FINAL GncPluginAccountTree < GncPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jun 14, 2023
1 parent b715211 commit 939770e
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions gnucash/gnome/gnc-plugin-account-tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,37 +42,18 @@ G_BEGIN_DECLS

/* type macros */
#define GNC_TYPE_PLUGIN_ACCOUNT_TREE (gnc_plugin_account_tree_get_type ())
#define GNC_PLUGIN_ACCOUNT_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_ACCOUNT_TREE, GncPluginAccountTree))
#define GNC_PLUGIN_ACCOUNT_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_ACCOUNT_TREE, GncPluginAccountTreeClass))
#define GNC_IS_PLUGIN_ACCOUNT_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_ACCOUNT_TREE))
#define GNC_IS_PLUGIN_ACCOUNT_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_ACCOUNT_TREE))
#define GNC_PLUGIN_ACCOUNT_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_ACCOUNT_TREE, GncPluginAccountTreeClass))
G_DECLARE_FINAL_TYPE (GncPluginAccountTree, gnc_plugin_account_tree, GNC, PLUGIN_ACCOUNT_TREE, GncPlugin)

#define GNC_PLUGIN_ACCOUNT_TREE_NAME "gnc-plugin-account-tree"

/* typedefs & structures */

/** The instance data structure for an account tree menu plugin. */
typedef struct
struct _GncPluginAccountTree
{
/** The parent object for this widget */
GncPlugin gnc_plugin;
} GncPluginAccountTree;

/** The class data structure for an account tree menu plugin. */
typedef struct
{
/** The parent class for this widget. */
GncPluginClass gnc_plugin;
} GncPluginAccountTreeClass;


/** Get the type of the account tree menu plugin.
*
* @return A GType.
*/
GType gnc_plugin_account_tree_get_type (void);

};

/** Create a new account tree menu plugin.
*
Expand Down

0 comments on commit 939770e

Please sign in to comment.