diff options
author | Pablo Barciela <[email protected]> | 2019-08-18 03:46:31 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-08-20 09:01:31 -0400 |
commit | 29f44ae678929b8927cbdaf96a16556a27bdf538 (patch) | |
tree | 21355a210fb8ad6e965349280147106668fd544e /plugins | |
parent | 93385514630fcfa26f73db0065c56debf627b8a4 (diff) | |
download | mate-settings-daemon-29f44ae678929b8927cbdaf96a16556a27bdf538.tar.bz2 mate-settings-daemon-29f44ae678929b8927cbdaf96a16556a27bdf538.tar.xz |
msd-dummy-manager: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/dummy/msd-dummy-manager.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/dummy/msd-dummy-manager.c b/plugins/dummy/msd-dummy-manager.c index eaef9a9..a856f62 100644 --- a/plugins/dummy/msd-dummy-manager.c +++ b/plugins/dummy/msd-dummy-manager.c @@ -39,8 +39,6 @@ #include "mate-settings-profile.h" #include "msd-dummy-manager.h" -#define MSD_DUMMY_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MSD_TYPE_DUMMY_MANAGER, MsdDummyManagerPrivate)) - struct MsdDummyManagerPrivate { gboolean padding; @@ -54,7 +52,7 @@ static void msd_dummy_manager_class_init (MsdDummyManagerClass *klass); static void msd_dummy_manager_init (MsdDummyManager *dummy_manager); static void msd_dummy_manager_finalize (GObject *object); -G_DEFINE_TYPE (MsdDummyManager, msd_dummy_manager, G_TYPE_OBJECT) +G_DEFINE_TYPE_WITH_PRIVATE (MsdDummyManager, msd_dummy_manager, G_TYPE_OBJECT) static gpointer manager_object = NULL; @@ -130,14 +128,12 @@ msd_dummy_manager_class_init (MsdDummyManagerClass *klass) object_class->constructor = msd_dummy_manager_constructor; object_class->dispose = msd_dummy_manager_dispose; object_class->finalize = msd_dummy_manager_finalize; - - g_type_class_add_private (klass, sizeof (MsdDummyManagerPrivate)); } static void msd_dummy_manager_init (MsdDummyManager *manager) { - manager->priv = MSD_DUMMY_MANAGER_GET_PRIVATE (manager); + manager->priv = msd_dummy_manager_get_instance_private (manager); } |