diff --git a/doc/cookbook/Makefile.am b/doc/cookbook/Makefile.am index 713af4803..103d8360a 100644 --- a/doc/cookbook/Makefile.am +++ b/doc/cookbook/Makefile.am @@ -13,6 +13,7 @@ XML_FILES = \ text.xml \ textures.xml \ layouts.xml \ + script.xml \ $(NULL) XSLTOPTS = \ diff --git a/doc/cookbook/clutter-cookbook.xml.in b/doc/cookbook/clutter-cookbook.xml.in index 3bd710821..83e16476b 100644 --- a/doc/cookbook/clutter-cookbook.xml.in +++ b/doc/cookbook/clutter-cookbook.xml.in @@ -45,6 +45,7 @@ + Contributing to this document diff --git a/doc/cookbook/script.xml b/doc/cookbook/script.xml new file mode 100644 index 000000000..cbb59429f --- /dev/null +++ b/doc/cookbook/script.xml @@ -0,0 +1,45 @@ + + + + Script + + + who + what + + +
+ Introduction + + intro +
+ +
+ Defining a user interface using <type>ClutterScript</type> + +
+ Problem + + User interfaces are hard to maintain when the code + for creating elements and the code for interacting with + them is mixed together. +
+ +
+ Solution + + Use ClutterScript to define the UI + declaratively. +
+ +
+ Discussion + + ... +
+ +
+ +