summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-18 03:48:13 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commita989ee04b2fa66e0769b690888999fb6ce44f74d (patch)
tree7aabd32ed06aa484dd506a405c4d1ddfbf7bc1c6
parent29f44ae678929b8927cbdaf96a16556a27bdf538 (diff)
downloadmate-settings-daemon-a989ee04b2fa66e0769b690888999fb6ce44f74d.tar.bz2
mate-settings-daemon-a989ee04b2fa66e0769b690888999fb6ce44f74d.tar.xz
msd-dummy-plugin: avoid 'g_type_class_add_private'
-rw-r--r--plugins/dummy/msd-dummy-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/dummy/msd-dummy-plugin.c b/plugins/dummy/msd-dummy-plugin.c
index ff4046d..e3a6ca9 100644
--- a/plugins/dummy/msd-dummy-plugin.c
+++ b/plugins/dummy/msd-dummy-plugin.c
@@ -31,14 +31,12 @@ struct MsdDummyPluginPrivate {
MsdDummyManager *manager;
};
-#define MSD_DUMMY_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_DUMMY_PLUGIN, MsdDummyPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdDummyPlugin, msd_dummy_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdDummyPlugin, msd_dummy_plugin)
static void
msd_dummy_plugin_init (MsdDummyPlugin *plugin)
{
- plugin->priv = MSD_DUMMY_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_dummy_plugin_get_instance_private (plugin);
g_debug ("MsdDummyPlugin initializing");
@@ -99,8 +97,6 @@ msd_dummy_plugin_class_init (MsdDummyPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdDummyPluginPrivate));
}
static void