[rhythmbox/wip/hadess/cleanups: 27/33] ipod: Use G_DECLARE_FINAL_TYPE()




commit c8b5340ec039031f195e632d13baa7d2e67f7dc7
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 3 13:57:33 2021 +0100

    ipod: Use G_DECLARE_FINAL_TYPE()

 plugins/ipod/rb-ipod-plugin.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/plugins/ipod/rb-ipod-plugin.c b/plugins/ipod/rb-ipod-plugin.c
index 0d8f82d58..6ca8ede41 100644
--- a/plugins/ipod/rb-ipod-plugin.c
+++ b/plugins/ipod/rb-ipod-plugin.c
@@ -53,25 +53,21 @@
 
 
 #define RB_TYPE_IPOD_PLUGIN            (rb_ipod_plugin_get_type ())
-#define RB_IPOD_PLUGIN(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_IPOD_PLUGIN, RBIpodPlugin))
-#define RB_IPOD_PLUGIN_CLASS(k)        (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_IPOD_PLUGIN, RBIpodPluginClass))
-#define RB_IS_IPOD_PLUGIN(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_IPOD_PLUGIN))
-#define RB_IS_IPOD_PLUGIN_CLASS(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_IPOD_PLUGIN))
-#define RB_IPOD_PLUGIN_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_IPOD_PLUGIN, 
RBIpodPluginClass))
+G_DECLARE_FINAL_TYPE (RBIpodPlugin, rb_ipod_plugin, RB, IPOD_PLUGIN, PeasExtensionBase)
 
-typedef struct
+struct _RBIpodPlugin
 {
        PeasExtensionBase parent;
 
        RBShell *shell;
 
        GList *ipod_sources;
-} RBIpodPlugin;
+};
 
-typedef struct
+struct _RBIpodPluginClass
 {
        PeasExtensionBaseClass parent_class;
-} RBIpodPluginClass;
+};
 
 
 G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]