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

[GTK4] FileDialog with SWT.MULTI causes crash #345

Merged

Conversation

joel-majano
Copy link
Contributor

@joel-majano joel-majano commented Aug 25, 2022

In GTK3 gtk_file_chooser_get_files returns a GSList* but in GTK4, it retruns a GListModel*.
The rest of the computeResultChooserDialog function assumes that we are dealing with a GSList which is incorrect.

The fix is to adapt to the correct calls when dealing with GListModel.

Tested with Eclipse IDE in GTK4 and Snippet72.

Signed-off-by: Joel Majano [email protected]

Tracked in #228, Fixes #343

@joel-majano
Copy link
Contributor Author

With this patch a user can now open a file and view it in Eclipse on GTK4. There is a crash that occurs after a while which I will open an issue for.

@github-actions
Copy link
Contributor

Unit Test Results

     602 files       602 suites   11m 57s ⏱️
  4 016 tests   4 006 ✔️     5 💤 4  1 🔥
24 040 runs  23 893 ✔️ 134 💤 9  4 🔥

For more details on these failures and errors, see this check.

Results for commit bbb966a.

In GTK3 gtk_file_chooser_get_files returns a GSList* but in GTK4, it retruns a GListModel*.
The rest of the computeResultChooserDialog function assumes that we are dealing with a GSList which is incorrect.

The fix is to adapt to the correct calls when dealing with GListModel.

Tested with Eclipse IDE in GTK4 and Snippet72.

Signed-off-by: Joel Majano <[email protected]>
@akurtakov akurtakov merged commit ef35b37 into eclipse-platform:master Sep 3, 2022
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.

[GTK4] Selecting a file using "Open File" crashes Eclipse with SIGSEV
2 participants