[gnome-online-accounts] imap-auth-login: Use G_DECLARE_FINAL_TYPE



commit 1fe9f7be77c277403af8835462d34ecd32739f57
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Nov 22 13:43:18 2017 +0100

    imap-auth-login: Use G_DECLARE_FINAL_TYPE

 src/goabackend/goaimapauthlogin.c |    6 ------
 src/goabackend/goaimapauthlogin.h |    6 +-----
 2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/goabackend/goaimapauthlogin.c b/src/goabackend/goaimapauthlogin.c
index 1d058c0..6014cfc 100644
--- a/src/goabackend/goaimapauthlogin.c
+++ b/src/goabackend/goaimapauthlogin.c
@@ -52,12 +52,6 @@ struct _GoaImapAuthLogin
   gchar *password;
 };
 
-typedef struct
-{
-  GoaMailAuthClass parent_class;
-
-} GoaImapAuthLoginClass;
-
 enum
 {
   PROP_0,
diff --git a/src/goabackend/goaimapauthlogin.h b/src/goabackend/goaimapauthlogin.h
index 46f1e8f..1f8e1e8 100644
--- a/src/goabackend/goaimapauthlogin.h
+++ b/src/goabackend/goaimapauthlogin.h
@@ -31,12 +31,8 @@
 G_BEGIN_DECLS
 
 #define GOA_TYPE_IMAP_AUTH_LOGIN         (goa_imap_auth_login_get_type ())
-#define GOA_IMAP_AUTH_LOGIN(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_IMAP_AUTH_LOGIN, 
GoaImapAuthLogin))
-#define GOA_IS_IMAP_AUTH_LOGIN(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_IMAP_AUTH_LOGIN))
+G_DECLARE_FINAL_TYPE (GoaImapAuthLogin, goa_imap_auth_login, GOA, IMAP_AUTH_LOGIN, GoaMailAuth);
 
-typedef struct _GoaImapAuthLogin GoaImapAuthLogin;
-
-GType        goa_imap_auth_login_get_type  (void) G_GNUC_CONST;
 GoaMailAuth *goa_imap_auth_login_new       (const gchar       *user_name,
                                             const gchar       *password);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]