[gnome-online-accounts] mail-auth: Use G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] mail-auth: Use G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE
- Date: Tue, 5 Dec 2017 18:26:20 +0000 (UTC)
commit ad5beae35d7d1a8371006429f747d20099e200fa
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 22 17:34:46 2017 +0100
mail-auth: Use G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE
This paves the way for improving our GObject use and reducing the
amount of boilerplate.
src/goabackend/goamailauth.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/goabackend/goamailauth.c b/src/goabackend/goamailauth.c
index d8d9fcd..d657cdb 100644
--- a/src/goabackend/goamailauth.c
+++ b/src/goabackend/goamailauth.c
@@ -35,7 +35,7 @@ enum
PROP_OUTPUT
};
-G_DEFINE_ABSTRACT_TYPE (GoaMailAuth, goa_mail_auth, G_TYPE_OBJECT);
+G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GoaMailAuth, goa_mail_auth, G_TYPE_OBJECT);
/* ---------------------------------------------------------------------------------------------------- */
@@ -140,7 +140,7 @@ goa_mail_auth_set_property (GObject *object,
static void
goa_mail_auth_init (GoaMailAuth *self)
{
- self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GOA_TYPE_MAIL_AUTH, GoaMailAuthPrivate);
+ self->priv = goa_mail_auth_get_instance_private (self);
}
static void
@@ -169,8 +169,6 @@ goa_mail_auth_class_init (GoaMailAuthClass *klass)
G_TYPE_DATA_OUTPUT_STREAM,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
-
- g_type_class_add_private (klass, sizeof (GoaMailAuthPrivate));
}
/* ---------------------------------------------------------------------------------------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]