the source object
the property on source to bind
the target widget
the CSS class on target to bind
flags to pass to self
a closure wrapping the source_property to boolean value map, or NULL to use the default
a closure wrapping the target_css_class to GObject.Value map, or NULL to use the default
the new binding
Creates a binding between a property on
sourceand a CSS class ontargetwith a custom mapping using closures.This function is the language bindings friendly version of Adw.bind_property_to_css_class_full.
The binding will automatically be removed when either the
sourceortargetinstances are finalized. To remove the binding without affecting thesourceortarget, call GObject.Object.unref on the returned binding. It is recommended to only call GObject.Object.unref when it is clear that bothsourceandtargetwill outlive the binding.This function is not thread safe. A source can have multiple bindings.
See also: Adw.bind_property_to_css_class.