2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/subclassing-ClutterActor.sgml: Add more notes and
	remind to relayout when adding children to an actor.
This commit is contained in:
Emmanuele Bassi 2008-06-11 17:33:30 +00:00
parent 00a1e0c3ee
commit 6b1a9fd52b
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/subclassing-ClutterActor.sgml: Add more notes and
remind to relayout when adding children to an actor.
2008-06-10 Emmanuele Bassi <ebassi@openedhand.com> 2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-sections.txt: Update with the new API. * clutter/clutter-sections.txt: Update with the new API.

View File

@ -93,6 +93,9 @@ foo_actor_init (FooActor *actor)
using the clutter_actor_set_width() and clutter_actor_set_height() using the clutter_actor_set_width() and clutter_actor_set_height()
functions and their wrappers.</para> functions and their wrappers.</para>
<note><para>For instance, an actor that depends on the explicit
sizing is the #ClutterRectangle actor.</para></note>
<para>The size requisition is split into two different phases: width <para>The size requisition is split into two different phases: width
requisition and height requisition.</para> requisition and height requisition.</para>
@ -127,8 +130,8 @@ foo_actor_init (FooActor *actor)
<note><para>The clutter_actor_get_preferred_size() function will <note><para>The clutter_actor_get_preferred_size() function will
automatically check the geometry management preferred by the actor automatically check the geometry management preferred by the actor
and return its preferred size depending on it and on the natural and return its preferred size depending on the value of the request-mode
size.</para></note> property and on the natural size of the actor.</para></note>
<para>The size requisition starts from the #ClutterStage and it is <para>The size requisition starts from the #ClutterStage and it is
performed on every child of the stage following down the hierarchy performed on every child of the stage following down the hierarchy
@ -639,6 +642,9 @@ foo_actor_add_baz (FooActor *foo_actor,
clutter_actor_set_parent (CLUTTER_ACTOR (baz_actor), clutter_actor_set_parent (CLUTTER_ACTOR (baz_actor),
CLUTTER_ACTOR (foo_actor)); CLUTTER_ACTOR (foo_actor));
/* a container should queue a change in the layout */
clutter_actor_queue_relayout (CLUTTER_ACTOR (foo_actor));
/* emit a signal and notification */ /* emit a signal and notification */
g_signal_emit (foo_actor, foo_actor_signals[BAZ_CHANGED], 0, baz_actor); g_signal_emit (foo_actor, foo_actor_signals[BAZ_CHANGED], 0, baz_actor);
g_object_notify (G_OBJECT (foo_actor), "baz"); g_object_notify (G_OBJECT (foo_actor), "baz");