cookbook: Mention nick names as possible values for enums

As JSON can make use of nicknames for GEnum properties,
mentioned this in the table mapping C property values
to their JSON equivalents (as the nick name is a much
shorter and cleaner way of setting a property in JSON).
This commit is contained in:
Elliot Smith 2010-08-27 15:10:17 +01:00
parent b532f95917
commit 6db795baf6

View File

@ -262,8 +262,11 @@
<tr>
<td>enum (e.g. Clutter constants)</td>
<td>string</td>
<td><code>CLUTTER_ALIGN_X_AXIS</code> =&gt;
<code>"CLUTTER_ALIGN_X_AXIS"</code></td>
<td>
<code>CLUTTER_ALIGN_X_AXIS</code> =&gt;
<code>"CLUTTER_ALIGN_X_AXIS"</code> or <code>"x-axis"</code>
(the latter is the GEnum nickname for the constant)
</td>
</tr>
<tr>
<td>ClutterColor</td>