summaryrefslogtreecommitdiff
path: root/plugins/background/msd-background-plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/background/msd-background-plugin.c')
-rw-r--r--plugins/background/msd-background-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/background/msd-background-plugin.c b/plugins/background/msd-background-plugin.c
index ee6b49c..7957230 100644
--- a/plugins/background/msd-background-plugin.c
+++ b/plugins/background/msd-background-plugin.c
@@ -31,14 +31,12 @@ struct MsdBackgroundPluginPrivate {
MsdBackgroundManager* manager;
};
-#define MSD_BACKGROUND_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE((object), MSD_TYPE_BACKGROUND_PLUGIN, MsdBackgroundPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER(MsdBackgroundPlugin, msd_background_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdBackgroundPlugin, msd_background_plugin)
static void
msd_background_plugin_init (MsdBackgroundPlugin* plugin)
{
- plugin->priv = MSD_BACKGROUND_PLUGIN_GET_PRIVATE(plugin);
+ plugin->priv = msd_background_plugin_get_instance_private (plugin);
g_debug("MsdBackgroundPlugin initializing");
@@ -103,8 +101,6 @@ msd_background_plugin_class_init (MsdBackgroundPluginClass* klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private(klass, sizeof(MsdBackgroundPluginPrivate));
}
static void