Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index 5f2d3d26e8..96f95b146e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -3446,8 +3446,7 @@ long /*int*/ gtk_draw (long /*int*/ widget, long /*int*/ cairo) {
* makes the widget visible again in setBounds. See Bug 533469, Bug 531120.
*/
if (GTK.GTK_VERSION > OS.VERSION (3, 18, 0) && (state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) {
- if (widget != 0 && GTK.gtk_widget_get_visible(widget)) GTK.gtk_widget_set_opacity(widget, 0);
- if (display == null || display.isDisposed()) error (SWT.ERROR_DEVICE_DISPOSED);
+ if (GTK.gtk_widget_get_visible(widget)) GTK.gtk_widget_hide(widget);
}
/*
* Modify the drawing of the widget with cairo_clip.

Back to the top