From cd12c9442354c4e071d565d913bd239990fb383d Mon Sep 17 00:00:00 2001 From: James Westman Date: Sat, 29 Jan 2022 20:10:31 -0600 Subject: [PATCH] docs: no-sync-create --- docs/examples.rst | 8 ++++---- docs/index.rst | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/examples.rst b/docs/examples.rst index c2e206c..76163a7 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -165,8 +165,8 @@ the same file. Binding Flags ~~~~~~~~~~~~~ -Use the ``sync-create`` keyword to cause a bound property to be initialized -when the UI is first constructed. +Use the ``no-sync-create`` keyword to only update the target value when the +source value changes, not when the binding is first created. .. code-block:: @@ -175,7 +175,7 @@ when the UI is first constructed. } Gtk.ProgressBar bar2 { - value: bind bar1.value sync-create; + value: bind bar1.value no-sync-create; } Use the ``bidirectional`` keyword to bind properties in both directions. @@ -200,7 +200,7 @@ to inverted value of another one. // When switch1 is on, switch2 will be off Gtk.Switch switch1 { - active: bind switch2.active sync-create inverted bidirectional; + active: bind switch2.active inverted bidirectional; } // When switch2 is on, switch1 will be off diff --git a/docs/index.rst b/docs/index.rst index a9494c1..e39e839 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -24,7 +24,7 @@ Blueprint is a markup language and compiler for GTK 4 user interfaces. HeaderBar {} Label { - label: bind MyAppWindow.main_text sync-create; + label: bind MyAppWindow.main_text; } }