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

* clutter/clutter-actor.c:
	(clutter_actor_set_min_width),
	(clutter_actor_set_min_height),
	(clutter_actor_set_natural_width),
	(clutter_actor_set_natural_height): Add a comment explaining
	the override in place for backends providing a fixed size
	on a stage.
This commit is contained in:
Emmanuele Bassi 2008-06-25 15:02:13 +00:00
parent 995bf13a7b
commit eb6fba284d
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_set_min_width),
(clutter_actor_set_min_height),
(clutter_actor_set_natural_width),
(clutter_actor_set_natural_height): Add a comment explaining
the override in place for backends providing a fixed size
on a stage.
2008-06-25 Emmanuele Bassi <set EMAIL_ADDRESS environment variable> 2008-06-25 Emmanuele Bassi <set EMAIL_ADDRESS environment variable>
* clutter/clutter-actor.c: * clutter/clutter-actor.c:

View File

@ -3641,6 +3641,10 @@ clutter_actor_set_min_width (ClutterActor *self,
ClutterActorPrivate *priv = self->priv; ClutterActorPrivate *priv = self->priv;
ClutterActorBox old = { 0, }; ClutterActorBox old = { 0, };
/* override the minimum width on a top-level actor in case
* we are working on a backend that only provides a fixed
* size stage (e.g. on a framebuffer)
*/
if (CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL) if (CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL)
{ {
if (clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC)) if (clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC))
@ -3683,6 +3687,10 @@ clutter_actor_set_min_height (ClutterActor *self,
ClutterActorPrivate *priv = self->priv; ClutterActorPrivate *priv = self->priv;
ClutterActorBox old = { 0, }; ClutterActorBox old = { 0, };
/* override the minimum height on a top-level actor in case
* we are working on a backend that only provides a fixed
* size stage (e.g. on a framebuffer)
*/
if (CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL) if (CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL)
{ {
if (clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC)) if (clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC))
@ -3724,6 +3732,10 @@ clutter_actor_set_natural_width (ClutterActor *self,
ClutterActorPrivate *priv = self->priv; ClutterActorPrivate *priv = self->priv;
ClutterActorBox old = { 0, }; ClutterActorBox old = { 0, };
/* override the natural width on a top-level actor in case
* we are working on a backend that only provides a fixed
* size stage (e.g. on a framebuffer)
*/
if (CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL) if (CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL)
{ {
if (clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC)) if (clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC))
@ -3766,6 +3778,10 @@ clutter_actor_set_natural_height (ClutterActor *self,
ClutterActorPrivate *priv = self->priv; ClutterActorPrivate *priv = self->priv;
ClutterActorBox old = { 0, }; ClutterActorBox old = { 0, };
/* override the natural height on a top-level actor in case
* we are working on a backend that only provides a fixed
* size stage (e.g. on a framebuffer)
*/
if (CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL) if (CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL)
{ {
if (clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC)) if (clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC))