property_bind


Description:

[ CCode ( cname = "xfconf_g_property_bind" ) ]
public ulong property_bind (Channel channel, string xfconf_property, Type xfconf_property_type, void* object, string object_property)

Binds an Xfconf property to a Object property.

If the property is changed via either the Object or Xfconf, the corresponding property will also be updated. The binding is initialized from the Xfconf property, i.e. the initial value of the Object property is overwritten.

Note that xfconf_property_type is required since xfconf_property may or may not already exist in the Xfconf store. The type of object_property will be determined automatically. If the two types do not match, a conversion will be attempted.

If you are binding a GdkColor or GdkRGBA property, pass typeof ( GenericArray) for xfconf_property_type.

Parameters:

channel

An Channel.

xfconf_property

A property on channel.

xfconf_property_type

The type of xfconf_property.

object

A Object.

object_property

A valid property on object.

Returns:

an ID number that can be used to later remove the binding.


Namespace: Xfconf
Package: libxfconf-0