After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722544 - GObject: add pseudo-classes for fundamental types
GObject: add pseudo-classes for fundamental types
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2014-01-19 14:01 UTC by Giovanni Campagna
Modified: 2014-03-02 13:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GObject: add pseudo-classes for fundamental types (9.03 KB, patch)
2014-01-19 14:01 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2014-01-19 14:01:40 UTC
Add GObject.Int, GObject.Char, etc. that look like the JS fundamental
types but hold the correct $gtype property. This way, one can use
"GObject.Int" instead of "GObject.TYPE_INT" for GType arguments,
which is more consistent with GObject and GBoxed classes.
Also, attach a $gtype to String, Number and Boolean.
Comment 1 Giovanni Campagna 2014-01-19 14:01:46 UTC
Created attachment 266654 [details] [review]
GObject: add pseudo-classes for fundamental types
Comment 2 Colin Walters 2014-02-28 16:24:35 UTC
Review of attachment 266654 [details] [review]:

This makes sense to me.  Does it require your paramspec patches from the other bug?
Comment 3 Giovanni Campagna 2014-03-02 13:43:34 UTC
Attachment 266654 [details] pushed as 0d49d2a - GObject: add pseudo-classes for fundamental types