summaryrefslogtreecommitdiff
path: root/plugins/sound
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-18 03:55:08 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commit2a3930deb80ce8ec84f2f8974ffaf48ce24f51ba (patch)
treef3a42a851f677336712ccdc36e46735003eec6b8 /plugins/sound
parent066d3e77338ac913f86cd6146dce4aec8c7e4de2 (diff)
downloadmate-settings-daemon-2a3930deb80ce8ec84f2f8974ffaf48ce24f51ba.tar.bz2
mate-settings-daemon-2a3930deb80ce8ec84f2f8974ffaf48ce24f51ba.tar.xz
msd-sound-plugin: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins/sound')
-rw-r--r--plugins/sound/msd-sound-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/sound/msd-sound-plugin.c b/plugins/sound/msd-sound-plugin.c
index f0e0a1e..998c6ca 100644
--- a/plugins/sound/msd-sound-plugin.c
+++ b/plugins/sound/msd-sound-plugin.c
@@ -31,14 +31,12 @@ struct MsdSoundPluginPrivate {
MsdSoundManager *manager;
};
-#define MSD_SOUND_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_SOUND_PLUGIN, MsdSoundPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdSoundPlugin, msd_sound_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdSoundPlugin, msd_sound_plugin)
static void
msd_sound_plugin_init (MsdSoundPlugin *plugin)
{
- plugin->priv = MSD_SOUND_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_sound_plugin_get_instance_private (plugin);
g_debug ("MsdSoundPlugin initializing");
@@ -95,8 +93,6 @@ msd_sound_plugin_class_init (MsdSoundPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdSoundPluginPrivate));
}
static void