[gnome-online-accounts] client: Use G_DECLARE_FINAL_TYPE



commit 08cdc9f31265d0c84e63da5a78308a19bafe91eb
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Jan 9 15:12:52 2017 +0100

    client: Use G_DECLARE_FINAL_TYPE

 src/goa/goaclient.c |    5 -----
 src/goa/goaclient.h |    5 +----
 src/goa/goatypes.h  |    3 ---
 3 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/goa/goaclient.c b/src/goa/goaclient.c
index fbe478e..8d1c410 100644
--- a/src/goa/goaclient.c
+++ b/src/goa/goaclient.c
@@ -50,11 +50,6 @@ struct _GoaClient
   GDBusObjectManager *object_manager;
 };
 
-typedef struct
-{
-  GObjectClass parent_class;
-} GoaClientClass;
-
 enum
 {
   PROP_0,
diff --git a/src/goa/goaclient.h b/src/goa/goaclient.h
index b1b0f2c..4ef473f 100644
--- a/src/goa/goaclient.h
+++ b/src/goa/goaclient.h
@@ -23,16 +23,13 @@
 #ifndef __GOA_CLIENT_H__
 #define __GOA_CLIENT_H__
 
-#include <goa/goatypes.h>
 #include <goa/goa-generated.h>
 
 G_BEGIN_DECLS
 
 #define GOA_TYPE_CLIENT  (goa_client_get_type ())
-#define GOA_CLIENT(o)    (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_CLIENT, GoaClient))
-#define GOA_IS_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_CLIENT))
+G_DECLARE_FINAL_TYPE (GoaClient, goa_client, GOA, CLIENT, GObject);
 
-GType               goa_client_get_type           (void) G_GNUC_CONST;
 void                goa_client_new                (GCancellable        *cancellable,
                                                    GAsyncReadyCallback  callback,
                                                    gpointer             user_data);
diff --git a/src/goa/goatypes.h b/src/goa/goatypes.h
index d8d8dde..dda85b1 100644
--- a/src/goa/goatypes.h
+++ b/src/goa/goatypes.h
@@ -28,9 +28,6 @@
 
 G_BEGIN_DECLS
 
-struct _GoaClient;
-typedef struct _GoaClient GoaClient;
-
 G_END_DECLS
 
 #endif /* __GOA_TYPES_H__ */


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