Hello,
I'm having some problems when I add a second ClutterLabel to be rendered on my stage. I'm had this problem after I ported an old application from Clutter 0.6 to 0.8. I'm still not sure if this problem is occurring only on my computer (which have an i915 card) or it is a general problem. The attached code illustrate this problem. When I hit some key I got this window. I'm doing something wrong, or this is really a bug? Thanks in advance, Pedro Casagrande
#include <clutter/clutter.h>
static gboolean
input_cb (ClutterStage *stage, ClutterEvent *event, gpointer data)
{
ClutterActor *second_text;
second_text = clutter_label_new_with_text ("Sans Bold 25px", "Second Text!");
clutter_actor_set_position (second_text, 50, 50);
clutter_container_add_actor (CLUTTER_CONTAINER (data), second_text);
return TRUE;
}
int
main (int argc, char *argv[])
{
ClutterActor *stage, *first_text;
GError *error;
error = NULL;
clutter_init (&argc, &argv);
stage = clutter_stage_get_default ();
clutter_actor_set_size (stage, 300, 300);
first_text = clutter_label_new_with_text ("Sans Bold 25px", "First Text!");
clutter_container_add_actor (CLUTTER_CONTAINER (stage), first_text);
g_signal_connect (stage, "key-release-event",
G_CALLBACK (input_cb), stage);
clutter_actor_show_all (stage);
clutter_main ();
return 0;
}
<<attachment: second_text.png>>
