summaryrefslogtreecommitdiff
path: root/plugins/xsettings
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-18 16:33:29 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commit7e2ed0694af07d48a41f85fdacd75b44d3050041 (patch)
treeee88a02d3d1e241d04ff3383a85202feee1fac37 /plugins/xsettings
parent1814481fe8124983693086d955772225e04a494c (diff)
downloadmate-settings-daemon-7e2ed0694af07d48a41f85fdacd75b44d3050041.tar.bz2
mate-settings-daemon-7e2ed0694af07d48a41f85fdacd75b44d3050041.tar.xz
msd-xsettings-plugin: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins/xsettings')
-rw-r--r--plugins/xsettings/msd-xsettings-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/xsettings/msd-xsettings-plugin.c b/plugins/xsettings/msd-xsettings-plugin.c
index faa7068..f8fede1 100644
--- a/plugins/xsettings/msd-xsettings-plugin.c
+++ b/plugins/xsettings/msd-xsettings-plugin.c
@@ -31,14 +31,12 @@ struct MateXSettingsPluginPrivate {
MateXSettingsManager *manager;
};
-#define MATE_XSETTINGS_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MATE_TYPE_XSETTINGS_PLUGIN, MateXSettingsPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MateXSettingsPlugin, mate_xsettings_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MateXSettingsPlugin, mate_xsettings_plugin)
static void
mate_xsettings_plugin_init (MateXSettingsPlugin *plugin)
{
- plugin->priv = MATE_XSETTINGS_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = mate_xsettings_plugin_get_instance_private (plugin);
g_debug ("MateXSettingsPlugin initializing");
@@ -99,8 +97,6 @@ mate_xsettings_plugin_class_init (MateXSettingsPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MateXSettingsPluginPrivate));
}
static void