Re: [gtk-list] Missing events




Kenneth Albanowski <kjahds@kjahds.com> writes:

> I've got a problem _somewhere_ in my Perl code that I have not been able
> to solve, or even localize. For some reason, my ruler test (identical to
> the ruler test in testgtk.c) does not properly update the rulers when the
> pointer moves over the window background. Events only occur when the
> pointer moves over either of the rulers, or enters the window background
> (either from outside the window, or from the rulers.) 

My guess is that you aren't propagating is_hint correctly when
passing the event to ruler->motion_notify. If is_hint isn't set,
the callback won't call gtk_widget_pointer_get, and no further
motion events will be sent.

(More drastically, I get a segfault when I try the ruler test with
Gtk-0.1.9 - I suspect because of reference counting on GdkWindows, but
perhaps you have fixed that since then.)

Regards,
                                        Owen






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