[gnome-online-accounts/wip/rishi/port-to-g-declare] kerberos-identity: 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] kerberos-identity: Use G_DECLARE_FINAL_TYPE
- Date: Mon, 16 Dec 2019 13:52:05 +0000 (UTC)
commit 08e1bf8be600e2e71eb7aaaf7690737c76fd5e79
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Dec 16 14:34:01 2019 +0100
kerberos-identity: Use G_DECLARE_FINAL_TYPE
https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/40
src/goaidentity/goakerberosidentity.c | 5 -----
src/goaidentity/goakerberosidentity.h | 7 +------
2 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/goaidentity/goakerberosidentity.c b/src/goaidentity/goakerberosidentity.c
index 61db67c3..5398885b 100644
--- a/src/goaidentity/goakerberosidentity.c
+++ b/src/goaidentity/goakerberosidentity.c
@@ -66,11 +66,6 @@ struct _GoaKerberosIdentity
guint is_signed_in_idle_id;
};
-struct _GoaKerberosIdentityClass
-{
- GObjectClass parent_class;
-};
-
enum
{
EXPIRING,
diff --git a/src/goaidentity/goakerberosidentity.h b/src/goaidentity/goakerberosidentity.h
index a7b685ed..4cc435bc 100644
--- a/src/goaidentity/goakerberosidentity.h
+++ b/src/goaidentity/goakerberosidentity.h
@@ -27,10 +27,7 @@
G_BEGIN_DECLS
#define GOA_TYPE_KERBEROS_IDENTITY (goa_kerberos_identity_get_type ())
-#define GOA_KERBEROS_IDENTITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),
GOA_TYPE_KERBEROS_IDENTITY, GoaKerberosIdentity))
-#define GOA_IS_KERBEROS_IDENTITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),
GOA_TYPE_KERBEROS_IDENTITY))
-typedef struct _GoaKerberosIdentity GoaKerberosIdentity;
-typedef struct _GoaKerberosIdentityClass GoaKerberosIdentityClass;
+G_DECLARE_FINAL_TYPE (GoaKerberosIdentity, goa_kerberos_identity, GOA, KERBEROS_IDENTITY, GObject);
typedef enum _GoaKerberosIdentityDescriptionLevel
GoaKerberosIdentityDescriptionLevel;
@@ -41,8 +38,6 @@ enum _GoaKerberosIdentityDescriptionLevel
GOA_KERBEROS_IDENTITY_DESCRIPTION_USERNAME_ROLE_AND_REALM
};
-GType goa_kerberos_identity_get_type (void);
-
GoaIdentity *goa_kerberos_identity_new (krb5_context kerberos_context,
krb5_ccache cache,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]