You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of `properties`, `set_property` and `property` is boilerplate that is the same for every GObject that generates its properties with the `Property` macro.
58
+
The [`glib::derived_properties`](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/attr.derived_properties.html) macro generates boilerplate that is the same for every GObject that generates its properties with the `Property` macro.
59
59
In `constructed` we use our new property "number" by binding the "label" property to it.
60
60
`bind_property` converts the integer value of "number" to the string of "label" on its own.
61
61
Now we don't have to adapt the label in the "clicked" callback anymore.
0 commit comments