diff options
author | Pablo Barciela <[email protected]> | 2019-08-18 03:41:39 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-08-20 09:01:31 -0400 |
commit | de1acdfa0c4dec5f100b8e24414ed6d862b95baa (patch) | |
tree | db3f6b1816bef266b35f23fa18e95bf6568eaeb8 /plugins/mpris | |
parent | 62ebc70ace4b477d030b43ead2edb7860f89a4f0 (diff) | |
download | mate-settings-daemon-de1acdfa0c4dec5f100b8e24414ed6d862b95baa.tar.bz2 mate-settings-daemon-de1acdfa0c4dec5f100b8e24414ed6d862b95baa.tar.xz |
msd-mpris-plugin: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins/mpris')
-rw-r--r-- | plugins/mpris/msd-mpris-plugin.c | 8 |
1 files changed, 2 insertions, 6 deletions
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 |