Method

GObjectObjectbind_property_with_closures

Declaration

GBinding*
g_object_bind_property_with_closures (
  GObject* source,
  const gchar* source_property,
  GObject* target,
  const gchar* target_property,
  GBindingFlags flags,
  GClosure* transform_to,
  GClosure* transform_from
)

Description

Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.

This function is the language bindings friendly version of g_object_bind_property_full(), using GClosures instead of function pointers.

Available since:2.26

Parameters

source_property const gchar*
 

The property on source to bind.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
target GObject
 

The target GObject.

 The data is owned by the caller of the function.
target_property const gchar*
 

The property on target to bind.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
flags GBindingFlags
 

Flags to pass to GBinding.

transform_to GClosure
 

A GClosure wrapping the transformation function from the source to the target, or NULL to use the default.

 The data is owned by the caller of the function.
transform_from GClosure
 

A GClosure wrapping the transformation function from the target to the source, or NULL to use the default.

 The data is owned by the caller of the function.

Return value

Returns: GBinding
 

The GBinding instance representing the binding between the two GObject instances. The binding is released whenever the GBinding reference count reaches zero.

 The data is owned by the instance.