Skip to content

Commit

Permalink
Refactor: DECLARE_FINAL GncPluginFileHistory < GncPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jun 14, 2023
1 parent 422b01a commit b853a49
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions gnucash/gnome-utils/gnc-plugin-file-history.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,39 +41,21 @@ G_BEGIN_DECLS

/* type macros */
#define GNC_TYPE_PLUGIN_FILE_HISTORY (gnc_plugin_file_history_get_type ())
#define GNC_PLUGIN_FILE_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_FILE_HISTORY, GncPluginFileHistory))
#define GNC_PLUGIN_FILE_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_FILE_HISTORY, GncPluginFileHistoryClass))
#define GNC_IS_PLUGIN_FILE_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_FILE_HISTORY))
#define GNC_IS_PLUGIN_FILE_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_FILE_HISTORY))
#define GNC_PLUGIN_FILE_HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_FILE_HISTORY, GncPluginFileHistoryClass))
G_DECLARE_FINAL_TYPE (GncPluginFileHistory, gnc_plugin_file_history, GNC, PLUGIN_FILE_HISTORY, GncPlugin)

#define GNC_PLUGIN_FILE_HISTORY_NAME "gnc-plugin-file-history"

/* typedefs & structures */

/** The instance data structure for a file history plugin. */
typedef struct
struct _GncPluginFileHistory
{
GncPlugin gnc_plugin;
} GncPluginFileHistory;
};


/** The class data structure for a file history plugin. */
typedef struct
{
GncPluginClass gnc_plugin;
} GncPluginFileHistoryClass;

/* function prototypes */


/** Get the type of a file history plugin.
*
* @return A GType.
*/
GType gnc_plugin_file_history_get_type (void);


/** Create a new file history plugin. This plugin attaches the file
* history menu to any window that is opened.
*
Expand Down

0 comments on commit b853a49

Please sign in to comment.