[gnome-online-accounts/wip/rishi/port-to-g-declare: 7/7] smtp-auth: Use G_DECLARE_FINAL_TYPE



commit 7c3c0253a7c1f38f60ef1bdd12115c14bbae37cb
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Dec 5 20:01:33 2019 +0100

    smtp-auth: Use G_DECLARE_FINAL_TYPE

 src/goabackend/goasmtpauth.c | 6 ------
 src/goabackend/goasmtpauth.h | 6 +-----
 2 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/goabackend/goasmtpauth.c b/src/goabackend/goasmtpauth.c
index feebcd01..3c4351a7 100644
--- a/src/goabackend/goasmtpauth.c
+++ b/src/goabackend/goasmtpauth.c
@@ -55,12 +55,6 @@ struct _GoaSmtpAuth
   gchar *password;
 };
 
-typedef struct
-{
-  GoaMailAuthClass parent_class;
-
-} GoaSmtpAuthClass;
-
 enum
 {
   PROP_0,
diff --git a/src/goabackend/goasmtpauth.h b/src/goabackend/goasmtpauth.h
index 4d1919a7..dd70e860 100644
--- a/src/goabackend/goasmtpauth.h
+++ b/src/goabackend/goasmtpauth.h
@@ -32,12 +32,8 @@
 G_BEGIN_DECLS
 
 #define GOA_TYPE_SMTP_AUTH         (goa_smtp_auth_get_type ())
-#define GOA_SMTP_AUTH(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_SMTP_AUTH, GoaSmtpAuth))
-#define GOA_IS_SMTP_AUTH(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_SMTP_AUTH))
+G_DECLARE_FINAL_TYPE (GoaSmtpAuth, goa_smtp_auth, GOA, SMTP_AUTH, GoaMailAuth);
 
-typedef struct _GoaSmtpAuth GoaSmtpAuth;
-
-GType        goa_smtp_auth_get_type  (void) G_GNUC_CONST;
 GoaMailAuth *goa_smtp_auth_new       (const gchar       *domain,
                                       const gchar       *user_name,
                                       const gchar       *password);


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