[gnome-online-accounts] mail-auth: Use G_DECLARE_DERIVABLE_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] mail-auth: Use G_DECLARE_DERIVABLE_TYPE
- Date: Tue, 5 Dec 2017 18:44:15 +0000 (UTC)
commit fe462568ffba8d1fb0ed7bedbe5cfc23a3229971
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 22 18:08:37 2017 +0100
mail-auth: Use G_DECLARE_DERIVABLE_TYPE
src/goabackend/goamailauth.h | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/src/goabackend/goamailauth.h b/src/goabackend/goamailauth.h
index d9e3a03..50ad04c 100644
--- a/src/goabackend/goamailauth.h
+++ b/src/goabackend/goamailauth.h
@@ -30,22 +30,10 @@
G_BEGIN_DECLS
#define GOA_TYPE_MAIL_AUTH (goa_mail_auth_get_type ())
-#define GOA_MAIL_AUTH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_MAIL_AUTH, GoaMailAuth))
-#define GOA_MAIL_AUTH_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_TYPE_MAIL_AUTH, GoaMailAuthClass))
-#define GOA_MAIL_AUTH_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_TYPE_MAIL_AUTH, GoaMailAuthClass))
-#define GOA_IS_MAIL_AUTH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_MAIL_AUTH))
-#define GOA_IS_MAIL_AUTH_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_TYPE_MAIL_AUTH))
+G_DECLARE_DERIVABLE_TYPE (GoaMailAuth, goa_mail_auth, GOA, MAIL_AUTH, GObject);
-typedef struct _GoaMailAuth GoaMailAuth;
-typedef struct _GoaMailAuthClass GoaMailAuthClass;
typedef struct _GoaMailAuthPrivate GoaMailAuthPrivate;
-struct _GoaMailAuth
-{
- /*< private >*/
- GObject parent_instance;
-};
-
struct _GoaMailAuthClass
{
GObjectClass parent_class;
@@ -58,7 +46,6 @@ struct _GoaMailAuthClass
GError **error);
};
-GType goa_mail_auth_get_type (void) G_GNUC_CONST;
gboolean goa_mail_auth_is_needed (GoaMailAuth *self);
void goa_mail_auth_run (GoaMailAuth *self,
GCancellable *cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]