summaryrefslogtreecommitdiff
path: root/plugins/xrdb/msd-xrdb-manager.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-18 16:31:30 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commit1814481fe8124983693086d955772225e04a494c (patch)
treed44dafd2c5cac7fbed0c2f4677b483e1993efdeb /plugins/xrdb/msd-xrdb-manager.c
parent6e84590176ef30b927d5d9aaa9e27a279d6796bc (diff)
downloadmate-settings-daemon-1814481fe8124983693086d955772225e04a494c.tar.bz2
mate-settings-daemon-1814481fe8124983693086d955772225e04a494c.tar.xz
msd-xrdb-manager: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins/xrdb/msd-xrdb-manager.c')
-rw-r--r--plugins/xrdb/msd-xrdb-manager.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/xrdb/msd-xrdb-manager.c b/plugins/xrdb/msd-xrdb-manager.c
index abbb1e4..34f61e3 100644
--- a/plugins/xrdb/msd-xrdb-manager.c
+++ b/plugins/xrdb/msd-xrdb-manager.c
@@ -40,8 +40,6 @@
#include "mate-settings-profile.h"
#include "msd-xrdb-manager.h"
-#define MSD_XRDB_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MSD_TYPE_XRDB_MANAGER, MsdXrdbManagerPrivate))
-
#define SYSTEM_AD_DIR SYSCONFDIR "/xrdb"
#define GENERAL_AD SYSTEM_AD_DIR "/General.ad"
#define USER_AD_DIR ".config/mate/xrdb"
@@ -57,7 +55,7 @@ static void msd_xrdb_manager_class_init (MsdXrdbManagerClass *klass);
static void msd_xrdb_manager_init (MsdXrdbManager *xrdb_manager);
static void msd_xrdb_manager_finalize (GObject *object);
-G_DEFINE_TYPE (MsdXrdbManager, msd_xrdb_manager, G_TYPE_OBJECT)
+G_DEFINE_TYPE_WITH_PRIVATE (MsdXrdbManager, msd_xrdb_manager, G_TYPE_OBJECT)
static gpointer manager_object = NULL;
static void
@@ -530,14 +528,12 @@ msd_xrdb_manager_class_init (MsdXrdbManagerClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = msd_xrdb_manager_finalize;
-
- g_type_class_add_private (klass, sizeof (MsdXrdbManagerPrivate));
}
static void
msd_xrdb_manager_init (MsdXrdbManager *manager)
{
- manager->priv = MSD_XRDB_MANAGER_GET_PRIVATE (manager);
+ manager->priv = msd_xrdb_manager_get_instance_private (manager);
}