From de1acdfa0c4dec5f100b8e24414ed6d862b95baa Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 18 Aug 2019 03:41:39 +0200 Subject: msd-mpris-plugin: avoid 'g_type_class_add_private' --- plugins/mpris/msd-mpris-plugin.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/mpris/msd-mpris-plugin.c b/plugins/mpris/msd-mpris-plugin.c index 56b48cc..44923ca 100644 --- a/plugins/mpris/msd-mpris-plugin.c +++ b/plugins/mpris/msd-mpris-plugin.c @@ -33,14 +33,12 @@ struct MsdMprisPluginPrivate { MsdMprisManager *manager; }; -#define MSD_MPRIS_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_MPRIS_PLUGIN, MsdMprisPluginPrivate)) - -MATE_SETTINGS_PLUGIN_REGISTER (MsdMprisPlugin, msd_mpris_plugin) +MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdMprisPlugin, msd_mpris_plugin) static void msd_mpris_plugin_init (MsdMprisPlugin *plugin) { - plugin->priv = MSD_MPRIS_PLUGIN_GET_PRIVATE (plugin); + plugin->priv = msd_mpris_plugin_get_instance_private (plugin); g_debug ("MsdMprisPlugin initializing"); @@ -101,8 +99,6 @@ msd_mpris_plugin_class_init (MsdMprisPluginClass *klass) plugin_class->activate = impl_activate; plugin_class->deactivate = impl_deactivate; - - g_type_class_add_private (klass, sizeof (MsdMprisPluginPrivate)); } static void -- cgit v1.2.1