diff options
author | Ian Pun | 2017-04-25 15:18:55 +0000 |
---|---|---|
committer | Ian Pun | 2017-04-26 15:22:41 +0000 |
commit | 3f312b5478026ef014a71590f6d63d909780f330 (patch) | |
tree | 19afdddd02510d823450312dec33e4aa4a8ec581 | |
parent | 8d4529fe8a8645fada6f017b8b0d6a6c2687908b (diff) | |
download | eclipse.platform.swt-3f312b5478026ef014a71590f6d63d909780f330.tar.gz eclipse.platform.swt-3f312b5478026ef014a71590f6d63d909780f330.tar.xz eclipse.platform.swt-3f312b5478026ef014a71590f6d63d909780f330.zip |
Bug 514487 - [wayland] SWT.EMBEDDED style for composites is not
supported
Added additional Debug wrapper so that warning will only show during
debug mode
Change-Id: I54af1a9c711701476f2b9ee84db6db8cd1182d45
Signed-off-by: Ian Pun <ipun@redhat.com>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java index fd7389762e..db5eda9dbf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java @@ -309,8 +309,10 @@ void createHandle (int index, boolean fixed, boolean scrolled) { } if ((style & SWT.EMBEDDED) != 0) { if (!OS.isX11()) { - new SWTError(SWT.ERROR_INVALID_ARGUMENT,"SWT.EMBEDDED is currently not yet supported in Wayland. \nPlease " - + "refer to https://bugs.eclipse.org/bugs/show_bug.cgi?id=514487 for development status.").printStackTrace(); + if (Device.DEBUG) { + new SWTError(SWT.ERROR_INVALID_ARGUMENT,"SWT.EMBEDDED is currently not yet supported in Wayland. \nPlease " + + "refer to https://bugs.eclipse.org/bugs/show_bug.cgi?id=514487 for development status.").printStackTrace(); + } } else { socketHandle = OS.gtk_socket_new (); if (socketHandle == 0) error (SWT.ERROR_NO_HANDLES); |