Blame eclipse-bug-903537.patch
|
Krzysztof Daniel |
523aebc |
--- eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java.bak 2013-01-28 12:16:08.000000000 +0100
|
|
Krzysztof Daniel |
523aebc |
+++ eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java 2013-02-19 13:22:29.529926456 +0100
|
|
Krzysztof Daniel |
523aebc |
@@ -4439,7 +4439,12 @@
|
|
Krzysztof Daniel |
523aebc |
oldDecorations.fixAccelGroup ();
|
|
Krzysztof Daniel |
523aebc |
}
|
|
Krzysztof Daniel |
523aebc |
long /*int*/ newParent = parent.parentingHandle();
|
|
Krzysztof Daniel |
523aebc |
- OS.gtk_widget_reparent(topHandle, newParent);
|
|
Krzysztof Daniel |
523aebc |
+// OS.gtk_widget_reparent(topHandle, newParent);
|
|
Krzysztof Daniel |
523aebc |
+ OS.g_object_ref(topHandle);
|
|
Krzysztof Daniel |
523aebc |
+ OS.gtk_container_remove(OS.gtk_widget_get_parent(topHandle), topHandle);
|
|
Krzysztof Daniel |
523aebc |
+ OS.gtk_container_add(newParent, topHandle);
|
|
Krzysztof Daniel |
523aebc |
+ OS.g_object_unref(topHandle);
|
|
Krzysztof Daniel |
523aebc |
+
|
|
Krzysztof Daniel |
523aebc |
if (OS.GTK3) {
|
|
Krzysztof Daniel |
523aebc |
OS.swt_fixed_move (newParent, topHandle, x, y);
|
|
Krzysztof Daniel |
523aebc |
} else {
|