[girepository] Correct GI_IS_ENUM_INFO macro
authorJohan Dahlin <johan@gnome.org>
Mon, 31 May 2010 00:56:25 +0000 (21:56 -0300)
committerJohan Dahlin <johan@gnome.org>
Mon, 31 May 2010 00:56:25 +0000 (21:56 -0300)
A GIEnumInfo represents either an enum or a set of flags

girepository/girepository.h

index f6e4d9eb283de69020d839fa290b6fc41148ead9..30e9b83d8bb053698893513ba0631b53caa23a79 100644 (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,