summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-19 14:48:30 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commitec233430a69ed8d09b83765a60db0f611c4be14e (patch)
tree582b4becf65172d055787ae645dce964ded1c431
parent3143f2e3271aee966cc54f9d867ba7f1d45f214e (diff)
downloadmate-settings-daemon-ec233430a69ed8d09b83765a60db0f611c4be14e.tar.bz2
mate-settings-daemon-ec233430a69ed8d09b83765a60db0f611c4be14e.tar.xz
msd-clipboard-plugin: avoid 'g_type_class_add_private'
-rw-r--r--plugins/clipboard/msd-clipboard-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/clipboard/msd-clipboard-plugin.c b/plugins/clipboard/msd-clipboard-plugin.c
index da00eda..7951c60 100644
--- a/plugins/clipboard/msd-clipboard-plugin.c
+++ b/plugins/clipboard/msd-clipboard-plugin.c
@@ -31,14 +31,12 @@ struct MsdClipboardPluginPrivate {
MsdClipboardManager *manager;
};
-#define MSD_CLIPBOARD_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_CLIPBOARD_PLUGIN, MsdClipboardPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdClipboardPlugin, msd_clipboard_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdClipboardPlugin, msd_clipboard_plugin)
static void
msd_clipboard_plugin_init (MsdClipboardPlugin *plugin)
{
- plugin->priv = MSD_CLIPBOARD_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_clipboard_plugin_get_instance_private (plugin);
g_debug ("MsdClipboardPlugin initializing");
@@ -99,8 +97,6 @@ msd_clipboard_plugin_class_init (MsdClipboardPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdClipboardPluginPrivate));
}
static void