Re: events for no-window widgets



On Tue, Oct 26, 2010 at 2:20 PM, Paul Davis <paul linuxaudiosystems com> wrote:
> On Tue, Oct 26, 2010 at 1:49 PM, Matthias Clasen
> <matthias clasen gmail com> wrote:
>
>> This sounds like a nice approach. In order to get something going,
>> I've started to experiment with implementing pick(). First attempt is
>> here:
>> https://bugzilla.gnome.org/show_bug.cgi?id=633209
>> It seems to work mostly ok, according to the included testcase.
>
> as the slow convergence on a canvas-like model continues, i'd just
> note in passing that it turns out to be quite useful in GnomeCanvas
> for an item to be able to avoid ever being picked. this is possible by
> inverting the logic of your patch, and asking each item ("widget")
> whether a given (x,y) coordinate is within it. by returning false,
> items can avoid ever being considered the target for an event. their
> geometric bounds remain unaffected, of course.

I guess that depends on what you are picking for ? this picking was
discussed for finding the chain of items to generate enter/leave for,
or update a ::contains-pointer property. I think you probably want
that to be accurate, even if you don't want the user to click you.


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