get_source


Description:

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

Warning: get_source is deprecated since 2.68. Use Binding.dup_source.

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

Note:

Use dup_source for a safer version of this function.

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

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

Parameters:

this

a Binding

Returns:

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