[rhythmbox/wip/hadess/cleanups: 28/37] fmradio: Use G_DECLARE_FINAL_TYPE()




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

    fmradio: Use G_DECLARE_FINAL_TYPE()

 plugins/fmradio/rb-fm-radio-plugin.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/plugins/fmradio/rb-fm-radio-plugin.c b/plugins/fmradio/rb-fm-radio-plugin.c
index 46a9e58d6..a590d13ed 100644
--- a/plugins/fmradio/rb-fm-radio-plugin.c
+++ b/plugins/fmradio/rb-fm-radio-plugin.c
@@ -40,14 +40,7 @@
 #include "rb-file-helpers.h"
 
 #define RB_TYPE_FM_RADIO_PLUGIN         (rb_fm_radio_plugin_get_type ())
-#define RB_FM_RADIO_PLUGIN(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_FM_RADIO_PLUGIN, 
RBFMRadioPlugin))
-#define RB_FM_RADIO_PLUGIN_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_FM_RADIO_PLUGIN, 
RBFMRadioPluginClass))
-#define RB_IS_FM_RADIO_PLUGIN(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_FM_RADIO_PLUGIN))
-#define RB_IS_FM_RADIO_PLUGIN_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_FM_RADIO_PLUGIN))
-#define RB_FM_RADIO_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_FM_RADIO_PLUGIN, 
RBFMRadioPluginClass))
-
-typedef struct _RBFMRadioPlugin RBFMRadioPlugin;
-typedef struct _RBFMRadioPluginClass RBFMRadioPluginClass;
+G_DECLARE_FINAL_TYPE (RBFMRadioPlugin, rb_fm_radio_plugin, RB, FM_RADIO_PLUGIN, PeasExtensionBase)
 
 struct _RBFMRadioPlugin {
        PeasExtensionBase parent;


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