diff --git a/gtk/gtkexpression.c b/gtk/gtkexpression.c index 3eebb27fe7..eba1a868b0 100644 --- a/gtk/gtkexpression.c +++ b/gtk/gtkexpression.c @@ -150,9 +150,10 @@ * Hello, world * ``` * - * To create a closure expression, use the `` element. The `type` and `function` - * attributes specify what function to use for the closure, the content of the element - * contains the expressions for the parameters. For instance: + * To create a closure expression, use the `` element. The `function` + * attribute specifies what function to use for the closure, and the `type` + * attribute specifies its return type. The content of the element contains the + * expressions for the parameters. For instance: * * ```xml * @@ -160,6 +161,22 @@ * myfile * * ``` + * + * To create a property binding, use the `` element in place of where a + * `` tag would ordinarily be used. The `name` and `object` attributes are + * supported. The `name` attribute is required, and pertains to the applicable property + * name. The `object` attribute is optional. If provided, it will use the specified object + * as the `this` object when the expression is evaluated. Here is an example in which the + * `label` property of a `GtkLabel` is bound to the `string` property of another arbitrary + * object: + * + * ```xml + * + * + * some_other_object + * + * + * ``` */ typedef struct _WeakRefGuard WeakRefGuard;