gtk/testsuite/reftests/late-binding.ui
Matthias Clasen c4069fdcee builder: Fix handling of <binding>
We were only applying <binding> elements when the
object is constructed, which can be triggered by
various things (e.g. a <style> element). Defer
this until we reach </object>, so we can be sure
that we pick up all the bindings.

Testcase included.

Fixes: #4147
2021-09-28 15:09:49 -04:00

19 lines
454 B
XML

<interface>
<object class="GtkWindow" id="window">
<child>
<object class="GtkLabel">
<style>
<class name="bold" />
</style>
<property name="xalign">0.0</property>
<binding name="label">
<lookup name="label">label2</lookup>
</binding>
</object>
</child>
</object>
<object class="GtkLabel" id="label2">
<property name="label">Bla</property>
</object>
</interface>