mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Refactor: DECLARE_FINAL GncPluginFileHistory < GncPlugin
This commit is contained in:
parent
422b01a55e
commit
b853a49b4e
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user