Passing hashes of field values in place of boxed types
Submitted by Owen Taylor
Link to original bug (#561605)
Description
A loose end from bug 560808:
As described in:
http://mail.gnome.org/archives/language-bindings/2008-November/msg00002.html
You should be able to pash a hash of field values directly in place of a boxed types. So:
obj.set_rectangle({ x: 0, y: 0, width: 10, height: 10 });
Right now you need to write:
obj.set_rectangle(new Gdk.Rectangle({ x: 0, y: 0, width: 10, height: 10 }));
Edited by Philip Chimento