diff options
author | Pablo Barciela <[email protected]> | 2019-08-17 14:59:16 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-08-20 09:01:31 -0400 |
commit | a7ac3d41abc77a4c7d2afb00f4ee5fd2d580e8e8 (patch) | |
tree | 17b614d385336fe4a863dd0ee8c6889697f85d61 | |
parent | 1cb5ea510bb4f21b44c23982ae869242f3fb4767 (diff) | |
download | mate-settings-daemon-a7ac3d41abc77a4c7d2afb00f4ee5fd2d580e8e8.tar.bz2 mate-settings-daemon-a7ac3d41abc77a4c7d2afb00f4ee5fd2d580e8e8.tar.xz |
msd-housekeeping-plugin: avoid 'g_type_class_add_private'
-rw-r--r-- | plugins/housekeeping/msd-housekeeping-plugin.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/housekeeping/msd-housekeeping-plugin.c b/plugins/housekeeping/msd-housekeeping-plugin.c index 40cd547..8a829fe 100644 --- a/plugins/housekeeping/msd-housekeeping-plugin.c +++ b/plugins/housekeeping/msd-housekeeping-plugin.c @@ -31,14 +31,12 @@ struct MsdHousekeepingPluginPrivate { MsdHousekeepingManager *manager; }; -#define MSD_HOUSEKEEPING_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_HOUSEKEEPING_PLUGIN, MsdHousekeepingPluginPrivate)) - -MATE_SETTINGS_PLUGIN_REGISTER (MsdHousekeepingPlugin, msd_housekeeping_plugin) +MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdHousekeepingPlugin, msd_housekeeping_plugin) static void msd_housekeeping_plugin_init (MsdHousekeepingPlugin *plugin) { - plugin->priv = MSD_HOUSEKEEPING_PLUGIN_GET_PRIVATE (plugin); + plugin->priv = msd_housekeeping_plugin_get_instance_private (plugin); g_debug ("MsdHousekeepingPlugin initializing"); @@ -99,8 +97,6 @@ msd_housekeeping_plugin_class_init (MsdHousekeepingPluginClass *klass) plugin_class->activate = impl_activate; plugin_class->deactivate = impl_deactivate; - - g_type_class_add_private (klass, sizeof (MsdHousekeepingPluginPrivate)); } static void |