projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1498cd0
)
[girepository] Correct GI_IS_ENUM_INFO macro
author
Johan Dahlin
<johan@gnome.org>
Mon, 31 May 2010 00:56:25 +0000
(21:56 -0300)
committer
Johan 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
patch
|
blob
|
history
diff --git
a/girepository/girepository.h
b/girepository/girepository.h
index f6e4d9eb283de69020d839fa290b6fc41148ead9..30e9b83d8bb053698893513ba0631b53caa23a79 100644
(file)
--- 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,