[gnome-online-accounts] facebook: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] facebook: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 31 May 2017 14:41:21 +0000 (UTC)
commit c47cf2d5b09c4e1abd19447f8857308786054fb8
Author: Debarshi Ray <debarshir gnome org>
Date: Wed May 31 13:32:10 2017 +0200
facebook: Use G_DECLARE_FINAL_TYPE
src/goabackend/goafacebookprovider.c | 8 --------
src/goabackend/goafacebookprovider.h | 9 +++------
2 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/src/goabackend/goafacebookprovider.c b/src/goabackend/goafacebookprovider.c
index 8324d7f..de74817 100644
--- a/src/goabackend/goafacebookprovider.c
+++ b/src/goabackend/goafacebookprovider.c
@@ -25,7 +25,6 @@
#include "goaprovider.h"
#include "goaprovider-priv.h"
#include "goaoauth2provider.h"
-#include "goaoauth2provider-priv.h"
#include "goafacebookprovider.h"
#include "goaobjectskeletonutils.h"
@@ -34,13 +33,6 @@ struct _GoaFacebookProvider
GoaOAuth2Provider parent_instance;
};
-typedef struct _GoaFacebookProviderClass GoaFacebookProviderClass;
-
-struct _GoaFacebookProviderClass
-{
- GoaOAuth2ProviderClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (GoaFacebookProvider, goa_facebook_provider, GOA_TYPE_OAUTH2_PROVIDER,
goa_provider_ensure_extension_points_registered ();
g_io_extension_point_implement (GOA_PROVIDER_EXTENSION_POINT_NAME,
diff --git a/src/goabackend/goafacebookprovider.h b/src/goabackend/goafacebookprovider.h
index 2bdcd59..81e4da5 100644
--- a/src/goabackend/goafacebookprovider.h
+++ b/src/goabackend/goafacebookprovider.h
@@ -25,15 +25,12 @@
#include <glib-object.h>
+#include "goaoauth2provider-priv.h"
+
G_BEGIN_DECLS
#define GOA_TYPE_FACEBOOK_PROVIDER (goa_facebook_provider_get_type ())
-#define GOA_FACEBOOK_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_FACEBOOK_PROVIDER,
GoaFacebookProvider))
-#define GOA_IS_FACEBOOK_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_FACEBOOK_PROVIDER))
-
-typedef struct _GoaFacebookProvider GoaFacebookProvider;
-
-GType goa_facebook_provider_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (GoaFacebookProvider, goa_facebook_provider, GOA, FACEBOOK_PROVIDER, GoaOAuth2Provider);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]