Re: events for no-window widgets



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.

--p


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