Never mind... i figured it out after seeing the example on:
http://docs.clutter-project.org/docs/clutter-cookbook/1.0/actors-composite.html
I wasn't doing the required Allocation... the Name "Allocate" was confusing
at 1st.
I though it was something to do with memory allocation.. and not Size
Allocation,
so i ignored looking at it any further. ;D
now its working.
fyi if wanting to see the function:
static void
rect_GradDash_allocate( ClutterActor *actor, const ClutterActorBox *box,
ClutterAllocationFlags flags )
{
g_print( "allocate called..\n" );
RectGradDash *self = RECTGRADDASH(actor);
RectGradDashPrivate *priv = self->priv;
ClutterActorBox child_box = { 0, };
// FOR ACTOR...
/* set the allocation for the whole button */
CLUTTER_ACTOR_CLASS (rect_GradDash_parent_class)->allocate (actor, box,
flags);
// FOR GROUP - has Rectangle in there
child_box.x1 = 0.0;
child_box.y1 = 0.0;
child_box.x2 = clutter_actor_box_get_width (box);
child_box.y2 = clutter_actor_box_get_height (box);
clutter_actor_allocate (self->group, &child_box, flags);
}
thanks,
Izzy.
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list