[gnome-online-accounts/wip/rishi/gtask2: 8/13] ewsclient: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/gtask2: 8/13] ewsclient: Use G_DECLARE_FINAL_TYPE
- Date: Mon, 9 Jan 2017 19:03:06 +0000 (UTC)
commit 31f621af64cbc76112076fa9a3484a8f0d107fdf
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jan 9 15:34:40 2017 +0100
ewsclient: Use G_DECLARE_FINAL_TYPE
src/goabackend/goaewsclient.c | 7 -------
src/goabackend/goaewsclient.h | 6 +-----
2 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/goabackend/goaewsclient.c b/src/goabackend/goaewsclient.c
index 7070d5d..a889a99 100644
--- a/src/goabackend/goaewsclient.c
+++ b/src/goabackend/goaewsclient.c
@@ -37,13 +37,6 @@ struct _GoaEwsClient
GObject parent_instance;
};
-typedef struct _GoaEwsClientClass GoaEwsClientClass;
-
-struct _GoaEwsClientClass
-{
- GObjectClass parent_class;
-};
-
G_DEFINE_TYPE (GoaEwsClient, goa_ews_client, G_TYPE_OBJECT);
/* ---------------------------------------------------------------------------------------------------- */
diff --git a/src/goabackend/goaewsclient.h b/src/goabackend/goaewsclient.h
index 617b3ff..a8af497 100644
--- a/src/goabackend/goaewsclient.h
+++ b/src/goabackend/goaewsclient.h
@@ -30,12 +30,8 @@
G_BEGIN_DECLS
#define GOA_TYPE_EWS_CLIENT (goa_ews_client_get_type ())
-#define GOA_EWS_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_EWS_CLIENT, GoaEwsClient))
-#define GOA_IS_EWS_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_EWS_CLIENT))
+G_DECLARE_FINAL_TYPE (GoaEwsClient, goa_ews_client, GOA, EWS_CLIENT, GObject);
-typedef struct _GoaEwsClient GoaEwsClient;
-
-GType goa_ews_client_get_type (void) G_GNUC_CONST;
GoaEwsClient *goa_ews_client_new (void);
void goa_ews_client_autodiscover (GoaEwsClient *self,
const gchar *email,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]