summaryrefslogtreecommitdiff
path: root/plugins/rfkill/msd-rfkill-plugin.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-19 14:36:49 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commit59eb1e66550553ac3f55ac07617f1ca8db2f7a23 (patch)
tree8649a69f4e10b7c38ec8e7596d61b3233d9a7c2c /plugins/rfkill/msd-rfkill-plugin.c
parentf3eb01ac8e265c2d65d97565d526f101f835d7ea (diff)
downloadmate-settings-daemon-59eb1e66550553ac3f55ac07617f1ca8db2f7a23.tar.bz2
mate-settings-daemon-59eb1e66550553ac3f55ac07617f1ca8db2f7a23.tar.xz
msd-rfkill-plugin: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins/rfkill/msd-rfkill-plugin.c')
-rw-r--r--plugins/rfkill/msd-rfkill-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/rfkill/msd-rfkill-plugin.c b/plugins/rfkill/msd-rfkill-plugin.c
index ce8a870..a508ca4 100644
--- a/plugins/rfkill/msd-rfkill-plugin.c
+++ b/plugins/rfkill/msd-rfkill-plugin.c
@@ -33,14 +33,12 @@ struct _MsdRfkillPluginPrivate
MsdRfkillManager *manager;
};
-#define MSD_RFKILL_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_RFKILL_PLUGIN, MsdRfkillPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdRfkillPlugin, msd_rfkill_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdRfkillPlugin, msd_rfkill_plugin)
static void
msd_rfkill_plugin_init (MsdRfkillPlugin *plugin)
{
- plugin->priv = MSD_RFKILL_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_rfkill_plugin_get_instance_private (plugin);
g_debug ("MsdRfkillPlugin initializing");
@@ -101,8 +99,6 @@ msd_rfkill_plugin_class_init (MsdRfkillPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdRfkillPluginPrivate));
}
static void