2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Tue, 10 Jun 2008 17:11:14 +0000 (17:11 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Tue, 10 Jun 2008 17:11:14 +0000 (17:11 +0000)
* clutter/clutter-child-meta.c: Fix section name

* clutter/clutter-container.c:
(clutter_container_child_set_property),
(clutter_container_child_get_property): Fix gtk-doc parameter
name.

* clutter/clutter-container.h: Fix documentation of the
interface vfuncs.

* clutter/clutter-event.h: Fix documentation.

* clutter/clutter-feature.h: Fix documentation.

* clutter/clutter-types.h: Add ClutterRequestMode.

* clutter/x11/clutter-event-x11.c: Fix documentation.

* tests/test-fullscreen.c: Verify that the stage size has been
changed by clutter_stage_fullscreen().

ChangeLog
clutter/clutter-child-meta.c
clutter/clutter-container.c
clutter/clutter-container.h
clutter/clutter-event.h
clutter/clutter-feature.h
clutter/clutter-types.h
clutter/x11/clutter-event-x11.c
tests/test-fullscreen.c

index b1e8d3b..b4be9fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,28 @@
 2008-06-10  Emmanuele Bassi  <ebassi@openedhand.com>
 
+       * clutter/clutter-child-meta.c: Fix section name
+
+       * clutter/clutter-container.c:
+       (clutter_container_child_set_property),
+       (clutter_container_child_get_property): Fix gtk-doc parameter
+       name.
+
+       * clutter/clutter-container.h: Fix documentation of the
+       interface vfuncs.
+
+       * clutter/clutter-event.h: Fix documentation.
+
+       * clutter/clutter-feature.h: Fix documentation.
+
+       * clutter/clutter-types.h: Add ClutterRequestMode.
+
+       * clutter/x11/clutter-event-x11.c: Fix documentation.
+
+       * tests/test-fullscreen.c: Verify that the stage size has been
+       changed by clutter_stage_fullscreen().
+
+2008-06-10  Emmanuele Bassi  <ebassi@openedhand.com>
+
        Bug #815 - Split up request, allocation, and paint box
 
        * clutter/clutter-actor.[ch]: Rework the size allocation,
index 7705835..ea97288 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 /**
- * SECTION:clutter-child-data
+ * SECTION:clutter-child-meta
  * @short_description: Wrapper for actors inside a container
  *
  * #ClutterChildMeta is a wrapper object created by #ClutterContainer
index fd37843..80918a3 100644 (file)
@@ -856,7 +856,7 @@ container_set_child_property (ClutterContainer *container,
 /**
  * clutter_container_child_set_property:
  * @container: a #ClutterContainer
- * @actor: a #ClutterActor that is a child of @container.
+ * @child: a #ClutterActor that is a child of @container.
  * @property: the name of the property to set.
  * @value: the value.
  *
@@ -866,7 +866,7 @@ container_set_child_property (ClutterContainer *container,
  */
 void
 clutter_container_child_set_property (ClutterContainer *container,
-                                      ClutterActor     *actor,
+                                      ClutterActor     *child,
                                       const gchar      *property,
                                       const GValue     *value)
 {
@@ -874,7 +874,7 @@ clutter_container_child_set_property (ClutterContainer *container,
   GParamSpec   *pspec;
 
   g_return_if_fail (CLUTTER_IS_CONTAINER (container));
-  g_return_if_fail (CLUTTER_IS_ACTOR (actor));
+  g_return_if_fail (CLUTTER_IS_ACTOR (child));
   g_return_if_fail (property != NULL);
   g_return_if_fail (value != NULL);
 
@@ -897,7 +897,7 @@ clutter_container_child_set_property (ClutterContainer *container,
       return;
     }
 
-  container_set_child_property (container, actor, value, pspec);
+  container_set_child_property (container, child, value, pspec);
 }
 
 /**
@@ -991,7 +991,7 @@ container_get_child_property (ClutterContainer *container,
 /**
  * clutter_container_child_get_property:
  * @container: a #ClutterContainer
- * @actor: a #ClutterActor that is a child of @container.
+ * @child: a #ClutterActor that is a child of @container.
  * @property: the name of the property to set.
  * @value: the value.
  *
@@ -1007,7 +1007,7 @@ container_get_child_property (ClutterContainer *container,
  */
 void
 clutter_container_child_get_property (ClutterContainer *container,
-                                      ClutterActor     *actor,
+                                      ClutterActor     *child,
                                       const gchar      *property,
                                       GValue           *value)
 {
@@ -1015,7 +1015,7 @@ clutter_container_child_get_property (ClutterContainer *container,
   GParamSpec   *pspec;
 
   g_return_if_fail (CLUTTER_IS_CONTAINER (container));
-  g_return_if_fail (CLUTTER_IS_ACTOR (actor));
+  g_return_if_fail (CLUTTER_IS_ACTOR (child));
   g_return_if_fail (property != NULL);
   g_return_if_fail (value != NULL);
 
@@ -1038,7 +1038,7 @@ clutter_container_child_get_property (ClutterContainer *container,
       return;
     }
 
-  container_get_child_property (container, actor, value, pspec);
+  container_get_child_property (container, child, value, pspec);
 }
 
 
index 62342da..765e705 100644 (file)
@@ -51,17 +51,18 @@ typedef struct _ClutterContainerIface   ClutterContainerIface;
  * @lower: virtual function for lowering a child
  * @sort_depth_order: virtual function for sorting the children of a
  *   container depending on their depth
- * @child_record_type: The GType used for storing auxiliary information about
- * each of the containers children.
- * @create_child_record: virtual function that gets called for each added
- * child, the function should instantiate @child_record_type, set the container
- * and actor fields in the instance and add the record to a data structure for
- * subsequent access for get_child_record.
- * @destroy_child_record: virtual function that gets called when a child is removed
- * it shuld release all resources held by the record.
- * @get_child_record: return the record for a container child.
- * @actor_added: signal class handler for ClutterContainer::actor_added
- * @actor_removed: signal class handler for ClutterContainer::actor_removed
+ * @child_meta_type: The GType used for storing auxiliary information about
+ *   each of the containers children.
+ * @create_child_meta: virtual function that gets called for each added
+ *   child, the function should instantiate an object of type
+ *   #ClutterContainerIface::child_meta_type, set the container and actor
+ *   fields in the instance and add the record to a data structure for
+ *   subsequent access for #ClutterContainerIface::get_child_meta
+ * @destroy_child_meta: virtual function that gets called when a child is
+ *   removed; it shuld release all resources held by the record
+ * @get_child_meta: return the record for a container child
+ * @actor_added: signal class handler for #ClutterContainer::actor_added
+ * @actor_removed: signal class handler for #ClutterContainer::actor_removed
  * 
  * Base interface for container actors.
  *
index 056cf0c..9cbdcb4 100644 (file)
@@ -189,7 +189,6 @@ typedef struct _ClutterInputDevice      ClutterInputDevice;
  * @type: event type
  * @time: event time
  * @flags: event flags
- * @stage: event source stage
  * @source: event source actor
  *
  * Common members for a #ClutterEvent
@@ -239,6 +238,7 @@ struct _ClutterKeyEvent
  * @type: event type
  * @time: event time
  * @flags: event flags
+ * @stage: event source stage
  * @source: event source actor
  * @x: event X coordinate
  * @y: event Y coordinate
index 9624c2a..89be737 100644 (file)
@@ -39,7 +39,7 @@ G_BEGIN_DECLS
 
 /**
  * ClutterFeatureFlags:
- * @CLUTTER_FEATURE_TEXTURE_RECTANGLE: Set if NPOTS textures supported.
+ * @CLUTTER_FEATURE_TEXTURE_NPOT: Set if NPOTS textures supported.
  * @CLUTTER_FEATURE_SYNC_TO_VBLANK: Set if vblank syncing supported.
  * @CLUTTER_FEATURE_TEXTURE_YUV: Set if YUV based textures supported.
  * @CLUTTER_FEATURE_TEXTURE_READ_PIXELS: Set if texture pixels can be read.
index a15c871..57471ee 100644 (file)
@@ -170,6 +170,20 @@ typedef enum { /*< prefix=CLUTTER_ROTATE >*/
   CLUTTER_ROTATE_CCW
 } ClutterRotateDirection;
 
+/**
+ * ClutterRequestMode:
+ * @CLUTTER_REQUEST_HEIGHT_FOR_WIDTH: Height for width requests
+ * @CLUTTER_REQUEST_WIDTH_FOR_HEIGHT: Width for height requests
+ *
+ * Specifies the type of requests for a #ClutterActor.
+ *
+ * Since: 0.8
+ */
+typedef enum {
+  CLUTTER_REQUEST_HEIGHT_FOR_WIDTH,
+  CLUTTER_REQUEST_WIDTH_FOR_HEIGHT
+} ClutterRequestMode;
+
 G_END_DECLS
 
 #endif /* __CLUTTER_TYPES_H__ */
index eaaf6fb..0a70318 100644 (file)
@@ -662,14 +662,14 @@ events_queue (ClutterBackend *backend)
 }
 
 /**
- * clutter_x11_handle_event
+ * clutter_x11_handle_event:
  * @xevent: pointer to XEvent structure
  *
  * This function processes a single X event; it can be used to hook
  * into external X event retrieval (for example that done by GDK).
  *
- * Return: #ClutterX11FilterReturn indicating what the caller should
- *         do with the original event.
+ * Return value: #ClutterX11FilterReturn indicating what the caller
+ *   should do with the original event.
  *
  * Since:  0.8
  */
index a6f6a04..35406e8 100644 (file)
@@ -84,6 +84,11 @@ main (int argc, char *argv[])
   clutter_stage_fullscreen (CLUTTER_STAGE (stage));
   clutter_actor_show (stage);
 
+  g_debug ("stage size: %dx%d, mapped: %s",
+           clutter_actor_get_width (stage),
+           clutter_actor_get_height (stage),
+           CLUTTER_ACTOR_IS_MAPPED (stage) ? "true" : "false");
+
   g_timeout_add (1000, toggle_fullscreen, NULL);
 
   clutter_main ();