[gnome-online-accounts/wip/rishi/port-to-g-declare: 3/7] mail-client: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/port-to-g-declare: 3/7] mail-client: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 5 Dec 2019 19:12:37 +0000 (UTC)
commit 4515fe7556f01bbda2989c950b1045f44d6c5c9d
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Dec 5 18:41:19 2019 +0100
mail-client: Use G_DECLARE_FINAL_TYPE
src/goabackend/goamailclient.c | 7 -------
src/goabackend/goamailclient.h | 6 +-----
2 files changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/src/goabackend/goamailclient.c b/src/goabackend/goamailclient.c
index 8822b856..b6586fbe 100644
--- a/src/goabackend/goamailclient.c
+++ b/src/goabackend/goamailclient.c
@@ -32,13 +32,6 @@ struct _GoaMailClient
GObject parent_instance;
};
-typedef struct _GoaMailClientClass GoaMailClientClass;
-
-struct _GoaMailClientClass
-{
- GObjectClass parent_class;
-};
-
G_DEFINE_TYPE (GoaMailClient, goa_mail_client, G_TYPE_OBJECT);
/* ---------------------------------------------------------------------------------------------------- */
diff --git a/src/goabackend/goamailclient.h b/src/goabackend/goamailclient.h
index ac64439e..8d155094 100644
--- a/src/goabackend/goamailclient.h
+++ b/src/goabackend/goamailclient.h
@@ -33,12 +33,8 @@
G_BEGIN_DECLS
#define GOA_TYPE_MAIL_CLIENT (goa_mail_client_get_type ())
-#define GOA_MAIL_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_MAIL_CLIENT, GoaMailClient))
-#define GOA_IS_MAIL_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_MAIL_CLIENT))
+G_DECLARE_FINAL_TYPE (GoaMailClient, goa_mail_client, GOA, MAIL_CLIENT, GObject);
-typedef struct _GoaMailClient GoaMailClient;
-
-GType goa_mail_client_get_type (void) G_GNUC_CONST;
GoaMailClient *goa_mail_client_new (void);
void goa_mail_client_check (GoaMailClient *self,
const gchar *host_and_port,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]