diff options
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 12 |
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); /* |