summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-18 03:51:52 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commitc940296930015ce9e247bf7c5bbcc6d8bcc57968 (patch)
tree1c17ed6ea1bb8a5c753f50701c924195d5e6e80e
parent92dc29d64b7bbda84381bcbb87daf5a44c3aec3d (diff)
downloadmate-settings-daemon-c940296930015ce9e247bf7c5bbcc6d8bcc57968.tar.bz2
mate-settings-daemon-c940296930015ce9e247bf7c5bbcc6d8bcc57968.tar.xz
msd-typing-break-plugin: avoid 'g_type_class_add_private'
-rw-r--r--plugins/typing-break/msd-typing-break-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/typing-break/msd-typing-break-plugin.c b/plugins/typing-break/msd-typing-break-plugin.c
index 3b5770b..c47a111 100644
--- a/plugins/typing-break/msd-typing-break-plugin.c
+++ b/plugins/typing-break/msd-typing-break-plugin.c
@@ -31,14 +31,12 @@ struct MsdTypingBreakPluginPrivate {
MsdTypingBreakManager *manager;
};
-#define MSD_TYPING_BREAK_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_TYPING_BREAK_PLUGIN, MsdTypingBreakPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdTypingBreakPlugin, msd_typing_break_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdTypingBreakPlugin, msd_typing_break_plugin)
static void
msd_typing_break_plugin_init (MsdTypingBreakPlugin *plugin)
{
- plugin->priv = MSD_TYPING_BREAK_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_typing_break_plugin_get_instance_private (plugin);
g_debug ("MsdTypingBreakPlugin initializing");
@@ -99,8 +97,6 @@ msd_typing_break_plugin_class_init (MsdTypingBreakPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdTypingBreakPluginPrivate));
}
static void