summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-04-10 11:37:49 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-04-10 11:37:49 -0400
commit5d1422ebce1c7c15f192a0bcf0fe986785f60685 (patch)
tree6253bdce72c941b3d1295a765645131bcac701fc /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
parent4889b0fc071b3a53913d59336581d560f1697f55 (diff)
downloadeclipse.platform.swt-5d1422ebce1c7c15f192a0bcf0fe986785f60685.tar.gz
eclipse.platform.swt-5d1422ebce1c7c15f192a0bcf0fe986785f60685.tar.xz
eclipse.platform.swt-5d1422ebce1c7c15f192a0bcf0fe986785f60685.zip
Bug 354842 - Hang in org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java4
1 files changed, 2 insertions, 2 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 e58177427f..e4f6baf362 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
@@ -2025,11 +2025,11 @@ public void setVisible (boolean visible) {
* the shell not will be mapped until the parent is
* unminimized or shown on the desktop.
*/
+ mapped = false;
OS.gtk_widget_show (shellHandle);
if (enableWindow != 0) OS.gdk_window_raise (enableWindow);
+ if (isDisposed ()) return;
if (!OS.GTK_IS_PLUG (shellHandle)) {
- mapped = false;
- if (isDisposed ()) return;
display.dispatchEvents = new int [] {
OS.GDK_EXPOSE,
OS.GDK_FOCUS_CHANGE,