libseed-list question on window.get_size and out arguments



Hi,

I've just started using Seed for development. One thing that Seed's
web page mentions is that it "Maps C-isms (say, out arguments, or
enums) to things that make sense in JavaScript." Unfortunately, I
can't find any documentation or examples for how out arguments should
work. So, for example, the following call in Seed:

window.get_size()

Will return the error "GInvokeError Too few "out" arguments (handling out)"

In C, the call would be expressed by passing in two out arguments:

gtk_window_get_size(GTK_WINDOW(widget), &width, &height);

I've tried various permutations on the JavaScript call without
success. I've also looked at the documentation and sample code, but
haven't found any demonstrations of out arguments.

I have also asked this question on stackoverflow:
http://stackoverflow.com/questions/3916909/how-are-out-parameters-represented-for-seed-javascript-gobject-bindings/3916961#3916961

I'd appreciate any insight anyone can offer into how this call should
work under the Seed bindings. Thanks,

Jake


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]