| Xfconf Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
gulong xfconf_g_property_bind (XfconfChannel *channel,const gchar *xfconf_property,GType xfconf_property_type,gpointer object,const gchar *object_property); gulong xfconf_g_property_bind_gdkcolor (XfconfChannel *channel,const gchar *xfconf_property,gpointer object,const gchar *object_property); void xfconf_g_property_unbind (gulong id); void xfconf_g_property_unbind_by_property (XfconfChannel *channel,const gchar *xfconf_property,gpointer object,const gchar *object_property); void xfconf_g_property_unbind_all (gpointer channel_or_object);
gulong xfconf_g_property_bind (XfconfChannel *channel,const gchar *xfconf_property,GType xfconf_property_type,gpointer object,const gchar *object_property);
Binds an Xfconf property to a GObject property. If the property is changed via either the GObject or Xfconf, the corresponding property will also be updated.
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.
|
An XfconfChannel. |
|
A property on channel. |
|
The type of xfconf_property. |
|
A GObject. |
|
A valid property on object. |
Returns : |
an ID number that can be used to later remove the binding. |
gulong xfconf_g_property_bind_gdkcolor (XfconfChannel *channel,const gchar *xfconf_property,gpointer object,const gchar *object_property);
Binds an Xfconf property to a GObject property of type GDK_TYPE_COLOR (aka a GdkColor struct). If the property is changed via either the GObject or Xfconf, the corresponding property will also be updated.
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.
|
An XfconfChannel. |
|
A property on channel. |
|
A GObject. |
|
A valid property on object. |
Returns : |
an ID number that can be used to later remove the binding. |
void xfconf_g_property_unbind (gulong id);
Removes an Xfconf/GObject property binding based on the binding
ID number. See xfconf_g_property_bind().
|
A binding ID number. |
void xfconf_g_property_unbind_by_property (XfconfChannel *channel,const gchar *xfconf_property,gpointer object,const gchar *object_property);
Causes an Xfconf channel previously bound to a GObject property
(see xfconf_g_property_bind()) to no longer be bound.
|
An XfconfChannel. |
|
A bound property on channel. |
|
A GObject. |
|
A bound property on object. |
void xfconf_g_property_unbind_all (gpointer channel_or_object);
Unbinds all Xfconf channel bindings (see xfconf_g_property_bind())
to object. If object is an XfconfChannel, it will unbind all
xfconf properties on that channel. If object is a regular GObject
with properties bound to a channel, all those bindings will be
removed.
|
A GObject or XfconfChannel. |