Hi,
Clutter trunk.
Best Wishes,
Karoliina
On 10/22/07, Matthew Allum <[EMAIL PROTECTED]> wrote:
> Is this with clutter trunk or 0.4 ?
>
> == Matthew
>
>
> On Mon, 2007-10-22 at 17:54 +0300, Karoliina Salminen wrote:
> > Hello,
> >
> > I copy-pasted this callback from foofone.
> > For testing purposes I quickly made a global variable where I placed
> > the button (clutter group) that I created earlier (thanks for the
> > visibility tip btw, it worked!) and tried to compare it to the actor I
> > am getting with clutter_stage_get_actor_at_pos. Somehow it always
> > seems to return something else than the actor I want.
> > No matter where I click on stage, the debug printout from the
> > following code seems to be:
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> > Some item got
> >
> >
> > void
> > on_input (ClutterStage *stage,
> > ClutterEvent *event,
> > gpointer user_data)
> > {
> > if (event->type == CLUTTER_BUTTON_PRESS)
> > {
> > gint x, y;
> > ClutterActor *clickeditem;
> > clutter_event_get_coords (event, &x, &y);
> > clickeditem = clutter_stage_get_actor_at_pos (stage, x, y);
> > if(!clickeditem){
> > printf("Stage clicked, not reached any item, x=%d, y=%d\n", x, y);
> > } else {
> > printf("Some item got\n");
> > }
> > if(clickeditem==g_buttons[0]->actor){
> > printf("Button0 clicked!!");
> > }
> >
> >
> > }
> >
> > Would there be some way to check actor type like on Gtk etc. or maybe
> > print out some information about the item I am getting?
> >
> > Best Regards,
> > Karoliina
>
>
--
To unsubscribe send a mail to [EMAIL PROTECTED]