mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Refactor: DECLARE_FINAL GncPluginLogReplay < GncPlugin
- Fix the name
This commit is contained in:
parent
08168bec26
commit
d73117d1ef
@ -54,15 +54,15 @@ static const gchar *gnc_plugin_load_ui_items [] =
|
|||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct GncPluginLogreplayPrivate
|
typedef struct GncPluginLogReplayPrivate
|
||||||
{
|
{
|
||||||
gpointer dummy;
|
gpointer dummy;
|
||||||
} GncPluginLogreplayPrivate;
|
} GncPluginLogReplayPrivate;
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_PRIVATE(GncPluginLogreplay, gnc_plugin_log_replay, GNC_TYPE_PLUGIN)
|
G_DEFINE_TYPE_WITH_PRIVATE(GncPluginLogReplay, gnc_plugin_log_replay, GNC_TYPE_PLUGIN)
|
||||||
|
|
||||||
#define GNC_PLUGIN_LOG_REPLAY_GET_PRIVATE(o) \
|
#define GNC_PLUGIN_LOG_REPLAY_GET_PRIVATE(o) \
|
||||||
((GncPluginLogreplayPrivate*)gnc_plugin_log_replay_get_instance_private((GncPluginLogReplay*)o))
|
((GncPluginLogReplayPrivate*)gnc_plugin_log_replay_get_instance_private((GncPluginLogReplay*)o))
|
||||||
|
|
||||||
GncPlugin *
|
GncPlugin *
|
||||||
gnc_plugin_log_replay_new (void)
|
gnc_plugin_log_replay_new (void)
|
||||||
@ -71,7 +71,7 @@ gnc_plugin_log_replay_new (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gnc_plugin_log_replay_class_init (GncPluginLogreplayClass *klass)
|
gnc_plugin_log_replay_class_init (GncPluginLogReplayClass *klass)
|
||||||
{
|
{
|
||||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||||
GncPluginClass *plugin_class = GNC_PLUGIN_CLASS (klass);
|
GncPluginClass *plugin_class = GNC_PLUGIN_CLASS (klass);
|
||||||
@ -90,7 +90,7 @@ gnc_plugin_log_replay_class_init (GncPluginLogreplayClass *klass)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gnc_plugin_log_replay_init (GncPluginLogreplay *plugin)
|
gnc_plugin_log_replay_init (GncPluginLogReplay *plugin)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,28 +31,17 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
/* type macros */
|
/* type macros */
|
||||||
#define GNC_TYPE_PLUGIN_LOG_REPLAY (gnc_plugin_log_replay_get_type ())
|
#define GNC_TYPE_PLUGIN_LOG_REPLAY (gnc_plugin_log_replay_get_type ())
|
||||||
#define GNC_PLUGIN_LOG_REPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_LOG_REPLAY, GncPluginLogreplay))
|
G_DECLARE_FINAL_TYPE (GncPluginLogReplay, gnc_plugin_log_replay, GNC, PLUGIN_LOG_REPLAY, GncPlugin)
|
||||||
#define GNC_PLUGIN_LOG_REPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_LOG_REPLAY, GncPluginLogreplayClass))
|
|
||||||
#define GNC_IS_PLUGIN_LOG_REPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_LOG_REPLAY))
|
|
||||||
#define GNC_IS_PLUGIN_LOG_REPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_LOG_REPLAY))
|
|
||||||
#define GNC_PLUGIN_LOG_REPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_LOG_REPLAY, GncPluginLogreplayClass))
|
|
||||||
|
|
||||||
#define GNC_PLUGIN_LOG_REPLAY_NAME "gnc-plugin-log-replay"
|
#define GNC_PLUGIN_LOG_REPLAY_NAME "gnc-plugin-log-replay"
|
||||||
|
|
||||||
/* typedefs & structures */
|
/* typedefs & structures */
|
||||||
typedef struct
|
struct _GncPluginLogReplay
|
||||||
{
|
{
|
||||||
GncPlugin gnc_plugin;
|
GncPlugin gnc_plugin;
|
||||||
} GncPluginLogreplay;
|
};
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
GncPluginClass gnc_plugin;
|
|
||||||
} GncPluginLogreplayClass;
|
|
||||||
|
|
||||||
/* function prototypes */
|
/* function prototypes */
|
||||||
GType gnc_plugin_log_replay_get_type (void);
|
|
||||||
|
|
||||||
GncPlugin *gnc_plugin_log_replay_new (void);
|
GncPlugin *gnc_plugin_log_replay_new (void);
|
||||||
|
|
||||||
void gnc_plugin_log_replay_create_plugin (void);
|
void gnc_plugin_log_replay_create_plugin (void);
|
||||||
|
Loading…
Reference in New Issue
Block a user