get_target


Description:

[ Version ( deprecated = true , deprecated_since = "2.68" , replacement = "Binding.dup_target" ) ]
public unowned Object get_target ()

Warning: get_target is deprecated since 2.68. Use Binding.dup_target.

Retrieves the Object instance used as the target of the binding.

Note:

Use dup_target for a safer version of this function.

A Binding can outlive the target Object as the binding does not hold a strong reference to the target. If the target is destroyed before the binding then this function will return null.

Use dup_target if the target or binding are used from different threads as otherwise the pointer returned from this function might become invalid if the target is finalized from another thread in the meantime.

Parameters:

this

a Binding

Returns:

the target Object, or null if the target does not exist any more.