summaryrefslogtreecommitdiff
path: root/plugins/xrdb
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-18 16:29:45 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commit6e84590176ef30b927d5d9aaa9e27a279d6796bc (patch)
treeaa4c3f2209e06e13c81341f34ab572a02984378f /plugins/xrdb
parentd767e210a1dd5269c7461ad15338e8892832bcd6 (diff)
downloadmate-settings-daemon-6e84590176ef30b927d5d9aaa9e27a279d6796bc.tar.bz2
mate-settings-daemon-6e84590176ef30b927d5d9aaa9e27a279d6796bc.tar.xz
msd-xrdb-plugin: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins/xrdb')
-rw-r--r--plugins/xrdb/msd-xrdb-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/xrdb/msd-xrdb-plugin.c b/plugins/xrdb/msd-xrdb-plugin.c
index 6c79c57..69a3660 100644
--- a/plugins/xrdb/msd-xrdb-plugin.c
+++ b/plugins/xrdb/msd-xrdb-plugin.c
@@ -31,14 +31,12 @@ struct MsdXrdbPluginPrivate {
MsdXrdbManager *manager;
};
-#define MSD_XRDB_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_XRDB_PLUGIN, MsdXrdbPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdXrdbPlugin, msd_xrdb_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdXrdbPlugin, msd_xrdb_plugin)
static void
msd_xrdb_plugin_init (MsdXrdbPlugin *plugin)
{
- plugin->priv = MSD_XRDB_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_xrdb_plugin_get_instance_private (plugin);
g_debug ("MsdXrdbPlugin initializing");
@@ -99,8 +97,6 @@ msd_xrdb_plugin_class_init (MsdXrdbPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdXrdbPluginPrivate));
}
static void