Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 382812
Collapse All | Expand All

(-)a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java (-1 / +5 lines)
Lines 4232-4238 public boolean setParent (Composite parent) { Link Here
4232
		oldDecorations.fixAccelGroup ();
4232
		oldDecorations.fixAccelGroup ();
4233
	}
4233
	}
4234
	int /*long*/ newParent = parent.parentingHandle();
4234
	int /*long*/ newParent = parent.parentingHandle();
4235
	OS.gtk_widget_reparent (topHandle, newParent);
4235
//	OS.gtk_widget_reparent (topHandle, newParent);
4236
	OS.g_object_ref(topHandle);
4237
	OS.gtk_container_remove(OS.gtk_widget_get_parent(topHandle), topHandle);
4238
	OS.gtk_container_add(newParent, topHandle);
4239
	OS.g_object_unref(topHandle);
4236
	OS.gtk_fixed_move (newParent, topHandle, x, y);
4240
	OS.gtk_fixed_move (newParent, topHandle, x, y);
4237
	/*
4241
	/*
4238
	* Restore the original widget size since GTK does not keep it.
4242
	* Restore the original widget size since GTK does not keep it.

Return to bug 382812