[rhythmbox/wip/hadess/cleanups: 38/43] iradio: Use G_DECLARE_FINAL_TYPE()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/cleanups: 38/43] iradio: Use G_DECLARE_FINAL_TYPE()
- Date: Thu, 18 Nov 2021 13:40:57 +0000 (UTC)
commit ccfaf7f494f39a7181fcde0a297dd2f14449c06a
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 3 13:57:33 2021 +0100
iradio: Use G_DECLARE_FINAL_TYPE()
plugins/iradio/rb-iradio-plugin.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/plugins/iradio/rb-iradio-plugin.c b/plugins/iradio/rb-iradio-plugin.c
index d691d7836..0cedded41 100644
--- a/plugins/iradio/rb-iradio-plugin.c
+++ b/plugins/iradio/rb-iradio-plugin.c
@@ -50,23 +50,19 @@
#define RB_TYPE_IRADIO_PLUGIN (rb_iradio_plugin_get_type ())
-#define RB_IRADIO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_IRADIO_PLUGIN,
RBIRadioPlugin))
-#define RB_IRADIO_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_IRADIO_PLUGIN,
RBIRadioPluginClass))
-#define RB_IS_IRADIO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_IRADIO_PLUGIN))
-#define RB_IS_IRADIO_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_IRADIO_PLUGIN))
-#define RB_IRADIO_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_IRADIO_PLUGIN,
RBIRadioPluginClass))
+G_DECLARE_FINAL_TYPE (RBIRadioPlugin, rb_iradio_plugin, RB, IRADIO_PLUGIN, PeasExtensionBase)
-typedef struct
+struct _RBIRadioPlugin
{
PeasExtensionBase parent;
RBSource *source;
-} RBIRadioPlugin;
+};
-typedef struct
+struct _RBIRadioPluginClass
{
PeasExtensionBaseClass parent_class;
-} RBIRadioPluginClass;
+};
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]