-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where can I find documents about node-gir please? #33
Comments
Current "plain description" is let's make it work and cover all fundamental operations with tests. Depending on expectation I would place node-gir between alfa na beta. GIR itself is not mature enough (though it's stable enough) to describe every single detail. GTK itself has been designed for C developers and docs are friendly for such. Node-gir provides runtime dynamic bindings so if you expect API docs, one should provide special routines to generate Node ones. The more feedback we have the node-gir design is more strict and clear. |
@piotras You mean node-gir is now alpha version. |
@jiyinyiyong I would say it's between alpha and beta. Check tests: https://travis-ci.org/piotras/node-gir/builds/2897206. |
Test two files here: // Generated by CoffeeScript 1.4.0
var Gtk, gir;
if (typeof console !== "undefined" && console !== null) {
gir = require('gir');
gir.load('Gtk', '3.0');
} else if (typeof print !== "undefined" && print !== null) {
Gtk = imports.gi.Gtk;
}
// Generated by CoffeeScript 1.4.0
if (typeof console !== "undefined" && console !== null) {
console.log('node');
} else if (typeof print !== "undefined" && print !== null) {
print('seed');
} Run in terminal
I found a problem... and I made it work(however I dont't know why is that)
|
As I discovered that GNOME's docs are really unfriendly to JS-only developers.
And after a long time I didn't find a document about seed or gjs as friendly as Node APIs.
That's why I want to try node-gir.
Please is there any document I can refer to in writing GTK applications with node-gir?
I mean is there a plain description about gir when you implement node-gir?
Thanks.
The text was updated successfully, but these errors were encountered: