diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-01-01 20:37:24 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2019-06-08 20:54:43 -0700 |
commit | c8c178f1ed4f3857ed941d90035b87235064e9fa (patch) | |
tree | 60222da7125b28a22e33174257fc415b2b2d7a6f /gi/fundamental.h | |
parent | 2ab7ce9f5b913119bfcdbd1afbd2e3ab0498d1bf (diff) | |
download | gjs-c8c178f1ed4f3857ed941d90035b87235064e9fa.tar.gz |
wrapperutils: Move define_static_methods into GIWrapper
All the GIWrapper classes should use gjs_define_static_methods() to
define static methods from the g-i information.
Previously, Union objects skipped this step, so they did not have static
methods available. Now they do.
This was not done as part of the previous wrapperutils.h refactor,
because the union static method support exposed a bug in the g-i test
suite which was not fixed until g-i 1.59.2.
Diffstat (limited to 'gi/fundamental.h')
-rw-r--r-- | gi/fundamental.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gi/fundamental.h b/gi/fundamental.h index 38201d6a..5c0d5298 100644 --- a/gi/fundamental.h +++ b/gi/fundamental.h @@ -91,6 +91,8 @@ class FundamentalPrototype GJS_JSAPI_RETURN_CONVENTION bool init(JSContext* cx); + static constexpr InfoType::Tag info_type_tag = InfoType::Object; + public: GJS_JSAPI_RETURN_CONVENTION static FundamentalPrototype* for_gtype(JSContext* cx, GType gtype); |