diff options
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 7 |
1 files changed, 7 insertions, 0 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 12219c962e..40021d399f 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 @@ -974,6 +974,13 @@ int setBounds (int x, int y, int width, int height, boolean move, boolean resize allocation.width = width; allocation.height = height; } + /* + * In GTK 3.8 if widget is not visible, when switching Tabs + * in Control Example GridLayout does not show one of the Grids + */ + if (OS.GTK_VERSION >= OS.VERSION(3, 8, 0)) { + OS.gtk_widget_show(topHandle); + } OS.gtk_widget_size_allocate (topHandle, allocation); } /* |