property_bind_gdkcolor


Description:

[ CCode ( cname = "xfconf_g_property_bind_gdkcolor" ) ]
[ Version ( deprecated = true , deprecated_since = "4.19.3" ) ]
public ulong property_bind_gdkcolor (Channel channel, string xfconf_property, void* object, string object_property)

Warning: property_bind_gdkcolor is deprecated since 4.19.3.

Binds an Xfconf property to a Object property of type GDK_TYPE_COLOR (aka a GdkColor struct).

Note:

Use property_bind() with typeof ( GenericArray) instead.

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.

This is a special-case binding; the GdkColor struct is not ideal as-is for binding to a property, so it is stored in the Xfconf store as four 16-bit unsigned ints (red, green, blue, alpha). Since GdkColor (currently) only supports RGB and not RGBA, the last value will always be set to 0xFFFF.

Parameters:

channel

An Channel.

xfconf_property

A property on channel.

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