1
0
Fork 0

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

* clutter/eglnative/clutter-stage-egl.c: Ignore any size allocation
	we receive from the user.

	* clutter/fruity/clutter-stage-fruity.c: Ditto as above.
This commit is contained in:
Emmanuele Bassi 2008-06-16 13:38:46 +00:00
parent 1c4b1ce90e
commit aef6fc5f61
3 changed files with 31 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2008-06-16 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglnative/clutter-stage-egl.c: Ignore any size allocation
we receive from the user.
* clutter/fruity/clutter-stage-fruity.c: Ditto as above.
2008-06-16 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-actor.c:

View file

@ -233,6 +233,17 @@ clutter_stage_egl_get_preferred_height (ClutterActor *self,
*natural_height_p = CLUTTER_UNITS_FROM_DEVICE (stage_egl->surface_height);
}
static void
clutter_stage_egl_allocate (ClutterActor *self,
const ClutterActorBox *box,
gboolean origin_changed)
{
/* we cannot resize the frame buffer, so we just ignore
* any allocation we receive by simply interrupting the
* allocation chain.
*/
}
static void
clutter_stage_egl_dispose (GObject *gobject)
{
@ -257,6 +268,7 @@ clutter_stage_egl_class_init (ClutterStageEGLClass *klass)
actor_class->unrealize = clutter_stage_egl_unrealize;
actor_class->get_preferred_width = clutter_stage_egl_get_preferred_width;
actor_class->get_preferred_height = clutter_stage_egl_get_preferred_height;
actor_class->allocate = clutter_stage_egl_allocate;
}
static void

View file

@ -217,6 +217,17 @@ clutter_stage_egl_get_preferred_height (ClutterActor *self,
*natural_height_p = CLUTTER_UNITS_FROM_DEVICE (stage_egl->surface_height);
}
static void
clutter_stage_egl_allocate (ClutterActor *self,
const ClutterActorBox *box,
gboolean origin_changed)
{
/* we cannot resize the frame buffer, so we just ignore
* any allocation we receive by simply interrupting the
* allocation chain.
*/
}
static void
clutter_stage_egl_dispose (GObject *gobject)
{
@ -241,6 +252,7 @@ clutter_stage_egl_class_init (ClutterStageEGLClass *klass)
actor_class->unrealize = clutter_stage_egl_unrealize;
actor_class->get_preferred_width = clutter_stage_egl_get_preferred_width;
actor_class->get_preferred_height = clutter_stage_egl_get_preferred_height;
actor_class->allocate = clutter_stage_egl_allocate;
}
static void