Creates a binding between a property on source and a CSS class on target with a custom mapping using closures.
This function is the language bindings friendly version of [func@Adw.bind_property_to_css_class_full].
The binding will automatically be removed when either the source or target instances are finalized. To remove
the binding without affecting the source or target, call [method@GObject.Object.unref] on the returned binding.
It is recommended to only call [method@GObject.Object.unref] when it is clear that both source and target will
outlive the binding.
This function is not thread safe. A source can have multiple bindings.
See also: [func@Adw.bind_property_to_css_class].
| source |
the source object |
| source_property |
the property on |
| target |
the target widget |
| target_css_class |
the CSS class on |
| flags |
flags to pass to |
| map_to_class |
a closure wrapping the |
| map_to_property |
a closure wrapping the |
|
the new binding |