summaryrefslogtreecommitdiff
path: root/plugins/keyboard/msd-keyboard-plugin.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-01 15:51:42 +0800
committerlukefromdc <[email protected]>2019-07-17 04:35:12 +0000
commit12ef1a821ebb63853b2d2e80f2559feca98bf7dc (patch)
tree67fc49fd8bc35932a0161c9868f28948e5ebce32 /plugins/keyboard/msd-keyboard-plugin.c
parentde2761ddea2ca22cba4bb3668fb4328352210775 (diff)
downloadmate-settings-daemon-12ef1a821ebb63853b2d2e80f2559feca98bf7dc.tar.bz2
mate-settings-daemon-12ef1a821ebb63853b2d2e80f2559feca98bf7dc.tar.xz
plugins keyboard: fix deprecated g_type_class_add_private
Diffstat (limited to 'plugins/keyboard/msd-keyboard-plugin.c')
-rw-r--r--plugins/keyboard/msd-keyboard-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/keyboard/msd-keyboard-plugin.c b/plugins/keyboard/msd-keyboard-plugin.c
index 97ad9ef..ed16759 100644
--- a/plugins/keyboard/msd-keyboard-plugin.c
+++ b/plugins/keyboard/msd-keyboard-plugin.c
@@ -31,14 +31,12 @@ struct MsdKeyboardPluginPrivate {
MsdKeyboardManager *manager;
};
-#define MSD_KEYBOARD_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_KEYBOARD_PLUGIN, MsdKeyboardPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdKeyboardPlugin, msd_keyboard_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdKeyboardPlugin, msd_keyboard_plugin)
static void
msd_keyboard_plugin_init (MsdKeyboardPlugin *plugin)
{
- plugin->priv = MSD_KEYBOARD_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_keyboard_plugin_get_instance_private (plugin);
g_debug ("MsdKeyboardPlugin initializing");
@@ -99,8 +97,6 @@ msd_keyboard_plugin_class_init (MsdKeyboardPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdKeyboardPluginPrivate));
}
static void