[gnome-online-accounts/wip/rishi/port-to-g-declare] web-extension: Use G_DECLARE_FINAL_TYPE



commit e8ea569d8da199a3d6ac1311279b9e824857c282
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Dec 6 16:04:30 2019 +0100

    web-extension: Use G_DECLARE_FINAL_TYPE
    
    https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/40

 src/goabackend/goawebextension.c | 5 -----
 src/goabackend/goawebextension.h | 7 +------
 2 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/goabackend/goawebextension.c b/src/goabackend/goawebextension.c
index 6a25ab98..a17edf29 100644
--- a/src/goabackend/goawebextension.c
+++ b/src/goabackend/goawebextension.c
@@ -36,11 +36,6 @@ struct _GoaWebExtension
   gchar *provider_type;
 };
 
-struct _GoaWebExtensionClass
-{
-  GObjectClass parent;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/goabackend/goawebextension.h b/src/goabackend/goawebextension.h
index 4a8cf8f0..994f43f2 100644
--- a/src/goabackend/goawebextension.h
+++ b/src/goabackend/goawebextension.h
@@ -26,13 +26,8 @@
 G_BEGIN_DECLS
 
 #define GOA_TYPE_WEB_EXTENSION            (goa_web_extension_get_type())
-#define GOA_WEB_EXTENSION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOA_TYPE_WEB_EXTENSION, 
GoaWebExtension))
-#define GOA_IS_WEB_EXTENSION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GOA_TYPE_WEB_EXTENSION))
+G_DECLARE_FINAL_TYPE (GoaWebExtension, goa_web_extension, GOA, WEB_EXTENSION, GObject);
 
-typedef struct _GoaWebExtension      GoaWebExtension;
-typedef struct _GoaWebExtensionClass GoaWebExtensionClass;
-
-GType                goa_web_extension_get_type   (void);
 GoaWebExtension     *goa_web_extension_new        (WebKitWebExtension *wk_extension,
                                                    const gchar        *provider_type,
                                                    const gchar        *existing_identity);


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