diff --git a/doc/cookbook/actors.xml b/doc/cookbook/actors.xml
index 5d944fcae..3fd3a6a8e 100644
--- a/doc/cookbook/actors.xml
+++ b/doc/cookbook/actors.xml
@@ -96,92 +96,55 @@
Reference Manual before proceeding.
-
- cb-button.h
+
+ cb-button.h: header file
- The header file defines the public API for the class,
- including GObject type macros, class and object structures, and
+ This defines the public API for the class, including
+ GObject type macros, class and object structures, and
function prototypes.
- a code sample should be here... but isn't
+a code sample should be here... but isn't
+
-
-
-
- cb-button.c
+
+ cb-button.c: ClutterActor
+ and GObject implementationThis is the main C code file which implements both
the GObject and Clutter parts of CbButton.
The example below is commented liberally, and gives some samples
of gtk-doc annotations to generate API docs for the
- widget. The discussion section
- comments more specifically about the Clutter-specific parts
- of it.
+ widget. The discussion
+ section comments more specifically about the Clutter-specific
+ parts of it.
-
- enum for signals ???why do we need these
+
+
+a code sample should be here... but isn't
+
+
+
- enum for properties ???why do we need these
+
+ actors-composite-main.c: trivial
+ application demonstrating usage of CbButton
- array for signals ???is it an array
+ Note how any of the ClutterActor
+ functions (like clutter_actor_set_size()
+ and clutter_actor_add_constraint()) can
+ be applied to instances of our ClutterActor
+ implementation.
-
-
-
- and Clutter stuff (private to the class):
-
- allocate (required)
- paint (required)
- you could get away with just these two
- but if you're not composing your actor, or are creating a container,
- you need to do more
-
-
-
-
- then more GObject stuff (it should come after the Clutter method
- implementations, i.e. allocate and paint):
-
- class_init
- - where we wire together our functions
- - we can also do things like adding properties and signals
-
- init
- - where we create the private structure
- - where we compose the actors together inside our ClutterActor
- subclass
-
-
-
-
-
- Then normally some public API:
-
- typically you want a new() function
-
- for our class, we'll put some wrappers around functions
- on the composed actors
-
-
-
-
-
-
- actors-composite-main.c
-
-
- The cb-button-main.c file shows how to use the new
- actor inside a Clutter application. Note how any of the
- ClutterActor functions (like set_size,
- add_constraint) can be applied to instance
- of our ClutterActor implementation.
-
-
-
+
+
+a code sample should be here... but isn't
+
+
+
@@ -190,6 +153,8 @@
Explain about GObject a bit???
+ Note size requisition in the example application???
+
The actor implemented here is put together through
simple composition. This has the advantage of simplifying the
code for the subclass: we can just wrap a facade round