diff --git a/gnucash/gnome-utils/gnc-plugin-file-history.h b/gnucash/gnome-utils/gnc-plugin-file-history.h index 24a30a5a76c..713d82935ac 100644 --- a/gnucash/gnome-utils/gnc-plugin-file-history.h +++ b/gnucash/gnome-utils/gnc-plugin-file-history.h @@ -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. *