From 5ddc646f7850861fd8a3e4ab6c4c7adeb6e1b0ca Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 17 Aug 2019 14:38:06 +0200 Subject: msd-keybindings-plugin: avoid 'g_type_class_add_private' --- plugins/keybindings/msd-keybindings-plugin.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/keybindings/msd-keybindings-plugin.c b/plugins/keybindings/msd-keybindings-plugin.c index 68b86d3..ddf186a 100644 --- a/plugins/keybindings/msd-keybindings-plugin.c +++ b/plugins/keybindings/msd-keybindings-plugin.c @@ -31,14 +31,12 @@ struct MsdKeybindingsPluginPrivate { MsdKeybindingsManager *manager; }; -#define MSD_KEYBINDINGS_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_KEYBINDINGS_PLUGIN, MsdKeybindingsPluginPrivate)) - -MATE_SETTINGS_PLUGIN_REGISTER (MsdKeybindingsPlugin, msd_keybindings_plugin) +MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdKeybindingsPlugin, msd_keybindings_plugin) static void msd_keybindings_plugin_init (MsdKeybindingsPlugin *plugin) { - plugin->priv = MSD_KEYBINDINGS_PLUGIN_GET_PRIVATE (plugin); + plugin->priv = msd_keybindings_plugin_get_instance_private (plugin); g_debug ("MsdKeybindingsPlugin initializing"); @@ -99,11 +97,9 @@ msd_keybindings_plugin_class_init (MsdKeybindingsPluginClass *klass) plugin_class->activate = impl_activate; plugin_class->deactivate = impl_deactivate; - - g_type_class_add_private (klass, sizeof (MsdKeybindingsPluginPrivate)); } static void msd_keybindings_plugin_class_finalize (MsdKeybindingsPluginClass *klass) { -} \ No newline at end of file +} -- cgit v1.2.1