[girepository] Correct GI_IS_ENUM_INFO macro

A GIEnumInfo represents either an enum or a set of flags
This commit is contained in:
Johan Dahlin 2010-05-30 21:56:25 -03:00
parent 58ac4f880a
commit 7a383b6126

View File

@ -786,7 +786,8 @@ GType g_registered_type_info_get_g_type (GIRegisteredTypeInf
/* GIEnumInfo */
#define GI_IS_ENUM_INFO(info) \
(g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_ENUM)
((g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_ENUM) || \
(g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_FLAGS))
gint g_enum_info_get_n_values (GIEnumInfo *info);
GIValueInfo * g_enum_info_get_value (GIEnumInfo *info,