creationix / node-gir

Node bindings to libgirepository
http://live.gnome.org/GObjectIntrospection
MIT License
231 stars 58 forks source link

Properties and camelCasing Implemented #15

Open daball opened 12 years ago

daball commented 12 years ago

Most of the updates here I just merged swick's property getter/setter and camelCasingMethodsAndProperties into the gir.js and updated example code.

swick commented 12 years ago

+1; like it

daball commented 12 years ago

@swick thanks! These revisions are stable. You'll probably really want to apply them. Someone who can figure out this C++ stuff needs to check out at least 3 things. (1) Objects returned by object methods don't have the prototype actions, eg call, get_property, applied to them, making using them impossible. (2) I can't seem to get static objects to work at all, see Clutter.StageManager for an example failure. (3) GetField and SetField need implementations. I've read through a lot of the C++ code, and I see what it is doing, but I don't know enough about V8 or GObject or GIO or GIR to be of any use here, and my C++ skills are simply not there. I'm probably going to stop adding changes for a while now. I think I've done about all I can without the needed C++ revisions, and I just can't figure out what to write to fix it.

swick commented 12 years ago

Well, I'm responsible for the crappy c++ stuff. Could you make an example for all the 3 cases and maybe open an issue or just send me a gist?

daball commented 12 years ago

@swick At least your C++ code does something. Mine segfaults or refuses to compile. I'm not much of a C++ programmer. I've tried to consolidate some of that into this test. git clone git://gist.github.com/1631103.git gist-1631103

bb010g commented 9 years ago

Could you rebase?