Commit 367a0a6
committed
[Gtk4] Prevent rare crash in Shell.setVisible
A *_MODAL shells with fullscreen parent was calling removed Gtk 3
function causing a crash with Exception in thread "main"
java.lang.UnsatisfiedLinkError: 'void
org.eclipse.swt.internal.gtk3.GTK3.gtk_window_set_type_hint(long, int)'
.
Simplified snippet to reproduce:
```java
Shell shell = new Shell(display);
shell.setText("Snippet 1");
shell.setFullScreen(true);
shell.open ();
Shell shell2 = new Shell(shell, SWT.PRIMARY_MODAL);
shell2.setText("Child");
shell2.open();
```1 parent 7a6857b commit 367a0a6
File tree
1 file changed
+8
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2909 | 2909 | | |
2910 | 2910 | | |
2911 | 2911 | | |
2912 | | - | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
2913 | 2920 | | |
2914 | 2921 | | |
2915 | 2922 | | |
| |||
0 commit comments