Hi all,
I'm a bit new to clutter but for COGL fully. I tried to create a custom
actor with another actor member. The problem is that I cannot position the
member where I want, although when I get its coordinates, I get the right
values.
I modified the custom_actor/triangle_actor.c example for a trial, and the
same happened.
In my case, the triangle has also a label member:
struct _ClutterTrianglePrivate
{
ClutterColor color;
ClutterActor* label;
};
It is initialized in clutter_triangle_init().
[...]
priv->label = clutter_label_new();
clutter_actor_set_parent(priv->label, CLUTTER_ACTOR(self));
clutter_label_set_text(CLUTTER_LABEL(priv->label), "HUH");
[...]
I set the position and called the clutter_actor_show() in the
do_triangle_paint() function, between cogl_push_matrix and cogl_pop_matrix.
The label is then positioned to 0,0, anywhere else I try to position it.
I think I miss a cogl function, or does anybody has an idea, what can be
wrong?
Thanks for any help, regards.
Balazs
---------------------
P.S:
I use:
- Ubuntu Hardy
- glib 2.16.3
- libclutter-0.8-0 (hardy package)
I've searched for such a bug in bugzilla, or a topic in the list-archive,
but found nothing similar...