From eb6fba284dbb3da622624dfb49d496f894553b2f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 25 Jun 2008 15:02:13 +0000 Subject: [PATCH] 2008-06-25 Emmanuele Bassi * 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. --- ChangeLog | 10 ++++++++++ clutter/clutter-actor.c | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/ChangeLog b/ChangeLog index fae571f30..352bcbd7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-06-25 Emmanuele Bassi + + * 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 * clutter/clutter-actor.c: diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 890138f6e..ae47a85ec 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -3641,6 +3641,10 @@ clutter_actor_set_min_width (ClutterActor *self, ClutterActorPrivate *priv = self->priv; 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_feature_available (CLUTTER_FEATURE_STAGE_STATIC)) @@ -3683,6 +3687,10 @@ clutter_actor_set_min_height (ClutterActor *self, ClutterActorPrivate *priv = self->priv; 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_feature_available (CLUTTER_FEATURE_STAGE_STATIC)) @@ -3724,6 +3732,10 @@ clutter_actor_set_natural_width (ClutterActor *self, ClutterActorPrivate *priv = self->priv; 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_feature_available (CLUTTER_FEATURE_STAGE_STATIC)) @@ -3766,6 +3778,10 @@ clutter_actor_set_natural_height (ClutterActor *self, ClutterActorPrivate *priv = self->priv; 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_feature_available (CLUTTER_FEATURE_STAGE_STATIC))