[gobject-introspection] [girepository] Correct GI_IS_ENUM_INFO macro



commit 5078415e286eeb7f558651726068be34a5c5946e
Author: Johan Dahlin <johan gnome org>
Date:   Sun May 30 21:56:25 2010 -0300

    [girepository] Correct GI_IS_ENUM_INFO macro
    
    A GIEnumInfo represents either an enum or a set of flags

 girepository/girepository.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/girepository/girepository.h b/girepository/girepository.h
index f6e4d9e..30e9b83 100644
--- a/girepository/girepository.h
+++ b/girepository/girepository.h
@@ -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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]