[rhythmbox/wip/hadess/cleanups: 46/49] mmkeys: Use G_DECLARE_FINAL_TYPE()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/cleanups: 46/49] mmkeys: Use G_DECLARE_FINAL_TYPE()
- Date: Mon, 15 Nov 2021 11:04:17 +0000 (UTC)
commit 3053a9b619f2546058fd319c5f03a2f369285e51
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 3 13:57:33 2021 +0100
mmkeys: Use G_DECLARE_FINAL_TYPE()
plugins/mmkeys/rb-mmkeys-plugin.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/plugins/mmkeys/rb-mmkeys-plugin.c b/plugins/mmkeys/rb-mmkeys-plugin.c
index 058b82f0e..00f10f85a 100644
--- a/plugins/mmkeys/rb-mmkeys-plugin.c
+++ b/plugins/mmkeys/rb-mmkeys-plugin.c
@@ -53,13 +53,9 @@
#endif /* HAVE_MMKEYS */
#define RB_TYPE_MMKEYS_PLUGIN (rb_mmkeys_plugin_get_type ())
-#define RB_MMKEYS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_MMKEYS_PLUGIN,
RBMMKeysPlugin))
-#define RB_MMKEYS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_MMKEYS_PLUGIN,
RBMMKeysPluginClass))
-#define RB_IS_MMKEYS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_MMKEYS_PLUGIN))
-#define RB_IS_MMKEYS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_MMKEYS_PLUGIN))
-#define RB_MMKEYS_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_MMKEYS_PLUGIN,
RBMMKeysPluginClass))
+G_DECLARE_FINAL_TYPE (RBMMKeysPlugin, rb_mmkeys_plugin, RB, MMKEYS_PLUGIN, PeasExtensionBase)
-typedef struct
+struct _RBMMKeysPlugin
{
PeasExtensionBase parent;
@@ -71,12 +67,12 @@ typedef struct
RBShell *shell;
RBShellPlayer *shell_player;
GDBusProxy *proxy;
-} RBMMKeysPlugin;
+} ;
-typedef struct
+struct _RBMMKeysPluginClass
{
PeasExtensionBaseClass parent_class;
-} RBMMKeysPluginClass;
+};
RB_DEFINE_PLUGIN(RB_TYPE_MMKEYS_PLUGIN, RBMMKeysPlugin, rb_mmkeys_plugin,)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]