Re: GtkBuilder property binding syntax



Thanks for help.

I'll write the binding in the code, maybe when Gtk releases 3.14 I
migrate to binding in .ui.

Thanks again :)

On Fri, 2014-06-20 at 19:28 +0100, Phillip Wood wrote:
On 20/06/14 17:04, Emmanuele Bassi wrote:

hi;

that's not entirely correct: GtkBuilder now allows binding properties
directly in the XML:

It is also possible to bind a property value to another object's property value using
the attributes "bind-source" to specify the source object of the binding, "bind-property"
to specify the source property and optionally "bind-flags" to specify the binding flags
Internally builder implement this using GBinding objects. For more information see
g_object_bind_property()

but in order to do that, you'll need the current development tree of
GTK+, 3.13. the next stable version of GTK+ that will support binding
properties directly in the XML, 3.14, is going to be release in
August/September.

for the time being, you'll indeed have to use code.

ciao,
 Emmanuele.


Thanks for the correction I wasn't aware of that. It sounds like a
useful addition to GtkBuilder

Best Wishes

Phillip

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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