[rhythmbox/wip/hadess/cleanups: 20/33] audioscrobbler: Use G_DECLARE_FINAL_TYPE()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/cleanups: 20/33] audioscrobbler: Use G_DECLARE_FINAL_TYPE()
- Date: Mon, 15 Nov 2021 13:45:52 +0000 (UTC)
commit 2faa5b43d01c95cd34da6171fa4aa9a412f779dc
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 3 13:57:33 2021 +0100
audioscrobbler: Use G_DECLARE_FINAL_TYPE()
plugins/audioscrobbler/rb-audioscrobbler-plugin.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
b/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
index faaa3a429..8d62557f8 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
@@ -54,13 +54,9 @@
#include "rb-audioscrobbler-user.h"
#define RB_TYPE_AUDIOSCROBBLER_PLUGIN (rb_audioscrobbler_plugin_get_type ())
-#define RB_AUDIOSCROBBLER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o),
RB_TYPE_AUDIOSCROBBLER_PLUGIN, RBAudioscrobblerPlugin))
-#define RB_AUDIOSCROBBLER_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_AUDIOSCROBBLER_PLUGIN,
RBAudioscrobblerPluginClass))
-#define RB_IS_AUDIOSCROBBLER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o),
RB_TYPE_AUDIOSCROBBLER_PLUGIN))
-#define RB_IS_AUDIOSCROBBLER_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_AUDIOSCROBBLER_PLUGIN))
-#define RB_AUDIOSCROBBLER_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o),
RB_TYPE_AUDIOSCROBBLER_PLUGIN, RBAudioscrobblerPluginClass))
+G_DECLARE_FINAL_TYPE (RBAudioscrobblerPlugin, rb_audioscrobbler_plugin, RB, AUDIOSCROBBLER_PLUGIN,
PeasExtensionBase)
-typedef struct
+struct _RBAudioscrobblerPlugin
{
PeasExtensionBase parent;
@@ -75,12 +71,12 @@ typedef struct
GSettings *librefm_settings;
GtkWidget *librefm_enabled_check;
RBDisplayPage *librefm_page;
-} RBAudioscrobblerPlugin;
+};
-typedef struct
+struct _RBAudioscrobblerPluginClass
{
PeasExtensionBaseClass parent_class;
-} RBAudioscrobblerPluginClass;
+};
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]