summaryrefslogtreecommitdiff
path: root/plugins/a11y-keyboard/msd-a11y-keyboard-plugin.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-01 15:52:13 +0800
committerraveit65 <[email protected]>2019-08-02 23:28:31 +0200
commitace9111b8f3ecdc3c1d94dae4350e12b5b48ec02 (patch)
treef6d183cd2df8e710fd7c11f3221f89bad3055a7b /plugins/a11y-keyboard/msd-a11y-keyboard-plugin.c
parent468d84f415c325e342b61fd102cd24202d37c1f3 (diff)
downloadmate-settings-daemon-ace9111b8f3ecdc3c1d94dae4350e12b5b48ec02.tar.bz2
mate-settings-daemon-ace9111b8f3ecdc3c1d94dae4350e12b5b48ec02.tar.xz
plugins a11y-keyboard: fix deprecated g_type_class_add_private
Diffstat (limited to 'plugins/a11y-keyboard/msd-a11y-keyboard-plugin.c')
-rw-r--r--plugins/a11y-keyboard/msd-a11y-keyboard-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/a11y-keyboard/msd-a11y-keyboard-plugin.c b/plugins/a11y-keyboard/msd-a11y-keyboard-plugin.c
index 57ac653..ef84510 100644
--- a/plugins/a11y-keyboard/msd-a11y-keyboard-plugin.c
+++ b/plugins/a11y-keyboard/msd-a11y-keyboard-plugin.c
@@ -31,14 +31,12 @@ struct MsdA11yKeyboardPluginPrivate {
MsdA11yKeyboardManager *manager;
};
-#define MSD_A11Y_KEYBOARD_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_A11Y_KEYBOARD_PLUGIN, MsdA11yKeyboardPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdA11yKeyboardPlugin, msd_a11y_keyboard_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdA11yKeyboardPlugin, msd_a11y_keyboard_plugin)
static void
msd_a11y_keyboard_plugin_init (MsdA11yKeyboardPlugin *plugin)
{
- plugin->priv = MSD_A11Y_KEYBOARD_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_a11y_keyboard_plugin_get_instance_private (plugin);
g_debug ("MsdA11yKeyboardPlugin initializing");
@@ -99,8 +97,6 @@ msd_a11y_keyboard_plugin_class_init (MsdA11yKeyboardPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdA11yKeyboardPluginPrivate));
}
static void