gtk2/testsuite/reftests/late-binding.ref.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">
<property name="xalign">0.0</property>
<binding name="label">
<lookup name="label">label2</lookup>
</binding>
<style>
<class name="bold" />
</style>
</object>
</child>
</object>
<object class="GtkLabel" id="label2">
<property name="label">Bla</property>
</object>
</interface>