diff options
author | Pablo Barciela <[email protected]> | 2019-08-17 14:38:06 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-08-20 09:01:31 -0400 |
commit | 5ddc646f7850861fd8a3e4ab6c4c7adeb6e1b0ca (patch) | |
tree | b53ebe6237f15013b410f33ad522c66136916eb2 /plugins/keybindings | |
parent | a768ccbc8d08bf289098e3c93dd45ed451dc43dc (diff) | |
download | mate-settings-daemon-5ddc646f7850861fd8a3e4ab6c4c7adeb6e1b0ca.tar.bz2 mate-settings-daemon-5ddc646f7850861fd8a3e4ab6c4c7adeb6e1b0ca.tar.xz |
msd-keybindings-plugin: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins/keybindings')
-rw-r--r-- | plugins/keybindings/msd-keybindings-plugin.c | 10 |
1 files changed, 3 insertions, 7 deletions
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 +} |