Re: libseed-list question on window.get_size and out arguments
- From: Tim Horton <tim hortont com>
- To: Jacob Beard <jbeard4 cs mcgill ca>
- Cc: libseed-list <libseed-list gnome org>
- Subject: Re: libseed-list question on window.get_size and out arguments
- Date: Wed, 13 Oct 2010 08:13:11 -0400
Unless it's been changed, out arguments work as in this test:
http://git.gnome.org/browse/seed/tree/tests/javascript/out-test.js
--Tim
On 2010.10.13, at 07:36, Jacob Beard wrote:
> 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
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]