Skip to content

Commit 0dcb060

Browse files
committed
Bug 540298 - [regression] NPE in Widget.filters
Reverting main change from commit 02a7362 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 <[email protected]>
1 parent 96ab2fe commit 0dcb060

File tree

1 file changed

+0
-9
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

1 file changed

+0
-9
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3449,15 +3449,6 @@ void cairoClipRegion (long /*int*/ cairo) {
34493449
if ((state & OBSCURED) != 0) return 0;
34503450
GdkRectangle rect = new GdkRectangle ();
34513451
GDK.gdk_cairo_get_clip_rectangle (cairo, rect);
3452-
/*
3453-
* On GTK3.19+, widget are are shown with the default minimum size regardless of the
3454-
* size of the fixed container. This causes 0x0 widgets to be visible but cannot be used.
3455-
* The fix is to make the widget invisible to the user. Resizing widget later on to a larger size
3456-
* makes the widget visible again in setBounds. See Bug 533469, Bug 531120.
3457-
*/
3458-
if (GTK.GTK_VERSION > OS.VERSION (3, 18, 0) && (state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) {
3459-
if (GTK.gtk_widget_get_visible(widget)) GTK.gtk_widget_hide(widget);
3460-
}
34613452
/*
34623453
* Modify the drawing of the widget with cairo_clip.
34633454
* Doesn't modify input handling at this time.

0 commit comments

Comments
 (0)