bind_connection_status_to_property


Description:

[ Version ( since = "0.13.16" ) ]
public unowned Binding bind_connection_status_to_property (void* target, string target_property, bool invert)

Binds the status of this to the boolean property of another object using a Binding such that the target_property will be set to true when this is connected (and invert is false).

target_property will be synchronised immediately (%G_BINDING_SYNC_CREATE). invert can be interpreted as analogous to INVERT_BOOLEAN.

For instance, this function can be used to bind the GtkWidget:sensitive property to only make a widget sensitive when the account is connected.

See g_object_bind_property for more information.

Parameters:

this

a Connection

target

the target Object

target_property

the property on target to bind (must be BOOLEAN)

invert

true if you wish to invert the value of target_property (i.e. false if connected)

Returns:

the Binding instance representing the binding between the this and the target. The binding is released whenever the Binding reference count reaches zero.