summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-05-19 19:07:32 +0200
committerEmmanuele Bassi <ebassi@gmail.com>2022-07-10 21:29:49 +0000
commite778af463d251bb1a526cfaa67a1d4c214b5a098 (patch)
treeb3fe4f5c0cb6031818300b3d6b320be7a004d0b6
parent75dffbae2c8ff574bdf4cfb71dcd5b3b90c7940f (diff)
downloadgnome-online-accounts-e778af463d251bb1a526cfaa67a1d4c214b5a098.tar.gz
remove GoaKerberosIdentityQueryMode
It is duplicate of GoaIdentityQueryMode and causes -Wenum-conversion errors.
-rw-r--r--src/goaidentity/goakerberosidentityinquiry.c12
-rw-r--r--src/goaidentity/goakerberosidentityinquiry.h6
2 files changed, 6 insertions, 12 deletions
diff --git a/src/goaidentity/goakerberosidentityinquiry.c b/src/goaidentity/goakerberosidentityinquiry.c
index 42d52c5..ec2fc01 100644
--- a/src/goaidentity/goakerberosidentityinquiry.c
+++ b/src/goaidentity/goakerberosidentityinquiry.c
@@ -333,17 +333,17 @@ goa_kerberos_identity_query_get_mode (GoaIdentityInquiry * inquiry,
GoaKerberosIdentityQuery *kerberos_query = (GoaKerberosIdentityQuery *) query;
g_return_val_if_fail (GOA_IS_KERBEROS_IDENTITY_INQUIRY (inquiry),
- GOA_KERBEROS_IDENTITY_QUERY_MODE_INVISIBLE);
+ GOA_IDENTITY_QUERY_MODE_INVISIBLE);
g_return_val_if_fail (inquiry == kerberos_query->inquiry,
- GOA_KERBEROS_IDENTITY_QUERY_MODE_INVISIBLE);
+ GOA_IDENTITY_QUERY_MODE_INVISIBLE);
if (kerberos_query->kerberos_prompt->hidden)
{
- return GOA_KERBEROS_IDENTITY_QUERY_MODE_INVISIBLE;
+ return GOA_IDENTITY_QUERY_MODE_INVISIBLE;
}
else
{
- return GOA_KERBEROS_IDENTITY_QUERY_MODE_VISIBLE;
+ return GOA_IDENTITY_QUERY_MODE_VISIBLE;
}
}
@@ -354,7 +354,7 @@ goa_kerberos_identity_query_get_prompt (GoaIdentityInquiry * inquiry,
GoaKerberosIdentityQuery *kerberos_query = (GoaKerberosIdentityQuery *) query;
g_return_val_if_fail (GOA_IS_KERBEROS_IDENTITY_INQUIRY (inquiry),
- GOA_KERBEROS_IDENTITY_QUERY_MODE_INVISIBLE);
+ GOA_IDENTITY_QUERY_MODE_INVISIBLE);
g_return_val_if_fail (inquiry == kerberos_query->inquiry, NULL);
return g_strdup (kerberos_query->kerberos_prompt->prompt);
@@ -367,7 +367,7 @@ goa_kerberos_identity_query_is_answered (GoaIdentityInquiry * inquiry,
GoaKerberosIdentityQuery *kerberos_query = (GoaKerberosIdentityQuery *) query;
g_return_val_if_fail (GOA_IS_KERBEROS_IDENTITY_INQUIRY (inquiry),
- GOA_KERBEROS_IDENTITY_QUERY_MODE_INVISIBLE);
+ GOA_IDENTITY_QUERY_MODE_INVISIBLE);
g_return_val_if_fail (inquiry == kerberos_query->inquiry, FALSE);
return kerberos_query->is_answered;
diff --git a/src/goaidentity/goakerberosidentityinquiry.h b/src/goaidentity/goakerberosidentityinquiry.h
index 6181818..febee12 100644
--- a/src/goaidentity/goakerberosidentityinquiry.h
+++ b/src/goaidentity/goakerberosidentityinquiry.h
@@ -32,12 +32,6 @@ G_BEGIN_DECLS
#define GOA_TYPE_KERBEROS_IDENTITY_INQUIRY (goa_kerberos_identity_inquiry_get_type ())
G_DECLARE_FINAL_TYPE (GoaKerberosIdentityInquiry, goa_kerberos_identity_inquiry, GOA, KERBEROS_IDENTITY_INQUIRY, GObject);
-typedef enum
-{
- GOA_KERBEROS_IDENTITY_QUERY_MODE_INVISIBLE,
- GOA_KERBEROS_IDENTITY_QUERY_MODE_VISIBLE
-} GoaKerberosIdentityQueryMode;
-
GoaIdentityInquiry *goa_kerberos_identity_inquiry_new (GoaKerberosIdentity *identity,
const char *name,
const char *banner,