From 4dabe20ed5753bccd2abf8ad02e95ce6ab53036c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 19 May 2011 16:12:03 -0400 Subject: Deprecate ErrorDomain The previous ErrorDomain blob was never actually scanned or used, and it was kind of a lame API conceptually. To keep some compatibility, rather than removing the enumeration values, rename them to _INVALID, and don't bump the typelib version. This should in theory allow a new libgirepository to read an old typelib. Based on a patch from Colin Walters https://bugzilla.gnome.org/show_bug.cgi?id=602516 --- girepository/gifieldinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'girepository/gifieldinfo.c') diff --git a/girepository/gifieldinfo.c b/girepository/gifieldinfo.c index 17491a80..41976855 100644 --- a/girepository/gifieldinfo.c +++ b/girepository/gifieldinfo.c @@ -322,7 +322,7 @@ g_field_info_get_field (GIFieldInfo *field_info, case GI_INFO_TYPE_INTERFACE: case GI_INFO_TYPE_FUNCTION: case GI_INFO_TYPE_CONSTANT: - case GI_INFO_TYPE_ERROR_DOMAIN: + case GI_INFO_TYPE_INVALID_0: case GI_INFO_TYPE_VALUE: case GI_INFO_TYPE_SIGNAL: case GI_INFO_TYPE_PROPERTY: @@ -498,7 +498,7 @@ g_field_info_set_field (GIFieldInfo *field_info, case GI_INFO_TYPE_INTERFACE: case GI_INFO_TYPE_FUNCTION: case GI_INFO_TYPE_CONSTANT: - case GI_INFO_TYPE_ERROR_DOMAIN: + case GI_INFO_TYPE_INVALID_0: case GI_INFO_TYPE_VALUE: case GI_INFO_TYPE_SIGNAL: case GI_INFO_TYPE_PROPERTY: -- cgit v1.2.1