From 33fa6cb5b32c8644baaaca2348bd7323171ae210 Mon Sep 17 00:00:00 2001 From: Anatoly Spektor Date: Mon, 27 May 2013 16:25:05 -0400 Subject: Solved height/width miscalculations which result in warnings in GTK3.8 --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); } /* -- cgit