Hello,
I have been trying to copy-paste some button code from foofone.
Here is what I have now:
....
label3 = clutter_label_new_with_text
("Sans 10px", "Click here!!!!!!");
clutter_label_set_color (CLUTTER_LABEL (label3), &label_color);
clutter_actor_set_position (label3, 0, 0);
// Button struct copy-pasted from foofone
button1 = g_new0(Button, 1);
button1->actor = clutter_group_new ();
clutter_actor_set_position (button1->actor, 150, 150);
clutter_group_add ( CLUTTER_GROUP(button1->actor), label3);
clutter_container_add_actor (CLUTTER_CONTAINER (stage), button1->actor);
clutter_actor_show_all (stage);
....
For some reason the label put inside the clutter group inside the
Button struct doesn't show up on clutter_actor_show_all. All other
items are displayed but the to become button. Any ideas what I am
doing wrong? On foofone about the same code seems to create buttons.
The only difference is that I did not place the texture into the group
yet because I wanted to try it out with label alone first.
Best Regards,
Karoliina Salminen
http://www.karoliinasalminen.com/blog
--
To unsubscribe send a mail to [EMAIL PROTECTED]