summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilder.rng
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2014-04-11 16:24:04 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2014-04-18 18:59:14 -0300
commit887fc60ccee7b9719ebb47291682e48f00609b7b (patch)
tree2bd08e04e3314d27e6280e274a2eac6ab4ced56d /gtk/gtkbuilder.rng
parentbe9d1e0b3ba969c71db6e1b00be505bea425908b (diff)
downloadgtk+-887fc60ccee7b9719ebb47291682e48f00609b7b.tar.gz
Added bindings support to GtkBuilder by introducing 3 new <property> attributes "bind-source" to specify the source object of the binding "bind-property" to specify the source property and "bind-flags" to specify the binding flags (optional)
Binding an object sensitive property with a check button active property will look like this: <object class="GtkButton" id="button"> <property name="sensitive" bind-source="checkbutton" bind-property="active"/> </object> This is based on the original work done by Denis Washington for his GSoC project This closes Bug 654417 "[GSoC] Add <binding> element to GtkBuilder syntax"
Diffstat (limited to 'gtk/gtkbuilder.rng')
-rw-r--r--gtk/gtkbuilder.rng15
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/gtkbuilder.rng b/gtk/gtkbuilder.rng
index 341d19f3ea..032d84d142 100644
--- a/gtk/gtkbuilder.rng
+++ b/gtk/gtkbuilder.rng
@@ -99,6 +99,21 @@
</attribute>
</optional>
<optional>
+ <group>
+ <attribute name="bind-source">
+ <text/>
+ </attribute>
+ <attribute name="bind-property">
+ <text/>
+ </attribute>
+ <optional>
+ <attribute name="bind-flags">
+ <text/>
+ </attribute>
+ </optional>
+ </group>
+ </optional>
+ <optional>
<text/>
</optional>
</element>