summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-18 16:22:57 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commit78d5609d0aa09ee26735faf278e93265dcbeec55 (patch)
tree0096aa26380f9458bb74d2067f14c56958000f66
parentd226a85fe335188a65a98f033911d5a4371e5b2d (diff)
downloadmate-settings-daemon-78d5609d0aa09ee26735faf278e93265dcbeec55.tar.bz2
mate-settings-daemon-78d5609d0aa09ee26735faf278e93265dcbeec55.tar.xz
msd-xrandr-plugin: avoid 'g_type_class_add_private'
-rw-r--r--plugins/xrandr/msd-xrandr-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/xrandr/msd-xrandr-plugin.c b/plugins/xrandr/msd-xrandr-plugin.c
index 7680a0a..0175138 100644
--- a/plugins/xrandr/msd-xrandr-plugin.c
+++ b/plugins/xrandr/msd-xrandr-plugin.c
@@ -31,14 +31,12 @@ struct MsdXrandrPluginPrivate {
MsdXrandrManager *manager;
};
-#define MSD_XRANDR_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_XRANDR_PLUGIN, MsdXrandrPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdXrandrPlugin, msd_xrandr_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdXrandrPlugin, msd_xrandr_plugin)
static void
msd_xrandr_plugin_init (MsdXrandrPlugin *plugin)
{
- plugin->priv = MSD_XRANDR_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_xrandr_plugin_get_instance_private (plugin);
g_debug ("MsdXrandrPlugin initializing");
@@ -99,8 +97,6 @@ msd_xrandr_plugin_class_init (MsdXrandrPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdXrandrPluginPrivate));
}
static void