summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-18 16:24:28 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commitdd9ee32f97982cc65dfd6d2517d73c9a4f38e13a (patch)
tree1e78ef6d43a8d24781a47a225bf722d775b0cbe9
parent78d5609d0aa09ee26735faf278e93265dcbeec55 (diff)
downloadmate-settings-daemon-dd9ee32f97982cc65dfd6d2517d73c9a4f38e13a.tar.bz2
mate-settings-daemon-dd9ee32f97982cc65dfd6d2517d73c9a4f38e13a.tar.xz
msd-media-keys-plugin: avoid 'g_type_class_add_private'
-rw-r--r--plugins/media-keys/msd-media-keys-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/media-keys/msd-media-keys-plugin.c b/plugins/media-keys/msd-media-keys-plugin.c
index 3cce9d2..d1124c6 100644
--- a/plugins/media-keys/msd-media-keys-plugin.c
+++ b/plugins/media-keys/msd-media-keys-plugin.c
@@ -38,14 +38,12 @@ struct _MsdMediaKeysPluginPrivate
MsdMediaKeysManager *manager;
};
-#define MSD_MEDIA_KEYS_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_MEDIA_KEYS_PLUGIN, MsdMediaKeysPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdMediaKeysPlugin, msd_media_keys_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdMediaKeysPlugin, msd_media_keys_plugin)
static void
msd_media_keys_plugin_init (MsdMediaKeysPlugin *plugin)
{
- plugin->priv = MSD_MEDIA_KEYS_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_media_keys_plugin_get_instance_private (plugin);
g_debug ("MsdMediaKeysPlugin initializing");
@@ -101,8 +99,6 @@ msd_media_keys_plugin_class_init (MsdMediaKeysPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdMediaKeysPluginPrivate));
}
static void