summaryrefslogtreecommitdiff
path: root/plugins/mouse/msd-mouse-plugin.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-01 16:23:36 +0800
committerraveit65 <[email protected]>2019-07-27 16:11:38 +0200
commita3446445931ca2177b708ef4893e4f8de20484f0 (patch)
treed705a95e3014fd90fbff654c53cb1c526e6c39c2 /plugins/mouse/msd-mouse-plugin.c
parent962c75b3cf9d301227d7f584fa913ef21f28bd78 (diff)
downloadmate-settings-daemon-a3446445931ca2177b708ef4893e4f8de20484f0.tar.bz2
mate-settings-daemon-a3446445931ca2177b708ef4893e4f8de20484f0.tar.xz
plugins mouse: fix deprecated g_type_class_add_private
Diffstat (limited to 'plugins/mouse/msd-mouse-plugin.c')
-rw-r--r--plugins/mouse/msd-mouse-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/mouse/msd-mouse-plugin.c b/plugins/mouse/msd-mouse-plugin.c
index 19b96d7..730b8ce 100644
--- a/plugins/mouse/msd-mouse-plugin.c
+++ b/plugins/mouse/msd-mouse-plugin.c
@@ -31,14 +31,12 @@ struct MsdMousePluginPrivate {
MsdMouseManager *manager;
};
-#define MSD_MOUSE_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_MOUSE_PLUGIN, MsdMousePluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdMousePlugin, msd_mouse_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdMousePlugin, msd_mouse_plugin)
static void
msd_mouse_plugin_init (MsdMousePlugin *plugin)
{
- plugin->priv = MSD_MOUSE_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_mouse_plugin_get_instance_private (plugin);
g_debug ("MsdMousePlugin initializing");
@@ -99,8 +97,6 @@ msd_mouse_plugin_class_init (MsdMousePluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdMousePluginPrivate));
}
static void