-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Old(ish) regression in widgets #1906
Comments
Certainly #1882 |
I've now managed to generate a "distilled" code that illustrates the problem. In IDL, clicking on the "Continue" button in the sub-menu gives:
whereas in GDL I only see:
Similarly, clicking on "Exit" in IDL gives:
and the sub menu is destroyed. Whereas in GDL, only:
is displayed and the sub-menu is not destroyed. It appears to me that GDL's implementation of It does look as though it is possible to achieve the desired behaviour using |
Rats! I've spent days checking the conformance to this accursed documentation when doing #1882. Will have to review that again! |
Possibly more serious is that it seems to break some compound widgets ( Will update once I've checked properly. |
OK. Problem resolved (patch attached). Radio button menus were only returning the release event. It turns out that this was a result of GDL returning the press event before the release event, (whereas IDL returns release then press) so to be able to get a reasonable behaviour for user event handlers I put in a line that threw away the second event received. Now GDL is returning the events in the sensible order, so the throwaway line can now be removed. |
Somewhere between bc3197a (about 2 Sep) and 6c1d6bc (about 19 Sep), there seems to have been a change in the handling of widget events and the
event_func
seems to be ignored.Essentially in
graffer
in order to allow pop-up menus to work modularly even though the main event loop is non-blocking, I use a home-brew event loop for these, e.g.:and the final part of the handler routine is:
I only noticed this today when I got errors about the structure not having an
EXITED
tag. A little further investigation shows that the call towidget_event
is returning the original widget events and is not calling the handler routine.I need to dig a little deeper to check exactly what conditions trigger the problem. Clearly
event_pro
settings in groups that are handled withinxmanager
are not affected (otherwise I'd never have reached the pop-ups in the first place).P.S. Sorry about the initial blank post
The text was updated successfully, but these errors were encountered: