Skip to content
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

closes #1685 #1694

Merged
merged 1 commit into from
Dec 16, 2023
Merged

closes #1685 #1694

merged 1 commit into from
Dec 16, 2023

Conversation

GillesDuvert
Copy link
Contributor

Widget_event was not returning the first catched event (by a function) and was looping until default procedure was found.
Very bad for, e.g., SSW's Plotman graphics.

Added a new test in test_widgets and insured handler procedures ware compiled at 'realize' time and not after, as it seem IDL does.

…) and was looping until default prcoedure was found.

Added a new test in test_widgets and insured handler procedures ware compiled at 'realize' time and not after, as it seem IDL does.
Copy link

codecov bot commented Dec 16, 2023

Codecov Report

Attention: 39 lines in your changes are missing coverage. Please review.

Comparison is base (e87015e) 41.96% compared to head (61e9af1) 41.95%.
Report is 1 commits behind head on master.

Files Patch % Lines
src/gdlwidgeteventhandler.cpp 0.00% 22 Missing ⚠️
src/gdlwidget.hpp 0.00% 14 Missing ⚠️
src/gdlwidget.cpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1694      +/-   ##
==========================================
- Coverage   41.96%   41.95%   -0.02%     
==========================================
  Files         356      356              
  Lines       95606    95639      +33     
  Branches    19656    19661       +5     
==========================================
  Hits        40122    40122              
- Misses      55484    55517      +33     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GillesDuvert GillesDuvert merged commit 33ea0c9 into gnudatalanguage:master Dec 16, 2023
6 of 8 checks passed
GillesDuvert added a commit to GillesDuvert/gdl that referenced this pull request Jan 8, 2024
…e of gnudatalanguage#1710.

Apparently in the case of PLOTMAN, the behaviour of the WIDGET_EVENT loop does not seem to follow the documentation: the event returned by the function is not checked against the hierachy (which is the norm and permits the "rewriting" of events that is the basis of the compound widgets ) but returned immediately. The patch soon proposed will just return if the "modified" event is the same as the event before handling by the function, and it suffices for PLOTMAN. Of course this is far from satisfactory, but as the eventloop of GDL is clearly not the same algorithm as in IDL, especially with the WxWidgets in the middle, this is a point to follow, there may be other cases where a special treatment is needed.

test_widgets has now this "test" in the first panel of the "DRAW" tab.
@GillesDuvert GillesDuvert deleted the solve_1685 branch July 2, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant