Hi,
On Sun, 2010-06-20 at 17:57 +0200, Frederik wrote:
> GLib/GObject 2.26 will add property binding [1]. The straightforward way to
> support this in Vala would be:
>
> Object.bind_property (foo, "x", bar, "y");
> Object.bind_property (foo, "x", bar, "y", BindingFlags.BIDIRECTIONAL);
>
> Ho
Am 21.06.2010 05:51, Matias De la Puente wrote:
> This stuff is great! very helpful for my project :)
>
> My suggestions:
>
> public class foo : Object
> {
> public int x { set; get; }
> public int y { set; get; }
> }
>
> public class bar : Object
> {
> private Foo foo = new Fo
Am 21.06.2010 09:29, Fredderic Unpenstein wrote:
> On 21 June 2010 01:57, Frederik wrote:
>> GLib/GObject 2.26 will add property binding [1]. The straightforward way to
>> support this in Vala would be:
>> Object.bind_property (foo, "x", bar, "y");
>> Object.bind_property (foo, "x", bar, "y", Bi
On 21 June 2010 01:57, Frederik wrote:
> GLib/GObject 2.26 will add property binding [1]. The straightforward way to
> support this in Vala would be:
> Object.bind_property (foo, "x", bar, "y");
> Object.bind_property (foo, "x", bar, "y", BindingFlags.BIDIRECTIONAL);
Would foo.x.bind_property b
This stuff is great! very helpful for my project :)
My suggestions:
public class foo : Object
{
public int x { set; get; }
public int y { set; get; }
}
public class bar : Object
{
private Foo foo = new Foo ();
//One possibility
public int x { set;
Hello,
Am Sonntag, den 20.06.2010, 17:57 +0200 schrieb Frederik:
> foo.x +> bar.y; // default
> foo.x <+> bar.y; // bidirectional
I'd suggest ~> or ->, because a change of a 'implies' a value change of
b:
foo.x ~> bar.y; // default
foo.x <~> bar.y; // bidirectional
Hi,
GLib/GObject 2.26 will add property binding [1]. The straightforward way to
support this in Vala would be:
Object.bind_property (foo, "x", bar, "y");
Object.bind_property (foo, "x", bar, "y", BindingFlags.BIDIRECTIONAL);
However, this is not very type-safe. Would direct language support