Binding.getSource

Retrieves the #GObject instance used as the source of the binding.

A #GBinding can outlive the source #GObject 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 gobject.binding.Binding.dupSource 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.

More...
class Binding
getSource
()

Return Value

Type: gobject.object.ObjectG

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

Detailed Description

Deprecated: Use gobject.binding.Binding.dupSource for a safer version of this function.