Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2019-01-02 15:15:39 -0500
committerEric Williams2019-01-02 15:36:28 -0500
commit875e377ea8456db41b51de1024f73b98aa484b46 (patch)
tree85e1527cbdb00e921ca2d7421edc2106d931ed70
parent35fd20e578a20bbfd97fd1491bf9f02ab86d0eeb (diff)
downloadeclipse.platform.swt-875e377ea8456db41b51de1024f73b98aa484b46.tar.gz
eclipse.platform.swt-875e377ea8456db41b51de1024f73b98aa484b46.tar.xz
eclipse.platform.swt-875e377ea8456db41b51de1024f73b98aa484b46.zip
Bug 543130: [GTK4] Children of Shell have large offsets
Only set the box packing type on GTK3, on GTK4 this breaks children of the vboxHandle. Change-Id: I99b2315de86be74533aa5bcbccb84da07be7b8d3 Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index d513ffd15f..f6e2bffeac 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -816,9 +816,8 @@ void createHandle (int index) {
if (vboxHandle == 0) error (SWT.ERROR_NO_HANDLES);
createHandle (index, false, true);
GTK.gtk_container_add (vboxHandle, scrolledHandle);
- if (GTK.GTK4) {
- GTK.gtk_box_set_child_packing(vboxHandle, scrolledHandle, GTK.GTK_PACK_END);
- } else {
+ // Only needed on GTK3
+ if (!GTK.GTK4) {
GTK.gtk_box_set_child_packing (vboxHandle, scrolledHandle, true, true, 0, GTK.GTK_PACK_END);
}
group = GTK.gtk_window_group_new ();

Back to the top