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 698360 - Add API version support to Gjs
Add API version support to Gjs
Status: RESOLVED OBSOLETE
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2013-04-19 13:12 UTC by lamefun
Modified: 2013-04-19 14:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add API version support to Gjs (6.89 KB, patch)
2013-04-19 13:12 UTC, lamefun
none Details | Review
Add API version support to Gjs (7.40 KB, patch)
2013-04-19 14:20 UTC, lamefun
none Details | Review
Add API version support to Gjs (7.40 KB, patch)
2013-04-19 14:22 UTC, lamefun
none Details | Review
Add API version support to Gjs (7.71 KB, patch)
2013-04-19 14:23 UTC, lamefun
none Details | Review

Description lamefun 2013-04-19 13:12:12 UTC
Created attachment 241899 [details] [review]
Add API version support to Gjs

This patch adds an API version support. This is mainly to fix some of the API issues that require compatibility break to fix.

GjsContext got a new gint property "api-version".

gjs-console got a new command-line argument --api-version or -a.

Added new module, gjs that contains a single constant API_VERSION.

I've attached a patch for my another bug that demonstrates the use of this:

https://bugzilla.gnome.org/attachment.cgi?bugid=698283
Comment 1 lamefun 2013-04-19 14:20:42 UTC
Created attachment 241907 [details] [review]
Add API version support to Gjs

OOps, forgot to add gjs/api-version.h
Comment 2 lamefun 2013-04-19 14:22:36 UTC
Created attachment 241908 [details] [review]
Add API version support to Gjs

Forgot Makefile.am
Comment 3 lamefun 2013-04-19 14:23:38 UTC
Created attachment 241909 [details] [review]
Add API version support to Gjs

Argh!
Comment 4 lamefun 2013-04-19 14:43:55 UTC
Sorry, never mind, I think there's a better solution to this problem.