summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-27 18:15:26 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-27 18:15:26 -0400
commitf9c7f286716e1457f10365cf85e9924d4a2e869b (patch)
tree46daa45ea80636ce00a5fb6b2b048dede294160a
parent775e69f0ceacc29119a99a55a08648607c8bbff3 (diff)
downloadeclipse.platform.swt-f9c7f286716e1457f10365cf85e9924d4a2e869b.tar.gz
eclipse.platform.swt-f9c7f286716e1457f10365cf85e9924d4a2e869b.tar.xz
eclipse.platform.swt-f9c7f286716e1457f10365cf85e9924d4a2e869b.zip
Bug 387496 - JVM crashes when running jdtuirefactoring tests on hudson: im-xim.so+0x3b04 (remove changes for bug#382812)
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java12
1 files changed, 7 insertions, 5 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 10b866506b..7993e54757 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
@@ -4266,12 +4266,14 @@ public boolean setParent (Composite parent) {
* on a toolbar or on a widget hierarchy containing a toolbar. The fix is
* to reparent by removing the widget from its current parent and adding it
* to the new parent.
+ *
+ * Temporarily put back for bug#387496.
*/
-// OS.gtk_widget_reparent(topHandle, newParent);
- OS.g_object_ref (topHandle);
- OS.gtk_container_remove (OS.gtk_widget_get_parent (topHandle), topHandle);
- OS.gtk_container_add (newParent, topHandle);
- OS.g_object_unref (topHandle);
+ OS.gtk_widget_reparent(topHandle, newParent);
+// OS.g_object_ref (topHandle);
+// OS.gtk_container_remove (OS.gtk_widget_get_parent (topHandle), topHandle);
+// OS.gtk_container_add (newParent, topHandle);
+// OS.g_object_unref (topHandle);
OS.gtk_fixed_move (newParent, topHandle, x, y);
/*