Re: Actor signals




On Tue, October 30, 2012 11:40 am, Lionel Landwerlin wrote:
Hi Patrick,

It's likely that you're doing something weird in the pick() method of
your button class.
That is the only reason to see such warning message.


Thanks for your advice.

This is the pick method:

    def do_pick (self, pick_color):
        if self.should_pick_paint() == False:
            return

        box = self.get_allocation_box()
        self.__draw_shape(box.x2 - box.x1, box.y2 - box.y1, pick_color)



There's not much to it so I am not sure why it is doing something weird or
how to fix it.



-Lionel

On 30/10/12 00:35, Patrick Shirkey wrote:
Hi,

I have two rows of buttons.

row A = 200 x 100
row B = 200 x 50

Row B is located directly on top of row A with both rows pinned to 0,0.

Both rows are generated with the same code and the only difference is
the
height of the buttons.

If I click on a button in row B I receive a button-press-event, button
release-event and button-leave-event

If I click on a button from row A I receive a button-press-event and
button-leave-event and a warning message for the button-release-event.

----
(keyboard.py:20729): Clutter-WARNING **: The required ID of 445865 does
not refer to an existing actor; this usually implies that the pick() of
an
actor is not correctly implemented or that there is an error in the
glReadPixels() implementation of the GL driver.
----

If the button-release-event is working correctly for row B why would it
have this warning for row A and not signal correctly?

Is it because row B is directly on top of row A?



--
Patrick Shirkey
Boost Hardware Ltd
_______________________________________________
clutter-list mailing list
clutter-list gnome org
https://mail.gnome.org/mailman/listinfo/clutter-list

_______________________________________________
clutter-list mailing list
clutter-list gnome org
https://mail.gnome.org/mailman/listinfo/clutter-list



--
Patrick Shirkey
Boost Hardware Ltd



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]