[gnome-online-accounts] imap-smtp: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] imap-smtp: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 5 Dec 2017 18:24:33 +0000 (UTC)
commit f4b1e8c4a81a9a5d1a984dad4584a0cf479fba1d
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 22 13:47:37 2017 +0100
imap-smtp: Use G_DECLARE_FINAL_TYPE
src/goabackend/goaimapsmtpprovider.c | 8 --------
src/goabackend/goaimapsmtpprovider.h | 9 +++------
2 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/src/goabackend/goaimapsmtpprovider.c b/src/goabackend/goaimapsmtpprovider.c
index 20f08c9..443a479 100644
--- a/src/goabackend/goaimapsmtpprovider.c
+++ b/src/goabackend/goaimapsmtpprovider.c
@@ -24,7 +24,6 @@
#include "goamailclient.h"
#include "goaimapsmtpprovider.h"
#include "goaprovider.h"
-#include "goaprovider-priv.h"
#include "goasmtpauth.h"
#include "goautils.h"
@@ -33,13 +32,6 @@ struct _GoaImapSmtpProvider
GoaProvider parent_instance;
};
-typedef struct _GoaImapSmtpProviderClass GoaImapSmtpProviderClass;
-
-struct _GoaImapSmtpProviderClass
-{
- GoaProviderClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (GoaImapSmtpProvider, goa_imap_smtp_provider, GOA_TYPE_PROVIDER,
goa_provider_ensure_extension_points_registered ();
g_io_extension_point_implement (GOA_PROVIDER_EXTENSION_POINT_NAME,
diff --git a/src/goabackend/goaimapsmtpprovider.h b/src/goabackend/goaimapsmtpprovider.h
index a770078..cd96c57 100644
--- a/src/goabackend/goaimapsmtpprovider.h
+++ b/src/goabackend/goaimapsmtpprovider.h
@@ -25,15 +25,12 @@
#include <glib-object.h>
+#include "goaprovider-priv.h"
+
G_BEGIN_DECLS
#define GOA_TYPE_IMAP_SMTP_PROVIDER (goa_imap_smtp_provider_get_type ())
-#define GOA_IMAP_SMTP_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_IMAP_SMTP_PROVIDER,
GoaImapSmtpProvider))
-#define GOA_IS_IMAP_SMTP_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_IMAP_SMTP_PROVIDER))
-
-typedef struct _GoaImapSmtpProvider GoaImapSmtpProvider;
-
-GType goa_imap_smtp_provider_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (GoaImapSmtpProvider, goa_imap_smtp_provider, GOA, IMAP_SMTP_PROVIDER, GoaProvider);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]