Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2018-11-06 17:09:06 +0000
committerAndrey Loskutov2018-11-06 17:12:53 +0000
commit0dcb0602f8deb9fbd8e99f8952ca266c99e091b9 (patch)
tree580d5bd3b5d7e3a073cee53939e49a49dff864ce
parent96ab2fe4d68170062b2505323e75255cbc4d4252 (diff)
downloadeclipse.platform.swt-0dcb0602f8deb9fbd8e99f8952ca266c99e091b9.tar.gz
eclipse.platform.swt-0dcb0602f8deb9fbd8e99f8952ca266c99e091b9.tar.xz
eclipse.platform.swt-0dcb0602f8deb9fbd8e99f8952ca266c99e091b9.zip
Bug 540298 - [regression] NPE in Widget.filters
Reverting main change from commit 02a73627d82970a22db1a3f3dbcd2eeca9037612 due the various regressions caused by using gtk_widget_hide() call inside Control.gtk_draw() (see bug 540298 comment 24). Change-Id: I7408f5700ba9ed6c0282ba2b7c2f174227f12cf2 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java9
1 files changed, 0 insertions, 9 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 3d4863717c..503b1c6595 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
@@ -3450,15 +3450,6 @@ long /*int*/ gtk_draw (long /*int*/ widget, long /*int*/ cairo) {
GdkRectangle rect = new GdkRectangle ();
GDK.gdk_cairo_get_clip_rectangle (cairo, rect);
/*
- * On GTK3.19+, widget are are shown with the default minimum size regardless of the
- * size of the fixed container. This causes 0x0 widgets to be visible but cannot be used.
- * The fix is to make the widget invisible to the user. Resizing widget later on to a larger size
- * 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 (GTK.gtk_widget_get_visible(widget)) GTK.gtk_widget_hide(widget);
- }
- /*
* Modify the drawing of the widget with cairo_clip.
* Doesn't modify input handling at this time.
* See bug 529431.

Back to the top