support Lesstif
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
index e5370f1..aaaed21 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java
@@ -1255,7 +1255,7 @@
int shellHandle, widgetHandle;
int widgetClass = OS.TopLevelShellWidgetClass ();
shellHandle = OS.XtAppCreateShell (appName, appClass, widgetClass, xDisplay, null, 0);
- widgetHandle = OS.XmCreateScrolledList (shellHandle, null, null, 0);
+ widgetHandle = OS.XmCreateScrolledList (shellHandle, new byte [0], null, 0);
OS.XtManageChild (widgetHandle);
OS.XtSetMappedWhenManaged (shellHandle, false);
OS.XtRealizeWidget (shellHandle);
@@ -1364,7 +1364,7 @@
int shellHandle, widgetHandle;
int widgetClass = OS.TopLevelShellWidgetClass ();
shellHandle = OS.XtAppCreateShell (appName, appClass, widgetClass, xDisplay, null, 0);
- widgetHandle = OS.XmCreateScrolledText (shellHandle, null, null, 0);
+ widgetHandle = OS.XmCreateScrolledText (shellHandle, new byte [0], null, 0);
OS.XtManageChild (widgetHandle);
OS.XtSetMappedWhenManaged (shellHandle, false);
OS.XtRealizeWidget (shellHandle);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java
index 2f5b6e2..a5c5d32 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java
@@ -283,7 +283,7 @@
handle = OS.XmCreateList (formHandle, null, argList2, argList2.length / 2);
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
} else {
- handle = OS.XmCreateScrolledList (formHandle, null, argList2, argList2.length / 2);
+ handle = OS.XmCreateScrolledList (formHandle, new byte [0], argList2, argList2.length / 2);
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
scrolledHandle = OS.XtParent (handle);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java
index b4134d6..0367761 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java
@@ -345,7 +345,7 @@
OS.XtSetValues (handle, argList3, argList3.length / 2);
}
} else {
- handle = OS.XmCreateScrolledText (parentHandle, null, argList1, argList1.length / 2);
+ handle = OS.XmCreateScrolledText (parentHandle, new byte [0], argList1, argList1.length / 2);
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
scrolledHandle = OS.XtParent (handle);
}