summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmate-desktop/mate-rr-config.c')
-rw-r--r--libmate-desktop/mate-rr-config.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libmate-desktop/mate-rr-config.c b/libmate-desktop/mate-rr-config.c
index 0f96a9b..6048db0 100644
--- a/libmate-desktop/mate-rr-config.c
+++ b/libmate-desktop/mate-rr-config.c
@@ -91,7 +91,7 @@ enum {
PROP_LAST
};
-G_DEFINE_TYPE (MateRRConfig, mate_rr_config, G_TYPE_OBJECT)
+G_DEFINE_TYPE_WITH_PRIVATE (MateRRConfig, mate_rr_config, G_TYPE_OBJECT)
typedef struct Parser Parser;
@@ -449,7 +449,7 @@ out:
static void
mate_rr_config_init (MateRRConfig *self)
{
- self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, MATE_TYPE_RR_CONFIG, MateRRConfigPrivate);
+ self->priv = mate_rr_config_get_instance_private (self);
self->priv->clone = FALSE;
self->priv->screen = NULL;
@@ -722,8 +722,6 @@ mate_rr_config_class_init (MateRRConfigClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
- g_type_class_add_private (klass, sizeof (MateRROutputInfoPrivate));
-
gobject_class->set_property = mate_rr_config_set_property;
gobject_class->finalize = mate_rr_config_finalize;