Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandra Buzila2015-04-17 08:53:57 +0000
committerSravan Kumar Lakkimsetti2015-04-27 08:14:09 +0000
commit83a43f4d1fc67b864696f081d908956580c27303 (patch)
tree32e19147a8bb85959d0ef69b76ac87bd7ddd83fd
parenta28ddfa210b61d90ed0f5f46f82c313a986e1082 (diff)
downloadeclipse.platform.swt-83a43f4d1fc67b864696f081d908956580c27303.tar.gz
eclipse.platform.swt-83a43f4d1fc67b864696f081d908956580c27303.tar.xz
eclipse.platform.swt-83a43f4d1fc67b864696f081d908956580c27303.zip
Bug 462637 - [GTK] Deiconifying fails when opening child shell before
parent Make sure that the parent shell is always opened before a child shell is opened. Prevents issue with minimizing/unminimizing the parent shell. Change-Id: Ifa112e3df8c8292a0d0991571e8a9c0e9e05f522 Signed-off-by: Alexandra Buzila <abuzila@eclipsesource.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index 42160c006c..6088223bd8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -1620,6 +1620,8 @@ long /*int*/ gtk_window_state_event (long /*int*/ widget, long /*int*/ event) {
public void open () {
checkWidget ();
bringToTop (false);
+ if (Shell.class.isInstance(getParent()) && !getParent().isVisible())
+ Shell.class.cast(getParent()).open();
setVisible (true);
if (isDisposed ()) return;
if (!restoreFocus () && !traverseGroup (true)) setFocus ();

Back to the top