GNOME Bugzilla – Bug 725143
enumeration: add support for static methods
Last modified: 2014-02-26 00:57:07 UTC
gobject-introspection has supported these for a while, and it costs nothing for us to support them as well. In addition, it makes a lot simpler to have documentation (because we can simply skip all the backward compatibility functions)
Created attachment 270270 [details] [review] enumeration: add support for static methods
Review of attachment 270270 [details] [review]: Just one thing. ::: gi/enumeration.cpp @@ +157,3 @@ + flags = g_function_info_get_flags(meth_info); + + g_warn_if_fail(!(flags & GI_FUNCTION_IS_METHOD)); Leftover?
(In reply to comment #2) > Review of attachment 270270 [details] [review]: > > Just one thing. > > ::: gi/enumeration.cpp > @@ +157,3 @@ > + flags = g_function_info_get_flags(meth_info); > + > + g_warn_if_fail(!(flags & GI_FUNCTION_IS_METHOD)); > > Leftover? No, just safety in cases gobject-introspection becomes crazy and adds methods there.
Attachment 270270 [details] pushed as 5879819 - enumeration: add support for static methods