-
Notifications
You must be signed in to change notification settings - Fork 145
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
Fixes for #678 and #1739 #1743
base: master
Are you sure you want to change the base?
Fixes for #678 and #1739 #1743
Conversation
…#678 Move execution of SWT.SetData callbacks from cellDataProc(...) to Display.asyncExec(...) to avoid app crashes and/or other native code problems. Why: 1. cellDataProc() is a so called "cell data function" (a GTK3 term), GTK3 expects no tree structure modifications inside such functions. Failing to do so may lead to app crash and/or other native code problems. 2. SWT.SetData callbacks are written by users, and can contain any code, including code for tree modifications. Fixes eclipse-platform#678
Fixes image display problems (cropping, not showing) for Tree and Table (both normal and virtual variants). Fixes eclipse-platform#1739
Fix for #678This is the 1st commit in this branch. Reproducing the crash:
The cause of the crash is described here:
How it's fixed: in Why fixed this way:
Using |
Fix for #1739This is the 2nd and 3rd commits in this branch. The 2nd commit adds native method The 3rd commit is the fix for image display for All the snippets are similar, here is what At the top there are 4 rows of buttons with images. Buttons This how
I used the following tests with
The same manual tests I performed with snippet |
There is one test failing:
I haven't checked if this is related to this PR or not, could you please check? |
Test Results 289 files - 205 289 suites - 205 3m 45s ⏱️ - 5m 11s For more details on these failures, see this check. Results for commit 2edcaa6. ± Comparison against base commit a0a0485. This pull request removes 246 tests.
This pull request skips 3 tests.
|
Sure, I'll check this test. |
The problem was in The fix removes recursive visiting of the nested cells for the current item - this should work because during rendering I checked this case in |
Fixes for #678 and #1739.
Initially I wanted to fix #678, but after the fix the problems described in #1739 got worse, so I fixed them too.
Fixes #678
Fixes #1739