diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2013-05-27 16:25:05 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2013-05-27 16:25:05 -0400 |
commit | 33fa6cb5b32c8644baaaca2348bd7323171ae210 (patch) | |
tree | 8c4f7e54b6ea9b615e27f326298699d6b68bf23f | |
parent | c660730bd911adbdda866a00c1ace2ec715d90d6 (diff) | |
download | eclipse.platform.swt-bug_408505.tar.gz eclipse.platform.swt-bug_408505.tar.xz eclipse.platform.swt-bug_408505.zip |
Solved height/width miscalculations which result in warnings in GTK3.8bug_408505
-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); } /* |